develooper Front page | perl.libwww | Postings from October 2001

Get a page whick is written in Servelet

Thread Next
October 6, 2001 12:08
Get a page whick is written in Servelet
Message ID:

Hi, All:
     I tried to get a page which is written by Java Servelet using LWP. The web
site is protected by username and password. Here is my code:

   $req->authorization_basic('username', 'password');
  my $res =  $ua->request($req);

But when I run my code, the "$res" has nothing in the content. I print the head
of response and it shows as following:

 HTTP/1.1 302 (Found) Moved Temporarily
Cache-Control: no-cache="set-cookie,set-cookie2"
Connection: Close
Connection: close
Date: Sat, 06 Oct 2001 19:05:51 GMT

Server: Netscape-Enterprise/4.1
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Client-Date: Sat, 06 Oct 2001 19:08:09 GMT
Set-Cookie: BIGipServer=2147526848.20480.0000; expires=Sat, 06-Oct-2001 19:10:02
 GMT; path=/
Set-Cookie: jrunsessionid=1279831002395152193;path=/

Could somebody tell why and how to solve this problem? I do appreciate your
help. Thank you


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About