Reputation: 3940
How should an HTTP proxy, when receiving a CONNECT request from the client, indicate that the proxy does not support CONNECT? I tried to read RFC2817, but didn't find any information about the case when CONNECT is not supported.
Upvotes: 1
Views: 89
Reputation: 175065
CONNECT
, despite its distinct behavior, is still a request method, and according to RFC 2616 section 10.4.6 (CONNECT
was originally specified as a reserved verb in RFC2616), HTTP 405 should be used when:
The method specified in the Request-Line is not allowed for the
resource identified by the Request-URI. The response MUST include an
Allow header containing a list of valid methods for the requested
resource.
RFCs 7230 and 7231 which updates and obsoletes both the original HTTP/1.1 specification as well as RFC2817 makes no mention of recommended responses to indicate CONNECT as not supported, in which case I assume the above still to be a valid interpretation
Upvotes: 4