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

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 http://www3.sympatico.ca/steven.potter/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://260044]
help
Chatterbox?
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-08-01 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls