Error BAD REQUEST - HTTP POST

Status
Not open for further replies.

tejasvnahal

Beta member
Messages
2
Hi all,
pls help.
i'm sending the following request to webserver [Tried with all - (IIS, Xatami, Abyss)]
------------------------------------------------------------------------------------
sprintf(buff,"POST /cgi-bin/simple_cgi.exe HTTP/1.1\r\nHost: localhost:80\r\nConnection: keep-alive\r\nTransfer-encoding: chunked\r\n\r\n");
send(conn,buff,strlen(buff),0);
sprintf(buff,"05D\r\n8111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\r\n");
send(conn,buff,strlen(buff),0);
sprintf(buff,"000\r\n\r\n");
send(conn,buff,strlen(buff),0);
------------------------------------------------------------------------------------
But getting BAD REQUEST ERROR - 400.
Have referred to link http://support.microsoft.com/default.aspx?scid=kb;en-us;278998&Product=iis50 and have tried a lot many combinations.
My question -> What is wrong. ? :-(
Rgds
Tejasv...
 
Status
Not open for further replies.
Back
Top Bottom