I'm trying to authenticate with the passport server for an MSN Messenger client (The connection has to be SSL), but the request is never goes through. Does anybody see what I'm doing wrong here?
For information about the MSN Protocol, I was getting my information here.Code:int AuthenticatePassport(const char *pszUsername, const char *pszPassword) { int nResult=0; HINTERNET hInternet, hHttpSession, hHttpRequest; // set up connection if ( (hInternet=InternetOpen("MSN", INTERNET_OPEN_TYPE_PRECONFIG, 0, 0, 0)) ) { // set up session if ( (hHttpSession=InternetConnect(hInternet, "https://nexus.passport.com", INTERNET_DEFAULT_HTTPS_PORT, 0, 0, INTERNET_SERVICE_HTTP, 0, 0)) ) { // open site if ( (hHttpRequest=HttpOpenRequest(hHttpSession, "GET", "/rdr/pprdr.asp", 0, 0, 0, INTERNET_FLAG_SECURE, 0)) ) { // send request for login server if ( HttpSendRequest(hHttpRequest, 0, 0, 0, 0) ) { // TODO: Connect to login server nResult=1; } } InternetCloseHandle(hHttpRequest); } InternetCloseHandle(hHttpSession); } InternetCloseHandle(hInternet); return nResult; }
Thanks in advance,
Joe



LinkBack URL
About LinkBacks
. Does anybody see what I'm doing wrong here?


