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