242 } |
242 } |
243 |
243 |
244 } // end of else |
244 } // end of else |
245 |
245 |
246 LOG1(ESOCKET,EInfo,"apnerr = %d",*apnerr); |
246 LOG1(ESOCKET,EInfo,"apnerr = %d",*apnerr); |
247 LOG(ESOCKET,EInfo,"now no re prompting"); |
|
248 |
247 |
249 // This is special case when that IAP/SNAP is not found |
248 // This is special case when that IAP/SNAP is not found |
250 // Override the http stack's feaute of using device default |
249 // Override the http stack's feaute of using device default |
251 // if (*apnerr < 0) |
250 if (*apnerr < 0) |
252 // { |
251 { |
253 // LOG(ESOCKET,EInfo,"ECommDbDialogPrefPrompt set for the http session"); |
252 LOG(ESOCKET,EInfo,"ECommDbDialogPrefPrompt set for the http session"); |
254 // int ret = iSocketServ.Connect(); |
253 int ret = iSocketServ.Connect(); |
255 // ret = iConnection.Open(iSocketServ); |
254 ret = iConnection.Open(iSocketServ); |
256 //#ifdef RD_JAVA_S60_RELEASE_9_2_ONWARDS |
255 #ifdef RD_JAVA_S60_RELEASE_9_2_ONWARDS |
257 // TConnPrefList prefList; |
256 TConnPrefList prefList; |
258 // TExtendedConnPref prefs; |
257 TExtendedConnPref prefs; |
259 // prefs.SetConnSelectionDialog(ETrue); |
258 prefs.SetConnSelectionDialog(ETrue); |
260 // prefList.AppendL(&prefs); |
259 prefList.AppendL(&prefs); |
261 // ret = iConnection.Start(prefList); |
260 ret = iConnection.Start(prefList); |
262 // LOG(ESOCKET,EInfo,"+HttpSessionClient:: using extended connection prefernce - error case "); |
261 LOG(ESOCKET,EInfo,"+HttpSessionClient:: using extended connection prefernce - error case "); |
263 //#else |
262 #else |
264 // TCommDbConnPref pref; |
263 TCommDbConnPref pref; |
265 // pref.SetDialogPreference(ECommDbDialogPrefPrompt); |
264 pref.SetDialogPreference(ECommDbDialogPrefPrompt); |
266 // ret = iConnection.Start(pref); |
265 ret = iConnection.Start(pref); |
267 // LOG(ESOCKET,EInfo,"+HttpSessionClient:: using commdb con pref - error case "); |
266 LOG(ESOCKET,EInfo,"+HttpSessionClient:: using commdb con pref - error case "); |
268 //#endif |
267 #endif |
269 // |
268 |
270 // RHTTPConnectionInfo connInfo = iHttpSession.ConnectionInfo(); |
269 RHTTPConnectionInfo connInfo = iHttpSession.ConnectionInfo(); |
271 // connInfo.SetPropertyL(iHttpSession.StringPool().StringF( |
270 connInfo.SetPropertyL(iHttpSession.StringPool().StringF( |
272 // HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iSocketServ.Handle())); |
271 HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iSocketServ.Handle())); |
273 // TInt connPtr = REINTERPRET_CAST(TInt, &iConnection); |
272 TInt connPtr = REINTERPRET_CAST(TInt, &iConnection); |
274 // connInfo.SetPropertyL(iHttpSession.StringPool().StringF( |
273 connInfo.SetPropertyL(iHttpSession.StringPool().StringF( |
275 // HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr)); |
274 HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr)); |
276 // } |
275 } |
277 |
276 |
278 //Add proxy support |
277 //Add proxy support |
279 TRAP_IGNORE(LoadProxyLibraryL(aAPNId)); |
278 TRAP_IGNORE(LoadProxyLibraryL(aAPNId)); |
280 |
279 |
281 // Try to load the customiser plugin, which enables customisation |
280 // Try to load the customiser plugin, which enables customisation |