C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 05-20-2005, 06:29 AM   #1
Registered User
 
Join Date: May 2005
Posts: 1
SSL Connection Using WinInet

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
soorajchirag is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 06:54 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22