Re: URL unretrieveable by lwp-request but OK in browser

Austin S. Lin (austin@al2.com)
Sat, 26 Sep 1998 19:20:27 -0400 (EDT)


On Sat, 26 Sep 1998, David A. Lee wrote:

> The URL: http://www.wellbeinginst.com/wbimain/default.asp
> 
> Gives me the following error with lwp-request
>     302 - Loop detected 
> Same thing happens with just : http://www.wellbeinginst.com

The same thing happens with:

    lwp-request version 1.33 (libwww-perl-5.36) on Linux

I noticed this in the headers sent back from the server:

    Set-Cookie: ASPSESSIONID=NTVRQPMXURVRCNJJ; path=/

This works fine (for me) for retrieving the page:

    telnet www.wellbeinginst.com 80
    GET /wbimain/default.asp HTTP/1.0
    Cookie: ASPSESSIONID=NTVRQPMXURVRCNJJ
    <return>
    <return>

I think you need to send the cookie back to avoid the looping
(probably need to use HTTP::Cookies or modify lwp-request).  This

Hope that helps,

- Austin
  $_@planetperl.com