You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/02/21 05:41:21 UTC
bug with proxy TRACE? (fwd)
Not acked.
---------- Forwarded message ----------
Date: Fri, 21 Feb 97 10:33:36 EST
From: Dave Kristol <dm...@research.bell-labs.com>
To: apache-bugs@apache.org
Subject: bug with proxy TRACE?
I'm running Apache/1.2b3 as a (non-caching) proxy. I sent it the
following request with the expectation that it would get forwarded
to the next-hop server (and so on):
TRACE http://www.apache.org/ HTTP/1.1
Host: www.apache.org
I got back an immediate non-forwarded response from the proxy itself:
HTTP/1.1 200 OK
Date: Fri, 21 Feb 1997 15:26:56 GMT
Server: Apache/1.2b3
Transfer-Encoding: chunked
Content-Type: message/http
3c
TRACE http://www.apache.org HTTP/1.1
Host: www.apache.org
0
I expected at least two hops (and Via headers) and a response from
www.apache.org, or a failure from an intervening Netscape proxy.
Dave Kristol
Re: bug with proxy TRACE? (fwd)
Posted by Dean Gaudet <dg...@arctic.org>.
No we're still 1.1 compliant, we never claimed the proxy was 1.1... and
TRACE isn't part of 1.0. Not that I disagree that this is a bug. It's
just that our proxy wouldn't do the right thing with a trace anyhow. At
least it's not apparent on some quick reading of the code.
The other thing is that 1.1 says that the server MUST accept absoluteURI
even though clients don't generate it on non-proxied 1.1 requests.
However, we use the presence of an absoluteURI to set r->proxyreq which is
not quite correct when there is a real 1.1 proxy in the server. For
example, if you go to host foo, and give it http://foo/bar that isn't a
proxied request.
Dean
On Fri, 21 Feb 1997, Alexei Kosut wrote:
> On Fri, 21 Feb 1997, Dean Gaudet wrote:
>
> > Responses from our proxy should be downgraded to 1.0 until it is a 1.1
> > proxy...
>
> They are. The problem is that the proxy is not getting the TRACE
> request. It seems to be processed by the server itself - which is
> wrong, if it's a proxy request. Apache should be checking r->proxyreq
> before sending a trace response. If it's set, it should not send the
> trace response itself, but should let the proxy handle it (even if it
> fails, that's actually better than an incorrectly-send response by the
> server, because the client can then gracefully handle it somehow).
>
> I think originally, when I wrote the trace code, it did this, but Roy
> had it changed (and he recently changed it again, but I don't think that
> changed it), and apparently this got messed up somewhere.
>
> This should defenitely be fixed, because it makes Apache non-HTTP/1.1
> compliant.
>
> --
> ________________________________________________________________________
> Alexei Kosut <ak...@nueva.pvt.k12.ca.us> The Apache HTTP Server
> URL: http://www.nueva.pvt.k12.ca.us/~akosut/ http://www.apache.org/
>
>
Re: bug with proxy TRACE? (fwd)
Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Fri, 21 Feb 1997, Dean Gaudet wrote:
> Responses from our proxy should be downgraded to 1.0 until it is a 1.1
> proxy...
They are. The problem is that the proxy is not getting the TRACE
request. It seems to be processed by the server itself - which is
wrong, if it's a proxy request. Apache should be checking r->proxyreq
before sending a trace response. If it's set, it should not send the
trace response itself, but should let the proxy handle it (even if it
fails, that's actually better than an incorrectly-send response by the
server, because the client can then gracefully handle it somehow).
I think originally, when I wrote the trace code, it did this, but Roy
had it changed (and he recently changed it again, but I don't think that
changed it), and apparently this got messed up somewhere.
This should defenitely be fixed, because it makes Apache non-HTTP/1.1
compliant.
--
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us> The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/ http://www.apache.org/
Re: bug with proxy TRACE? (fwd)
Posted by Dean Gaudet <dg...@arctic.org>.
Responses from our proxy should be downgraded to 1.0 until it is a 1.1
proxy...
Dean
On Fri, 21 Feb 1997, Rob Hartill wrote:
>
> Not acked.
>
> ---------- Forwarded message ----------
> Date: Fri, 21 Feb 97 10:33:36 EST
> From: Dave Kristol <dm...@research.bell-labs.com>
> To: apache-bugs@apache.org
> Subject: bug with proxy TRACE?
>
> I'm running Apache/1.2b3 as a (non-caching) proxy. I sent it the
> following request with the expectation that it would get forwarded
> to the next-hop server (and so on):
> TRACE http://www.apache.org/ HTTP/1.1
> Host: www.apache.org
>
> I got back an immediate non-forwarded response from the proxy itself:
>
> HTTP/1.1 200 OK
> Date: Fri, 21 Feb 1997 15:26:56 GMT
> Server: Apache/1.2b3
> Transfer-Encoding: chunked
> Content-Type: message/http
>
> 3c
> TRACE http://www.apache.org HTTP/1.1
> Host: www.apache.org
>
> 0
>
> I expected at least two hops (and Via headers) and a response from
> www.apache.org, or a failure from an intervening Netscape proxy.
>
> Dave Kristol
>
>
>