In the same vein as Gmail.py, I'm trying to make a Perl interface to Gmail. In fact, it will probably be a straight port. Inexplicably, I'm finding the same problem that an anonymous poster discovered... Win32 cookie handling or URL handling seems to be borked in Python. The Python script works fine in Cygwin and on my Mandrake box, but doesn't in Win32.
Ha, thought I. Perl has consistent behaviour between platforms.. well, sorta. Turns out that I get the same (incorrect)response in Perl as in Python. Head scratching time. Set the UserAgent to Linux (just in case they were checking). Nope. Not that either.
Update: It's not cookies. I examined headers from both Cygwin and Win32 versions. Sheesh. Maybe it's line endings or something equally embarassing?
Yet another update: For some reason, the last call to grab the javascript from the server unsticks the session, but only on Win32. Maybe it's time to watch some HTTP packets fly by..hmm. Bleargh. I do begin to wish that Perl had something like Python's SimpleCookie interface. (sacrilege, did I just say that ? I must be sleepier than I thought)