CInternetSession stInternet;
CHttpConnection* stConn = stInternet.GetHttpConnection("nexus.passport.com",INTERNET_FLAG_SECURE,443,"","");
CHttpFile* httpFile = stConn->OpenRequest("GET","/rdr/pprdr.asp",0,1,0,"1.0",INTERNET_FLAG_SECURE);
if(httpFile->SendRequest()) {
httpFile->Flush();
int nLength = httpFile->GetLength();
ZeroMemory(cBuffer,sizeof(cBuffer));
CString strHeader;
while(strlen(cBuffer)==0) {
httpFile->SeekToBegin();
httpFile->Read(cBuffer,4096);
}
httpFile->QueryInfo(HTTP_QUERY_CONTENT_TYPE,strHeader);
}