Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: HTTP:Tiny issue.

by haukex (Bishop)
on Nov 17, 2021 at 13:29 UTC ( #11138918=note: print w/replies, xml ) Need Help??

in reply to HTTP:Tiny issue.

Please use <code> tags to format your code and sample data! And you can omit the giant long ebay URL and replace it with some testing URL like

use HTTP::Tiny; use LWP::Simple; my $response; $response = HTTP::Tiny->new->get('...') ... $response = get('...');

For the first request, you're creating a new HTTP::Tiny object and calling the ->get method on it. For the second request, you're using the get function from LWP::Simple, which is quite different. What you want is:

use HTTP::Tiny; my $http = HTTP::Tiny->new; my $response = $http->get('...'); ... $response = $http->get('...');

(Tested on URLs different from the OP.)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138918]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-01-16 18:58 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (49 votes). Check out past polls.