Hi Martin,
I have written scrapers for a number of different sites, all of which require sign on, and have not had any problems with redirection not being performed. Hmm. Haven't done anything with sunrise yet (although I would like to automatically download my faxes from my sunrise onebox).
One of the best tips I've gotten from this list is to put "use LWP::Debug qw(+); " in to your code. This turns on a trace so you can see what is happening.
Have you looked at LWP::UserAgent::max_redirect()? By default (unless Mechanize changes this), it will only follow 7 redirects. By default it does not follow redirects in response to a post (which it is also not supposed to do, according to RFC).
Hope this helps & please do let me know how you fix it!
Cheers,
Peter
Martin Kos wrote:
hi
as i've seen that this list is used for mechanize questions too i'll try my question...
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?
btw. im using mechanize 1.08
regards KoS
