Closed GoogleCodeExporter closed 9 years ago
http://tools.ietf.org/html/rfc2616#section-14.30
According to the specification, the Location field points to an absolute URI,
which indicates to me that a relative URL would be incompatible with the
specification.
However, note this comment in wikipedia.org:
http://en.wikipedia.org/wiki/HTTP_location
http://en.wikipedia.org/wiki/URL_redirection#Using_server-side_scripting_for_red
irection
"While the internet standard RFC 1945 (HTTP 1.0) requires a complete absolute
URI for redirection,[2][3] the most popular web browsers tolerate the passing
of a relative URL as the value for a Location header.[citation needed]"
I tried it in Chrome and it works there. So it seems reasonable to try to
tolerate it in the client library as well.
Original comment by yan...@google.com
on 23 Apr 2012 at 11:28
Original comment by yan...@google.com
on 24 Oct 2012 at 5:39
Original comment by yan...@google.com
on 13 Dec 2012 at 2:38
Original comment by yan...@google.com
on 9 Jan 2013 at 8:50
https://codereview.appspot.com/7058067/
Original comment by yan...@google.com
on 9 Jan 2013 at 10:08
Original comment by yan...@google.com
on 14 Jan 2013 at 8:08
The fix cannot handle relative path redirect for empty path URL, @see
http://code.google.com/p/google-http-java-client/issues/detail?id=201
Original comment by mingfai...@gmail.com
on 23 Feb 2013 at 10:53
Issue 198 has been merged into this issue.
Original comment by yan...@google.com
on 11 Mar 2013 at 11:58
Original issue reported on code.google.com by
esch...@gmail.com
on 28 Mar 2012 at 7:23