javacommons/gcfprotocols/http/src.s60/chttpsessionclient.cpp
changeset 69 773449708c84
parent 48 e0d6e9bd3ca7
child 66 2455ef1f5bbc
child 87 1627c337e51e
equal deleted inserted replaced
61:bf7ee68962da 69:773449708c84
   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");
   247 
   248 
   248     // This is special case when that IAP/SNAP is not found
   249     // This is special case when that IAP/SNAP is not found
   249     // Override the http stack's feaute of using device default
   250     // Override the http stack's feaute of using device default
   250     if (*apnerr < 0)
   251 //    if (*apnerr < 0)
   251     {
   252 //    {
   252         LOG(ESOCKET,EInfo,"ECommDbDialogPrefPrompt set for the http session");
   253 //        LOG(ESOCKET,EInfo,"ECommDbDialogPrefPrompt set for the http session");
   253         int ret = iSocketServ.Connect();
   254 //        int ret = iSocketServ.Connect();
   254         ret = iConnection.Open(iSocketServ);
   255 //        ret = iConnection.Open(iSocketServ);
   255 #ifdef RD_JAVA_S60_RELEASE_9_2_ONWARDS
   256 //#ifdef RD_JAVA_S60_RELEASE_9_2_ONWARDS
   256         TConnPrefList prefList;
   257 //        TConnPrefList prefList;
   257         TExtendedConnPref prefs;
   258 //        TExtendedConnPref prefs;
   258         prefs.SetConnSelectionDialog(ETrue);
   259 //        prefs.SetConnSelectionDialog(ETrue);
   259         prefList.AppendL(&prefs);
   260 //        prefList.AppendL(&prefs);
   260         ret = iConnection.Start(prefList);
   261 //        ret = iConnection.Start(prefList);
   261         LOG(ESOCKET,EInfo,"+HttpSessionClient:: using extended connection prefernce - error case ");
   262 //        LOG(ESOCKET,EInfo,"+HttpSessionClient:: using extended connection prefernce - error case ");
   262 #else
   263 //#else
   263         TCommDbConnPref pref;
   264 //        TCommDbConnPref pref;
   264         pref.SetDialogPreference(ECommDbDialogPrefPrompt);
   265 //        pref.SetDialogPreference(ECommDbDialogPrefPrompt);
   265         ret = iConnection.Start(pref);
   266 //        ret = iConnection.Start(pref);
   266         LOG(ESOCKET,EInfo,"+HttpSessionClient:: using commdb con pref - error case ");
   267 //        LOG(ESOCKET,EInfo,"+HttpSessionClient:: using commdb con pref - error case ");
   267 #endif
   268 //#endif
   268 
   269 //
   269         RHTTPConnectionInfo connInfo = iHttpSession.ConnectionInfo();
   270 //        RHTTPConnectionInfo connInfo = iHttpSession.ConnectionInfo();
   270         connInfo.SetPropertyL(iHttpSession.StringPool().StringF(
   271 //        connInfo.SetPropertyL(iHttpSession.StringPool().StringF(
   271                                   HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iSocketServ.Handle()));
   272 //                                  HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iSocketServ.Handle()));
   272         TInt connPtr = REINTERPRET_CAST(TInt, &iConnection);
   273 //        TInt connPtr = REINTERPRET_CAST(TInt, &iConnection);
   273         connInfo.SetPropertyL(iHttpSession.StringPool().StringF(
   274 //        connInfo.SetPropertyL(iHttpSession.StringPool().StringF(
   274                                   HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr));
   275 //                                  HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr));
   275     }
   276 //    }
   276 
   277 
   277     //Add proxy support
   278     //Add proxy support
   278     TRAP_IGNORE(LoadProxyLibraryL(aAPNId));
   279     TRAP_IGNORE(LoadProxyLibraryL(aAPNId));
   279 
   280 
   280     // Try to load the customiser plugin, which enables customisation
   281     // Try to load the customiser plugin, which enables customisation