in reply to HTTP GET without LWP
...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.m{^http://(.*?)/} #to m{^http://(.*?)(/.*)$}
I strongly suggest splitting the URI, too.print $remote "GET $url HTTP/1.0\nHost: $host" . $BLANK;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(unfortunately...) Re (2): HTTP GET without LWP
by mwp (Hermit) on Jan 13, 2001 at 04:30 UTC | |
|
Servers not liking 'http://hostname'
by bbfu (Curate) on Jan 13, 2001 at 04:32 UTC |