engine/src/HttpClient.cpp
branchRCL_3
changeset 310 2e0299e13cbf
parent 285 4d42a5e09930
child 341 a648d7ca5e27
equal deleted inserted replaced
309:d9f6395a50ea 310:2e0299e13cbf
   120 		{
   120 		{
   121 		iWaitingForGet = EFalse;
   121 		iWaitingForGet = EFalse;
   122 		if( aErrorCode == KErrNone)
   122 		if( aErrorCode == KErrNone)
   123 			{
   123 			{
   124 			TRAP_IGNORE(iSession.OpenL());
   124 			TRAP_IGNORE(iSession.OpenL());
   125 			DP("    one");
       
   126 			RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();
   125 			RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();
   127 			DP("    one point five");
       
   128 			RStringPool pool = iSession.StringPool();
   126 			RStringPool pool = iSession.StringPool();
   129 			// Attach to socket server
   127 			// Attach to socket server
   130 			DP("    two");
       
   131 			connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iPodcastModel.ConnectionEngine().SockServ().Handle()));
   128 			connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iPodcastModel.ConnectionEngine().SockServ().Handle()));
   132 			// Attach to connection
   129 			// Attach to connection
   133 			DP("    three");
       
   134 			TInt connPtr = REINTERPRET_CAST(TInt, &iPodcastModel.ConnectionEngine().Connection());
   130 			TInt connPtr = REINTERPRET_CAST(TInt, &iPodcastModel.ConnectionEngine().Connection());
   135 			connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr));
   131 			connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr));
   136 			DP("    four");
       
   137 
   132 
   138 			iPodcastModel.SetProxyUsageIfNeededL(iSession);
   133 			iPodcastModel.SetProxyUsageIfNeededL(iSession);
   139 			DoGetAfterConnectL();
   134 			DoGetAfterConnectL();
   140 			//iWaitingForGet = EFalse; // set to true by DoGetAfterConnectL
       
   141 			}
   135 			}
   142 		else
   136 		else
   143 			{
   137 			{
   144 			ClientRequestCompleteL(KErrCouldNotConnect);
   138 			ClientRequestCompleteL(KErrCouldNotConnect);
   145 			iSession.Close();			
   139 			iSession.Close();