Discussion:
HttpSendRequest
(too old to reply)
y***@gmail.com
2005-10-03 14:28:05 UTC
Permalink
Hi all,

I'm trying to download a page from a remote server using POST method in
order to submit a form. I actually manage to do it several times, but
in the third time HttpSendRequest always fails and returns error code
12007. Any idea why?

Thanks,
Yudi
Reymarx Gereda
2005-10-05 21:15:10 UTC
Permalink
Hi Yudi,

Are you calling InternetOpen or InternetConnect for every time you call
HttpSendRequest (after HttpOpenRequest)?

Could you provide some additional info on this? Are you calling
HttpOpenRequest for each time you call HttpSendRequest also?

Thanks
--
Reymarx [MSFT]
Windows- Networking
This posting is provided "AS IS" with no warranties, and confers no rights
Post by y***@gmail.com
Hi all,
I'm trying to download a page from a remote server using POST method in
order to submit a form. I actually manage to do it several times, but
in the third time HttpSendRequest always fails and returns error code
12007. Any idea why?
Thanks,
Yudi
y***@gmail.com
2005-10-10 10:52:39 UTC
Permalink
Thanks, but I already solved this issue. I was also using the winsock
API at the same time, and my guess is that WSACleanup is also used by
the wininet API. I was calling WSACleanup too many times and it must
have corrupted the reference count for that function. After setting it
to be called only when needed the problem was solved.

Thanks for the response anyway :)

Yudi

Continue reading on narkive:
Loading...