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,
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 7463

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

Similar topics

4
by: ItsMe | last post by:
Hi Guyz, I'm unable to understand this (AddressOf) error??? In VB6 I have two functions: ---------------------------- Public Function...
3
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...
32
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...
0
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...
0
by: Jos275 | last post by:
Hello, Currently I'm using the next snippet in my code sURL = "http://192.168.100.7/services/retrieveData" objHTTP.Open...
1
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...
2
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---- ...
0
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!
21
vikas251074
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....
0
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...
0
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...
0
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...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
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...
0
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...
0
jalbright99669
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...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
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.