If I use LWP to fetch the following URL:

http://khan.tibcofinance.com:81/testme/html/demo/newUI/test/Login.jsp?userna
me=user1&password=user1&submit=Login

I get the following response:

RESPONSE: HTTP/1.1 302 (Found) Moved Temporarily
Cache-Control: no-cache
Connection: Keep-alive
Connection: close
Date: Wed, 06 Jun 2001 22:42:13 GMT
Pragma: no-cache
Location:
http://khan.tibcofinance.com/testme/html/demo/newUI/test/MyMercury.jsp
Server: Netscape-Enterprise/4.1
Content-Length: 0
Content-Type: text/html
Client-Date: Wed, 06 Jun 2001 21:40:12 GMT
Client-Peer: 216.101.119.211:81

If I use lwp-request to fetch the page, I get the following response:

[root@srv02 baua]# lwp-request -S -d
http://khan.tibcofinance.com:81/testme/html/demo/newUI/test/Login.jsp?userna
me=user1&password=user1&submit=Login
[1] 9571
[2] 9572
[root@srv02 baua]# GET
http://khan.tibcofinance.com:81/testme/html/demo/newUI/test/Login.jsp?userna
me=user1 --> 302 Moved Temporarily
GET
http://khan.tibcofinance.com:81/testme/html/demo/newUI/test/MyMercury.jsp?js
essionid=156189991867099797 --> 200 OK

In both cases, I get the 302 response back from the server, however, LWP is
dropping the port number (81) whereas lwp-request keeps the port number. So
with LWP I end up fetching a page that is not there. How do I get LWP to
keep the port number?

Bernie


Reply via email to