cmci
August 9th, 1999, 05:57 PM
I'm using the wininet api. I open a request and it works but when I try to
add request header it returns 0. Here's the code. Any Ideas, why
OpenRequest works, but AddRequestheaders doesn't. header is the string with
all the headers I need to add.
hRequest = HttpOpenRequest(hInternetConnect, "POST", "", _
"HTTP/1.1", vbNullString, 0, _
INTERNET_FLAG_NO_CACHE_WRITE, 0)
ret = HttpAddRequestHeaders(hRequest, header, Len(header), _
HTTP_ADDREQ_FLAG_ADD)
Any help would be greatly appreciated.
add request header it returns 0. Here's the code. Any Ideas, why
OpenRequest works, but AddRequestheaders doesn't. header is the string with
all the headers I need to add.
hRequest = HttpOpenRequest(hInternetConnect, "POST", "", _
"HTTP/1.1", vbNullString, 0, _
INTERNET_FLAG_NO_CACHE_WRITE, 0)
ret = HttpAddRequestHeaders(hRequest, header, Len(header), _
HTTP_ADDREQ_FLAG_ADD)
Any help would be greatly appreciated.