Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

tinman (2063)

  (email not shown publicly)

tinman spent a few years mucking around industry before going back to school for a Masters. Currently not enjoying the weather in North England..

He wrote Perl that looked suspiciously like C code in 1998, while working as an intern, and has been trying to cure that bad habit ever since.

Journal of tinman (2063)

Sunday June 27, 2004
12:35 AM


[ #19524 ]

In the same vein as, 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)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.