diff -r 9a0fcbb3925b -r e2b83f60b858 nettools/conntest/Engine/SocketsEngine.cpp --- a/nettools/conntest/Engine/SocketsEngine.cpp Fri Mar 19 09:26:16 2010 +0200 +++ b/nettools/conntest/Engine/SocketsEngine.cpp Fri Apr 16 14:51:55 2010 +0300 @@ -529,6 +529,24 @@ text.AppendFormat( _L8("Unexpected NewCarrierActive %i\n"), aNewAP.AccessPoint() ); iMobility->NewCarrierRejected(); } + + // Clean up and refresh HTTP client for the new carrier + delete iHttpClient; + iHttpClient = NULL; + + TRAPD( err1, iHttpClient = CHttpClient::NewL( iConsole ) ); + if ( err1 != KErrNone ) + { + User::Panic( KPanicConnTest, EConnTestHttpClientInitializationFailed ); + iHttpClient = NULL; + } + + TRAPD( err2, iHttpClient->SetHttpConnectionInfoL( ETrue, iConnection, iSocketServ ) ); + if ( err2 != KErrNone ) + { + User::Panic( KPanicConnTest, EConnTestHttpClientInitializationFailed ); + } + iConsole.PrintNotify( text ); } @@ -1475,11 +1493,11 @@ CleanupStack::PopAndDestroy(&appSess); } - // --------------------------------------------------------- - // CSocketsEngine::SendHttpFrameworkRequestL() - // Send HTTP request - // --------------------------------------------------------- - // +// --------------------------------------------------------- +// CSocketsEngine::SendHttpFrameworkRequestL() +// Send HTTP request +// --------------------------------------------------------- +// void CSocketsEngine::SendHttpFrameworkRequestL( TBool aHasBody, TBool aDoPerformance, TBool aIsSecure )