I got:
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.
But still when using:
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);
I get:
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

In reply to Re^8: Cant get www:Mechanize to work by yantar
in thread Cant get www:Mechanize to work by yantar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.