HttpOpenRequest
Provides information for an HTTP request.
#include <httpexp.h>
#include <httpclnt.h>
int HttpOpenRequest (
HINTERNET hndl,
char *pVerb,
char *pObjectName,
char *pVersion,
char *pReferer,
char **ppAcceptTypes);
If successful, returns 0. Otherwise, returns a nonzero error code.
The HttpOpenRequest function follows an HttpConnect call and completes the opening of a request. If all your request information is added with this function, it can be followed by the HttpGetReply function, which then both sends the request and receives the reply.
If you need to add more request information, it is followed by an HttpAddRequestHeader... function to add header information and by an HttpSendRequest function to enable the adding of data.