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;
Check(pHttpRequest.CreateInstance("Msxml2.ServerXMLHTTP4.0"
);
pHttpRequest->setOption( 3, "certificatelocation"
;
I get a compile error:
error C2664: 'setOption' : cannot convert parameter 1 from 'const int' to 'enum _SERVERXMLHTTP_OPTION'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
Error executing cl.exe.
I also tried 'SXH_OPTION_SELECT_CLIENT_SSL_CERT instead' of just '3'. The complier says it's an Ambiguous symbol.
What am I doing wrong?
specs at:
Thanks in advance,
Jorrti
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;
Check(pHttpRequest.CreateInstance("Msxml2.ServerXMLHTTP4.0"
pHttpRequest->setOption( 3, "certificatelocation"
I get a compile error:
error C2664: 'setOption' : cannot convert parameter 1 from 'const int' to 'enum _SERVERXMLHTTP_OPTION'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
Error executing cl.exe.
I also tried 'SXH_OPTION_SELECT_CLIENT_SSL_CERT instead' of just '3'. The complier says it's an Ambiguous symbol.
What am I doing wrong?
specs at:
Thanks in advance,
Jorrti