Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Error BAD REQUEST - HTTP POST
Closed Thread
Old 06-12-2004, 08:35 AM   #1 (permalink)
 
Newb Techie

Join Date: Jun 2004

Posts: 2

tejasvnahal

Question Error BAD REQUEST - HTTP POST

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\n81111111111111111111111111111 11111111111111111111111111111111111111111111111111 111111111111\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...&Product=iis50 and have tried a lot many combinations.
My question -> What is wrong. ? :-(
Rgds
Tejasv...
tejasvnahal is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On