I want to access the body of a request message, i.e when u r trying to upload say a jpg file want to get the information of the data being posted.
I am trying to do this in a HTTP filter.
I am trying to achieve this in the following manner:
Where Chtppfill is derived from CECOMFilter, MHTTPFilter and MHTTPDataSupplier
void Chttpfill::MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent)
TBool HasBody = aTransaction.Request().HasBody();
//iDataSupplier = aTransaction.Request().Body();
//TBool isLast = iDataSupplier->GetNextDataPart(ptr);
MHTTPDataSupplier* DataSupplier = this;
DataSupplier = aTransaction.Request().Body();
TBool Last = DataSupplier->GetNextDataPart(ptr);
// Create the server, if one with this name does not already exist.
// Create the thread for the server.
res=aProcess.Create(KExeName, KNULL, EOwnerProcess);
// The thread has been created OK so get it started - however
// we need to make sure that it has started before we continue.
// The thread has not been created - clearly there's been a problem.
/* RFs fs;
User::InfoPrint(_L(" No Body"));
When I am trying to access the body of the request message using TBool Last = DataSupplier->GetNextDataPart(ptr);
The whole uploading event getting blocked and will not be able to upload the data, it raises a panic unable to perform operation -20000!
Can anyone please help me in this regard.