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 ]
|