bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH] Test-cookies.px


From: Tim Ruehsen
Subject: [Bug-wget] [PATCH] Test-cookies.px
Date: Fri, 9 Nov 2012 16:11:09 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

To check wget for NOT sending a request header, I patched HTTPServer.pm.
Here is an example taken from the patched Test-cookies.px (see below):
...
        request_headers => {
            "!Cookie" => qr|foo=bar|,
        },
...

That means: return an error, if there is a Cookie request header that contains 
foo=bar. (I hope, I understood that perl stuff correctly).
I am not perl programmer, so maybe my changes are suboptimal. Please someone 
check that.


Then, I expanded Test-cookies.px to delete the session cookie by using an 
outdated 'Expires' tag. (works fine).

Also included is a test for testing the ignorance of a non-matching domain in 
the Set-Cookie header. (wget fails, but shouldn't due to RFC 6265 5.3.6).
wget just replaces that foreign domain with the domain from the request-uri.


Should things like that go to the bug tracker ? (There are so many open issues 
for so long time that I am unshure about that.)


Regards, Tim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]