Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Many servers won't like getting a request that includes the 'http://hostname' part of the URL. Typically only proxy servers actually accept that. You might have better luck if you change:
...and then set $url = $2 so you only request the URI (/authenticate.cgi). Before anyone else lays into me, this is a very rough solution and doesn't necessarily take everything into account. This is really what LWP is designed for, as it will use RFC-compliant methods to parse the URL instead of this quick and dirty stuff. Update: It may be a virtual server, in which case you also need to send the Host: header in your request, like this: I strongly suggest splitting the URI, too. --isotope http://www.skylab.org/~isotope/ In reply to Re: HTTP GET without LWP
by isotope
|
|