Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by kcott (Bishop)
on Jun 30, 2020 at 07:09 UTC ( #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

  • Comment on Re: 'Can't locate object method "status" via package "HTTP::Headers"' error using LWP::UserAgent
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2020-11-30 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?