Hi;
I am using the WebClientEngine class from S60 Third Edition WebClient example. There is no problem in the first call of (done when the user clicks a command)
However after this transaction is succesfull I have to start another transaction. I am using the code below. WebClientEngine returns the following logs and the application crashes. The url is not broken, I've tried it.Code:iClient->IssueHTTPGetL ( uri8);
"Transaction Successful Transaction cancelled http://url Connecting..."
Do you have any idea?Code:void CHelloWorldBasicAppUi::ClientEvent( const TDesC& aEventDescription) { HBufC8* buf8 = HBufC8::NewLC(aEventDescription.Length()); buf8->Des().Copy(aEventDescription); logFile.Write(buf8->Des()); CleanupStack::PopAndDestroy(buf8); if ( aEventDescription.Compare (_L("Transaction Successful"))== 0) { iClient->CancelTransactionL (); TBuf<KPrefixedUriNameLength> uri; uri.Copy (_L("url")); TBuf8<KPrefixedUriNameLength> uri8; uri.LowerCase (); if ( uri.Find ( KHttpPrefix)== KErrNotFound && uri.Find ( KHttpsPrefix)== KErrNotFound) { uri8.Append ( KHttpPrefix8); uri8.Append ( uri); } else { uri8.Copy ( uri); } uri.Copy (uri8); logFile.Write(uri8); gettingVersion = false; iClient->IssueHTTPGetL ( uri8); } }
Thanks for your help.

Reply With Quote

