Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Problem with simple LWP get request

by Gangabass (Priest)
on Aug 23, 2011 at 01:44 UTC ( #921781=note: print w/ replies, xml ) Need Help??


in reply to Problem with simple LWP get request

Remove ' HTTP/1.1' at the end of the $url


Comment on Re: Problem with simple LWP get request
Select or Download Code
Re^2: Problem with simple LWP get request
by Jaymac (Initiate) on Aug 23, 2011 at 14:58 UTC
    I was not able to make a GET work beyond what I show here. I tried something similar with a POST and it worked... I guess I'll go with POST (though I'd rather know why GET didn't work...).

    Thanks to everyone for your help
      Then what was that you posted in the OP???
        It should return an authentication key (a string of characters) at the end of the response line and it doesn't. It's possible the service is messed up at the source. They've been pretty flaky.

        Using POST works without a hitch so I can't imagine why GET doesn't. I'm just so new to using HTML protocols and LWP I thought I must be doing something wrong (and maybe I am).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-07-24 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls