I am opening file in binary mode using
fopen("abhi.zip","rb");
and reading contents from it and appending it to header.
as there are many null characters in “abhi.zip”(zipped file)
It is posting data only till it reads a null character.
i am using httpsendrequest(…);
i am struck here,can anyone please help me…
You are not supposed to stick your POST data into the headers, instead, pass it as the
lpOptionalparameter, passing its length indwOptionalLength. You will likely need to encode and wrap your data with the proper MIME boundaries (I could find no clear documentation on whether or not this is needed)