POST and 405
am 02.07.2007 21:22:32 von rafal.zieba
When I send OPTIONS request I'm getting response headers as fallow:
{Allow: OPTIONS, TRACE, GET, HEAD, POST
Public: OPTIONS, TRACE, GET, HEAD, POST
Content-Length: 0
Date: Mon, 02 Jul 2007 19:07:55 GMT
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
}
Yet when I'm trying to use POST method I'm getting 405 (Method Not Allowed)
and headers:
{Allow: GET, HEAD, OPTIONS, TRACE
Content-Length: 2826
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Mon, 02 Jul 2007 19:13:04 GMT
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
}
Question is why? What am I doing wrong?
Re: POST and 405
am 03.07.2007 04:32:22 von David Wang
The URL you are POST'ing to does not support POST. Please provide the
URL.
Even if OPTIONS returns POST as allowed for a static file, it will
return 405 for a POST.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Jul 2, 12:22 pm, Rafa Zi ba wrote:
> When I send OPTIONS request I'm getting response headers as fallow:
>
> {Allow: OPTIONS, TRACE, GET, HEAD, POST
> Public: OPTIONS, TRACE, GET, HEAD, POST
> Content-Length: 0
> Date: Mon, 02 Jul 2007 19:07:55 GMT
> Server: Microsoft-IIS/7.0
> X-Powered-By: ASP.NET
>
> }
>
> Yet when I'm trying to use POST method I'm getting 405 (Method Not Allowed)
> and headers:
>
> {Allow: GET, HEAD, OPTIONS, TRACE
> Content-Length: 2826
> Cache-Control: private
> Content-Type: text/html; charset=utf-8
> Date: Mon, 02 Jul 2007 19:13:04 GMT
> Server: Microsoft-IIS/7.0
> X-Powered-By: ASP.NET
>
> }
>
> Question is why? What am I doing wrong?