Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: LWP::UserAgent destroys $response->content >:{

by iguanodon (Priest)
on May 22, 2003 at 12:48 UTC ( #260044=note: print w/ replies, xml ) Need Help??

in reply to LWP::UserAgent destroys $response->content >:{

As benn says, show us the code. Until we see what you're trying we can only guess. So here's my guess: You're getting a 401 Unauthorized - are you sending credentials to authenticate?

Comment on Re: LWP::UserAgent destroys $response->content >:{
Replies are listed 'Best First'.
Re: Re: LWP::UserAgent destroys $response->content >:{
by SPotter (Initiate) on May 22, 2003 at 13:19 UTC
    It's because I needed to supply credentials that I resorted to using LWP ;)

    Yes, the credentials are fine. I know because I get the expected response in the rspfile when I use the filename method.
    Whether I use filename method or not I get the "500 Can't read entity body..." reported back and the $response->content does NOT contain the collected server response prior to the error.

    In filename method, though, the rspfile is fine and $response is not.

    Steve Potter

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-10-09 06:16 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (233 votes), past polls