Hi all.
Have to upload a binary file from a C client to IIS with transfer encoding set 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\n81111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111999\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 namely Liteserv & Abyss.
Have referred to link
http://support.microsoft.com/default.aspx?scid=kb;en-us;278998&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..