Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: 'Can't locate object method "status" via package "HTTP::Headers"' error using LWP::UserAgent

by kcott (Archbishop)
on Jun 30, 2020 at 07:09 UTC ( [id://11118699]=note: print w/replies, xml ) Need Help??


in reply to 'Can't locate object method "status" via package "HTTP::Headers"' error using LWP::UserAgent

G'day Cody Fendant,

As already indicated by ++Fletch, if you show your code we can give a better answer. However, as you mentioned that you'd checked LWP::UserAgent, perhaps you're after its status_line method.

$ perl -MLWP::UserAgent -E ' say LWP::UserAgent::->new()->get("http://example.com")->status_lin +e ' 200 OK

And, of course, do bear in mind that's a complete guess.

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-28 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found