Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: WWW::Mechanize redirection problem

by perrin (Chancellor)
on Nov 28, 2006 at 06:27 UTC ( [id://586421]=note: print w/replies, xml ) Need Help??


in reply to WWW::Mechanize redirection problem

The best I can give you with a vague question is a vague answer: try it in Firefox with the LiveHTTPHeaders extension and watch the traffic between the browser and the server. Adjust your mech script so that it does the same thing Firefox is doing. It's impossible for the JavaScript to do anything other than affect the HTTP exchange between browser and server, so everything that matters is contained in that exchange.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize redirection problem
by eisdrache (Novice) on Nov 29, 2006 at 03:44 UTC
    Thanks for the vague answer, it actually helped. I was previously unaware of the LiveHTTPHeaders extension, so after installing and using that I believe I found the problem. Apparently, the web request and the mechanize request were posting to two different pages.

    I checked the source code of the login page and the form has an action value of seach.jsp, however the submit button actually calls a javascript function which sends the request to login.jsp.

    Thanks again for your help!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://586421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found