473,856 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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,In ternetConnect,H ttpOpenRequest, HttpSendRequest ) And then
InternetReadFil e 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.LastDllErro r=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("h ttpGetFile", INTERNET_OPEN_T YPE_PRECONFIG,
vbNullString, vbNullString, 0)
hConnect = InternetConnect (hOpen, sUrl, INTERNET_DEFAUL T_HTTPS_PORT, sUID,
sPWD, INTERNET_SERVIC E_HTTP, 0, 0)
hRequest = HttpOpenRequest (hConnect, "post", sURL1, "HTTP/1.0",
vbNullString, vbNullString, INTERNET_FLAG_S ECURE, 0)
bRes = HttpSendRequest (hRequest, vbNullString, 0, "mystirng", 0)

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

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

Similar topics

4
1957
by: ItsMe | last post by:
Hi Guyz, I'm unable to understand this (AddressOf) error??? In VB6 I have two functions: ---------------------------- Public Function ImageFirstImageCallback(ByVal hWnd As Integer, ByVal iMsg As Integer, ByVal wParam As Integer, ByVal LParam As Integer) As Integer 'Code here
3
3708
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 URL, that returns an XML string. For example, typing "http://192.168.1.254/cgi-bin/dataProxy?oper=queryEvents&raw=1" into IE returns this XML String: <?xml version="1.0" ?>
32
5042
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 in Firefox 1.5 is "Error: expires.toGMTString is not a function" ---------------------------------------------------- I have this in a .js file and in the head section.
0
2932
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 string (>4KB) while using HttpSendRequest(). Does it create any problem at server end. If any length limitation is there what is the limit. How to send this kind of huge data in one single HTTP Post request. Is there any way to post the data via XML approach. Many thanks in advance. bye
0
3263
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 "GET", sURL objHTTP.send The result for code is an objHTTP.Status = 12007 (The server name or address could not be resolved).
1
2985
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 via vpn. They try to send their data in a particular software program back to the server and get: InitCall(0):Error; Code = 8005e24b Code meaning = Unknown error 0x8005E24B Source = SendRequestAndGetResponse Description = XML Parser has reported a WININET.dll error, description is : 12007 - The...
2
1432
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---- Public Function UploadFileHTTP(ByVal localFileName As String, ByVal remoteFileName As String) As Integer Dim nRet As Integer Dim bRet, bQueryInfo As Boolean Dim iRet As Integer Dim nFileHandle, i As Integer Dim bData(BUFFER_SIZE - 1) As Byte Dim leftoversize As Long ...
0
1200
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
3913
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. But I am getting error 'Object doesn't support this property or method'. <form name="myform" action="main.asp" method="post"> <div id="content"> <h2 id="pageName">Main Page</h2> <div class="feature"> <h1>Surfing the intranet </h1> <p> This is a comprehensive information...
0
9911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9762
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10696
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9530
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7093
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4575
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4174
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.