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
