in reply to Re^7: Cant get www:Mechanize to work
in thread Cant get www:Mechanize to work
But still when using:WWW-Mechanize/1.5201 at line 21. Windows IE 6 at line 23. Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) at line 25.
I get:use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decod +able()); $ua->add_handler("request_send", sub { shift->dump; return }); $ua->add_handler("response_done", sub { shift->dump; return }); $ua->get($mech->uri);
GET http://X.X.X.X/Console/login/login.aspx Accept-Encoding: gzip, x-gzip, deflate User-Agent: libwww-perl/5.822 (no content) HTTP/1.1 200 OK Cache-Control: private Connection: close Date: Tue, 09 Jun 2009 14:13:48 GMT Server: Microsoft-IIS/6.0 Content-Length: 14720 Content-Type: text/html; charset=utf-8 Client-Date: Tue, 09 Jun 2009 14:13:48 GMT Client-Peer: X.X.X.X:80 Client-Response-Num: 1 Link: <../vserver.css>; rel="stylesheet"; type="text/css" Refresh: 6010; URL=../login/login.aspx?logoff=true Set-Cookie: ASP.NET_SessionId=szdb2n55z0ovx345pw3a3xnm; path=/; HttpOn +ly Title: Serverb Console - Login X-AspNet-Version: 2.0.50727 X-Meta-CODE-LANGUAGE: C# X-Meta-GENERATOR: Microsoft Visual Studio .NET 7.1 X-Meta-Vs-DefaultClientScript: JavaScript X-Meta-Vs-TargetSchema: http://schemas.microsoft.com/intellisense/ie5 X-Powered-By: ASP.NET
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Cant get www:Mechanize to work
by Corion (Patriarch) on Jun 09, 2009 at 14:20 UTC | |
by yantar (Initiate) on Jun 09, 2009 at 14:22 UTC | |
by Corion (Patriarch) on Jun 09, 2009 at 14:24 UTC | |
by yantar (Initiate) on Jun 09, 2009 at 14:30 UTC | |
by Anonymous Monk on Jun 09, 2009 at 15:13 UTC | |
|