I am doing an application where I am sending data to the server till IssueHTTPPostL, my application is working properly but after that it is crashing on OverallDatasize function. Here is my code for IssueHTTPPostL & overalldatasize.
// Parse string to URI
// Copy data to be posted into member variable; iPostData is used later in
// methods inherited from MHTTPDataSupplier.
iPostData = aBody.AllocL();
//code checking for number of active connections.
TBool CheckactiveConn = EFalse;
CheckactiveConn = AnyActiveConnectionsL();
// Get request method string for HTTP POST
RStringF method = iSession.StringPool().StringF(HTTP::EPOST,
// Open transaction with previous method and parsed uri. This class will
// receive transaction events in MHFRunL and MHFRunError.
iTransaction = iSession.OpenTransactionL(uri, *this, method);
// content type.
RHTTPHeaders hdr = iTransaction.Request().GetHeaderCollection();
SetHeaderL(hdr, HTTP::EUserAgent, KUserAgent);
SetHeaderL(hdr, HTTP::EAccept, KAccept);
SetHeaderL(hdr, HTTP::EContentType, aContentType);
// Set this class as an data supplier. Inherited MHTTPDataSupplier methods
// are called when framework needs to send body data.
MHTTPDataSupplier* dataSupplier = this;
// Submit the transaction. After this the framework will give transaction
// events via MHFRunL and MHFRunError.
iRunning = ETrue;
I have used these two functions. If anybody knows why immediately after completion of IssueHTTPPostL control is coming to Overalldatasize.
return KErrNotFound ;
Thanks in advance.