I need to connect to the server at port no -5000 and the type of request needs to be https post. It seems to me that i need to set nServerPort as 5000, i was trying to find out how should i set the type of request to be https?
Currently i am doing so by setting dwflags in WinHttpOpenRequest = WINHTTP_FLAG_SECURE.
Also i need to ignore the certificate warnings and errors which i am doing as follows: -
WinHttpSetOption( hRequest, SECURITY_FLAG_IGNORE_UNKNOWN_CA, 0, 0);
WinHttpSetOption( hRequest, SECURITY_FLAG_IGNORE_CERT_CN_INVALID, 0, 0);
But its throwing GetLastError() = 12175
Please someone correct me where i am going wrong suggest how should i do it?
Thanks in advance
Akshat
Currently i am doing so by setting dwflags in WinHttpOpenRequest = WINHTTP_FLAG_SECURE.
Also i need to ignore the certificate warnings and errors which i am doing as follows: -
WinHttpSetOption( hRequest, SECURITY_FLAG_IGNORE_UNKNOWN_CA, 0, 0);
WinHttpSetOption( hRequest, SECURITY_FLAG_IGNORE_CERT_CN_INVALID, 0, 0);
But its throwing GetLastError() = 12175
Please someone correct me where i am going wrong suggest how should i do it?
Thanks in advance
Akshat