Hi,

I am trying to retreive the body of the http request message, based on the content of the post data, an exe is started.Below is code for d same but when trying on device there is a failure of the submit event, i.e i ma not able to upload the content but the exe is started.

RHTTPRequest aRequest;
MHTTPDataSupplier* iDataSupplier;

iHttpEngine = CHTTPEngine::NewL();
//iHttpEngine = iDataSupplier;
iDataSupplier = iHttpEngine;
TBool HasBody = aTransaction.Request().HasBody();
if(HasBody==1)
{

iDataSupplier = aTransaction.Request().Body();
TPtrC8 ptr;
TBool isLast = iDataSupplier->GetNextDataPart(ptr);
TBool iFound = FindContent(ptr);
TBuf<1024> aRefererBuf(_L("NO Referer"));

//const TUriC8& aUri = aRequest.URI();
//TBuf8<1024> aUriName;
aRequest = aTransaction.Request();
/*aUriName.Copy(aRequest.URI().Extract(EUriHost));
RFs aFs;
RFile aFile;
aFs.Connect();
if(aFile.Open(aFs,KPath, EFileWrite)!=KErrNone)
{
TInt aErr = aFile.Create(aFs,KPath,EFileWrite);
}
aFile.Write(aUriName);
aFile.Close();
aFs.Close();*/
iDataSupplier->ReleaseData();

CHttpEngine is derivative class of MHttpDataSupplier;

Please let me know if the logic is right and y it is blocking the subit event , I am using this code for Http filter plugin.

Regards.