[vienna.pm] LWP::UserAgent

Peter J . Holzer hjp at wsr.ac.at
Tue Nov 21 11:12:08 CST 2000


On 2000-11-20 21:16:48 +0100, Jan Harders wrote:
> ich hab ein kleines Problem mit dem UserAgent und hoffe, ich finde hier
> endlich Hilfe.
> Wenn ich z.b. auch http://some/path zugreife und path ein Verzeichnis
> ist, sollte ein 301 (Permanently Moved) zurückgeliefert werden,
> zusammen mit einem Location-Header: http://some/path/, wenn ich dies
> aber über LWP::UserAgent tue, so gibt er mir nen 200 zurück. Ich
> nehme an, dass LWP das intern regelt und dem Location folgt.
[...]
> Weiss jemand, wie man das abstellen kann

Ein Blick in die Glaskugel zeigt mir, daß Du $ua->request() verwendest.
Probier mal $ua->simple_request().

	hp

-- 
   _  | Peter J. Holzer      | Any setuid root program that does an
|_|_) | Sysadmin WSR / LUGA  | exec() somewhere is just a less
| |   | hjp at wsr.ac.at        | user friendly version of su.
__/   | http://www.hjp.at/   |    -- Olaf Kirch on bugtraq 2000-08-07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 371 bytes
Desc: not available
Url : http://mail.pm.org/archives/vienna-pm/attachments/20001121/a09c80b6/attachment.bin


More information about the Vienna-pm mailing list