Welcome! Log In Create A New Profile

Advanced

Re: HTTP/405

Frank Liu
August 04, 2017 12:44PM
Valentin,

I checked the trac and basically it says very complicated to properly
implement. When I try the same curl against apache.org, they just return a
blank Allow header to compliant RFC. Maybe nginx can do the same?

curl -v -X TRACE http://apache.org

* Rebuilt URL to: http://apache.org/

* Trying 140.211.11.105...

* TCP_NODELAY set

* Connected to apache.org (140.211.11.105) port 80 (#0)

> TRACE / HTTP/1.1

> Host: apache.org

> User-Agent: curl/7.54.0

> Accept: */*

>

< HTTP/1.1 405 Method Not Allowed

< Date: Fri, 04 Aug 2017 16:38:42 GMT

< Server: Apache/2.4.7 (Ubuntu)

< Allow:

< Content-Length: 223

< Content-Type: text/html; charset=iso-8859-1

<

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>405 Method Not Allowed</title>

</head><body>

<h1>Method Not Allowed</h1>

<p>The requested method TRACE is not allowed for the URL /.</p>

</body></html>

* Connection #0 to host apache.org left intact



On Fri, Aug 4, 2017 at 4:05 AM, Valentin V. Bartenev <vbart@nginx.com>
wrote:

> On Thursday 03 August 2017 22:28:41 Frank Liu wrote:
> > https://tools.ietf.org/html/rfc7231#page-59 says:
> >
> > ... The origin server MUST generate an
> > Allow header field in a 405 response containing a list of the target
> > resource's currently supported methods.
> >
> > nginx doesn't seem to have Allow header field. Is that against RFC?
> >
>
> Please, look at the explanations in https://trac.nginx.org/nginx/
> ticket/1161
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HTTP/405

Frank Liu August 04, 2017 01:30AM

Re: HTTP/405

B.R. via nginx August 04, 2017 06:48AM

Re: HTTP/405

Frank Liu August 04, 2017 12:40PM

Re: HTTP/405

Valentin V. Bartenev August 04, 2017 07:08AM

Re: HTTP/405

Frank Liu August 04, 2017 12:44PM

Re: HTTP/405

Valentin V. Bartenev August 04, 2017 01:38PM

Re: HTTP/405

B.R. via nginx August 07, 2017 01:24PM

Re: HTTP/405

Valentin V. Bartenev August 07, 2017 01:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready