I have a website that I am attempting to scrape using Mechanize. When I submit the form, the form is submitted with an URL of the following format : https://www.website.com/Login/Options?returnURL=some_form_options (If I enter that URL in the browser, it will send me to a nice error page saying that the requested page does not exist)
Whereas, if I submit the form from the website, the returned URL will be of the following format : https://www.website.com/topic/country/list_of_form_options
The website has a login form that is not necessary to fill in to be able to submit a search query.
Any idea why I would get a different URL submitting the same form with Mechanize ? And how to counter that ? I cannot process the URL I get after "mechanizing" the form.
Thanks!