I use http to download xml data,but repeat to start the program serveral times,download speed obviously become slow.Everytime I download the same xml data.What problem it is possible be?
void CClientEngine::MHFRunL(RHTTPTransaction aTransaction,
const THTTPEvent& aEvent)
// Indicates that transaction succeeded.
_LIT(KTransactionSuccessful, "Transaction Successful");
// Transaction can be closed now. It's not needed anymore.
iRunning = EFalse;
if(iResponseBuffer != NULL)
iResponseBuffer = NULL;
Cancel(); // Cancel any request, just to be sure
iState = EUninitialized;
iTimer.After(iStatus, 10000000); // Set for later
SetActive(); // Tell scheduler a request is active
if (iState == EUninitialized)
// Do something the first time RunL() is called
iState = EInitialized;
if (iState != EError)
// Do something