Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: WWW::Mechanize redirection problem

by perrin (Chancellor)
on Nov 28, 2006 at 06:27 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-06-30 13:42 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (98 votes). Check out past polls.