Hi,

I have written some code for establishing an HTTPS connection which is .....

Code:
      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);
     }



But i cant seem to get a response from the server... (only when i give it the correct Command.. otherwise it does return an error page) can somebody please tell me why?????

Pleaase help!!!!

Thanks
Soorajchirag