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

Re: Problem with simple LWP get request

by Gangabass (Vicar)
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
Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://921781]
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: (7)
As of 2015-11-25 23:17 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (693 votes), past polls