|
Home > Archive > IIS Server > December 2005 > IIS 6 bad request (invalid verb)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IIS 6 bad request (invalid verb)
|
|
| erhansaygi@gmail.com 2005-12-02, 2:51 am |
| this is a request that i am trying to send to an .aspx page on the IIS
6 server, using an c++ application.
POST /demo/kllsues/vtr/test.aspx
Content-Type: application/x-www-form-urlencoded
Content-Length: 242766
userna.......
but i get an
HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Wed, 21 May 2003 14:17:52 GMT
Connection: close
Content-Length: 35
<h1>Bad Request (Invalid Verb)</h1>
reply, and this perfectly works on iis 5 on xp, what might be wrong
here, any ideas ?
| |
| David Wang [Msft] 2005-12-02, 2:51 am |
| Your application is sending invalid HTTP request because it is missing the
HTTP version as specified in RFC2616. Fix your client.
It should look like:
POST /demo/kllsues/vtr/test.aspx HTTP/1.0\r\n
Content-Type: application/x-www-form-urlencoded\r\n
Content-Length: 242766\r\n
....
It does not matter that prior version of IIS accepted invalid HTTP requests.
HTTP.SYS and IIS6 do not accept them for security reasons. No
exceptions/workarounds.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
<erhansaygi@gmail.com> wrote in message
news:1133506687.582406.28110@g47g2000cwa.googlegroups.com...
this is a request that i am trying to send to an .aspx page on the IIS
6 server, using an c++ application.
POST /demo/kllsues/vtr/test.aspx
Content-Type: application/x-www-form-urlencoded
Content-Length: 242766
userna.......
but i get an
HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Wed, 21 May 2003 14:17:52 GMT
Connection: close
Content-Length: 35
<h1>Bad Request (Invalid Verb)</h1>
reply, and this perfectly works on iis 5 on xp, what might be wrong
here, any ideas ?
|
|
|
|
|