472,328 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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,
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?
Jul 17 '05 #1
0 7463

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: ItsMe | last post by:
Hi Guyz, I'm unable to understand this (AddressOf) error??? In VB6 I have two functions: ---------------------------- Public Function...
by: Cheri Reed | last post by:
Hello, I've looked through several newsgroups and have yet to find help with this problem. We have a device we can access through IE, using a...
by: paul | last post by:
HI! I keep on getting this error and I have tried different things but I am not sure how to send the expiring date. The error that I am getting...
by: sudhivns | last post by:
Hi, Is there any length limitation for the parameter LPCTSTR lpszObjectName, in HttpOpenRequest(). ?? I'm using some URL appended with lengthy...
by: Jos275 | last post by:
Hello, Currently I'm using the next snippet in my code sURL = "" objHTTP.Open...
by: helper9 | last post by:
I do not write XML code. In the last week, some of our laptop field users have reported receiving an error while they are connected to our server...
by: Swan | last post by:
I am creating OCX for Http Upload control.can anyone plz tell me why the function UploadFileHTTP returns 0 when used?I am posting my code---- ...
by: Swan | last post by:
Can anyone plz tell me what is the limitation(size) of HttpSendRequest api to upload the file? I mean how big file it can upload? Thank you!
by: vikas251074 | last post by:
I am getting error while entry in userid field. When user enter his user id, an event is fired immediately and user id is verified using AJAX method....
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.