![]() |
| | #1 |
| Registered User Join Date: May 2005
Posts: 1
| SSL Connection Using WinInet 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 |
| soorajchirag is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple forks in one client connection (ftpclient) | Dynamo | Networking/Device Communication | 3 | 07-09-2008 02:26 PM |
| SSL and 503 FTP Error :: Socket | kuphryn | Networking/Device Communication | 2 | 03-18-2005 04:15 PM |
| passing a connection to another process. | Kinasz | Networking/Device Communication | 3 | 10-09-2004 05:34 PM |
| Headers that use each other | nickname_changed | C++ Programming | 7 | 10-03-2003 04:25 AM |
| SSL Connection from CGI | tetradtech | Linux Programming | 0 | 10-25-2002 01:13 PM |