develooper Front page | perl.libwww | Postings from September 2001

[PATCH] extension for HTTP/Cookies.pm

Thread Next
From:
Ward Vandewege
Date:
September 5, 2001 13:19
Subject:
[PATCH] extension for HTTP/Cookies.pm
Message ID:
20010905221907.A26311@countzero.vandewege.net
Hi,

I was trying to use Cookies.pm from libwww v5.53 to read some cookies off a web-page. It didn't work, and I realised that Cookies.pm doesn't support the META-style of setting cookies in HTML, which is accepted by all major browsers (Netscape, Mozilla, Opera, and even Internet Exploiter):

<META http-equiv="Set-Cookie" content="hash=KMvJWfpPpqhgOEdU">

So, I hacked (limited) support for this style of cookies in Cookies.pm. The patch is attached. It works for me but it's probably not the cleanest code ever (even though it is quite simple). This could probably be useful for more people, so I wonder if this 'feature' could be added to Cookies.pm?

Bye for now,
Ward Vandewege.


-- 
http://pong.be - Your Belgian virtual hosting partner.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About