HTTP/1.1 400 Bad Request - POST -transfer encoding chunked
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server > HTTP/1.1 400 Bad Request - POST -transfer encoding chunked




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

tejasvnahal is offline     HTTP/1.1 400 Bad Request - POST -transfer encoding chunked  
tejasvnahal


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for tejasvnahal Click here to Send tejasvnahal a Private Message Find more posts by tejasvnahal Add tejasvnahal to your buddy list
 
06-09-04 10:34 AM

Hi all.
Have to upload a binary file from a C client to IIS with transfer encoding s
et to CHUNKED .
So using POST request for the same. My test request is as follows
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-------------------------------
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," 400\r\n811111111111111111111111111111111
1111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111111111111111111111111111
 1111111111111111111111111111111111111111
111111111111999\r\n");
send(conn,buff,strlen(buff),0);

sprintf(buff,"000\r\n\r\n");
send(conn,buff,strlen(buff),0);	
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-------------------------------
But with IIS V 5.0 i'm getting an error - HTTP/1.1 400 Bad Request. and the 
cgi is not invoked at all

This same request is working fine with two other webservers that i tried nam
ely Liteserv & Abyss.

Have referred to link
http://support.microsoft.com/defaul...8&Product=iis50
and set the value for AspEnableChunkedEncoding to True but still....

Pls help me to get this working.
or pls point out any good internet resources which could help.

Thanks is anticipation guys,
Tejasv..




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:35 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register