469,306 Members | 1,850 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

getting error 12007 from httpSendRequest ApI function

I'm trying to use this sequence of VB-API calls to post to a web-page where
client certificate is required.(
InternetOpen,InternetConnect,HttpOpenRequest,HttpS endRequest) And then
InternetReadFile to save Page on local machine.

InternetConnect works fine with URL which are not protected by digital
certificate and Password, but when I try to access a URL where Digital
certificate and UserId and Password is required it gives me problem.
When I do HttpSendRequest , it returns Err.LastDllError=12007(Server name
could not be resolved)
Digital certificate is provided by server admin on my machine.

Here is the code I'm using:

hOpen = InternetOpen("httpGetFile", INTERNET_OPEN_TYPE_PRECONFIG,
vbNullString, vbNullString, 0)
hConnect = InternetConnect(hOpen, sUrl, INTERNET_DEFAULT_HTTPS_PORT, sUID,
sPWD, INTERNET_SERVICE_HTTP, 0, 0)
hRequest = HttpOpenRequest(hConnect, "post", sURL1, "HTTP/1.0",
vbNullString, vbNullString, INTERNET_FLAG_SECURE, 0)
bRes = HttpSendRequest(hRequest, vbNullString, 0, "mystirng", 0)

does any body know the problem?
thanks
Mishi
Jul 17 '05 #1
0 7300

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Cheri Reed | last post: by
1 post views Thread by helper9 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.