[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] Lynx doesn't follow 30* redirect if the Location is the s
From: |
Martin Tournoij |
Subject: |
Re: [Lynx-dev] Lynx doesn't follow 30* redirect if the Location is the same |
Date: |
Thu, 15 Jan 2015 23:23:41 +0100 |
On Thu, Jan 15, 2015, at 23:02, David Woolley wrote:
> On 15/01/15 14:40, Martin Tournoij wrote:
>
> > If I do a request:
> >
> > POST /test
> >
> > and this returns a 303 with:
> >
> > Location /test
> >
> > Lynx decides not to redirect to the new /test URL...
> > If I change either the original request or the Location response to
> > include a query parameter (ie. s=t), Lynx redirects as expected.
> >
> > Is this a bug or a feature? All browsers that I tested properly
> > redirect, except for Lynx and derivatives (Links, ELinks).
>
> What was the most recent GET? If the sequence was:
>
> GET /test
> POST /test
> 303 (Location=/Test)
>
> This is allowable, in the absence of conflicting cache-control directives.
Yeah, it's this sequence.
I'm not quite sure what you mean with 'conflicting cache-control
directives'?
I've set Cache-Control: no-cache; is this wrong or inadequate?
For reference, here are all headers from a simple test application:
$ curl -v redirect.arp242.net
> GET / HTTP/1.1
> User-Agent: curl/7.39.0
> Host: redirect.arp242.net
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.6.2
< Date: Thu, 15 Jan 2015 22:16:27 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 106
< Connection: keep-alive
< Cache-Control: no-cache
< X-Xss-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
$ curl -v -X POST --data a=b redirect.arp242.net
> POST / HTTP/1.1
> User-Agent: curl/7.39.0
> Host: redirect.arp242.net
> Accept: */*
> Content-Length: 3
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 3 out of 3 bytes
< HTTP/1.1 303 See Other
< Server: nginx/1.6.2
< Date: Thu, 15 Jan 2015 22:18:21 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 0
< Location: http://redirect.arp242.net/
< Connection: keep-alive
< Cache-Control: no-cache
< X-Xss-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
Thanks!
Martin