I don't think that using the WinHTTP SDK will solve the problem because ServerXMLHTTP uses WinHTTP already.
This was stated on MSDN and I tested it myself. Here's a line from a HTTP-Header of a ServerXMLHTTP POST request that I caught:
HTTP_USER_AGENT: Mozilla/4.0 (compatible; Win32...
the website i post to is one for billing mobile transactions. I can only be accesses via a POST request so it is not possible to go to the website with a browser.
-The website controls the identity of every computer it receives posts from.
-I have to authenticate myself everytime I post, that's...
I get a pop up asking me to accept a certificate from the webserver I try to post too. I accept it and import it. But the problem is that everytime I post for the first time in a session, I must accept the same certificate. IE doesn't see that I already accepted the certificate and that it is...
The global problem I have is as follows:
I can post data to the SSL website when I use the normal XML HTTP object (not server specific). I need to post an empty request, then I get a popup asking me to accept a certificate and then I can post data as much as I like, for one session.
I am...
I only want to use the SSL certificate to be able to post to a https:// website on another computer. I don't need to SSL-secure my own websites. The SSL certificate I want to use is only to identify myself to the website I want to post to. I already tried to save the certificate using mmc.exe...
Referencing a certificate isn't trivial.
I have a certificates called 'abc'.
In de Microsoft Management Console the path to the certificate is:
Console Root\Certificates(Local Computer)\Personal\Certificates
I can't see the Certificate in IE when I look under Tools/Internet...
hey guys,
thanks. It compiles now. I was stupid and overlooked these two lines of code:
#include "MSXML 4.0\inc\MSXML2.h"
#include "MSXML 4.0\inc\MSXML2did.h"
These lines were causing the trouble.
I just deleted them.
Only remaining problem is certificate location. But I...
When I try
pHttpRequest->setOption(MSXML2::SXH_OPTION_SELECT_CLIENT_SSL_CERT, "certificatel;ocation");
It doesn't compile neither. Compiler says: "error C2664: 'setOption' : cannot convert parameter 1 from 'enum MSXML2::_SERVERXMLHTTP_OPTION' to 'enum _SERVERXMLHTTP_OPTION'...
It's quite strange. When I use the code in a new, empty, normal C++ source file it compiles without a problem. In my project it doesn't, unfortunately.
I use the code Jolesen typed above. Only I do the import and namespacing in another file which I include in the file where I use the MSXML server object in. It doesn't work. The compiler still complains that 'SXH_OPTION_SELECT_CLIENT_SSL_CERT' is an ambiguous symbol.
I have the latest MSXML SDK...
Hi all,
I'm trying to use the MSXML4 Server HTTP object to post to a SSL secured location.
I use the "Msxml2.ServerXMLHTTP4.0" object. I want to use the setOption method to specify which client has to be used.
Like this:
IServerXMLHTTPRequestPtr pHttpRequest...
Hi all,
I'm having a very weird problem using Microsoft's MSXML HttpRequest object. It works fine when I use it to do a normal 'GET' or 'POST' request. Now I need to connect to a SSL (URL starts with "https://") location and the following problem occurs.
-When I post a request the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.