Hey John,

Nice detective work! I could imagine that both the solution and the method for finding it will help explain a lot of the "It works with xxx but not with mech" problems.

Andy - this really belongs in your tips & tricks page. BTW - where is the page on the net? Do you mean the FAQ?

Cheers,

Peter

John J Lee wrote:

On Tue, 22 Feb 2005, Martin Kos wrote:
[...]


i try to login to the page http://mymobile.sunrise.ch/ but it seems like mechanize is not doing the redirect that is on the start site... if i try with my browser or wget i get redirect to a page like http://mymobile.sunrise.ch/portal/res/guest;jsessionid=HCCISJ1USYYSVQFIGZAXRAQ?paf_dm=full&paf_gear_id=100001&?successURL=/portal/res/member%3Bjsessionid%3DHCCISJ1USYYSVQFIGZAXRAQ

i tried it with a simple "get" but it doesn't work and i don't see what the problem could be... any idea what i'm doing wrong?



It wants this header (or similar, but this is a minimal one):

Accept: text/html


Maybe mechanize should sent an Accept header by default?

BTW, Martin: I debugged this by just looking at what Firefox sends.  Get
livehttpheaders.


John



Reply via email to