HttpSendDataSprintf
Transmits formatted data to the body of a request.
#include <httpexp.h>
#include <httpclnt.h>
int HttpSendDataSprintf (
HINTERNET hrequest,
void *controlString,
...);
If successful, returns 0. Otherwise, returns a nonzero error code.
You use the HttpSendDataSprintf function just as you would a printf function, which has a control string and additional arguments as required by the control string. The size of the output string should be limited to less than 1024 characters per call, to prevent internal buffer overflows. This function can be called multiple times to send all the data.
The function can be used to send either client request data or server response data.