in reply to Re^6: using and debuging www Mechanize
in thread using and debuging www Mechanize

Anything is possible. To figure out what is going on get Firefox (Firebug) with livehttpheaders, and compare what firefox sends to what your program(mechanize) sends.

Replies are listed 'Best First'.
Re^8: using and debuging www Mechanize
by yantar (Initiate) on Jun 08, 2009 at 15:17 UTC
    I did that, what info should i be looking at exactly?
    In FireBug - under Net? Post? Headers?
    I looked at the form fields they are exactly the same.

    Thanx

        Like this? What do i see?
        Response Headers Connection close Date Mon, 08 Jun 2009 15:39:50 GMT Server Microsoft-IIS/6.0 X-Powered-By ASP.NET X-AspNet-Version 2.0.50727 refresh 6010; URL=../login/login.aspx?logoff=true, 6010; URL=../login/login.as +px?logoff=true Cache-Control private Content-Type text/html; charset=utf-8 Content-Length 36603 Request Headers Host X.X.X.X User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/200 +9042316 Firefox/3.0.10 (.NET CLR 3.5.30729) Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive Referer http://X.X.X.X/Console/login/login.aspx Cookie ASP.NET_SessionId=x0hhcem1z4bvodicqz4qf345
        This is what i got from my code:
        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: Mon, 08 Jun 2009 15:08:32 GMT Server: Microsoft-IIS/6.0 Content-Length: 14720 Content-Type: text/html; charset=utf-8 Client-Date: Mon, 08 Jun 2009 15:08:32 GMT Client-Peer: X.X.X.X:80 Client-Response-Num: 1 Link: <../server.css>; rel="stylesheet"; type="text/css" Refresh: 6010; URL=../login/login.aspx?logoff=true Set-Cookie: ASP.NET_SessionId=ivz5k045r4en4eehrn3yed55; path=/; HttpOn +ly Title: 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