Hi,
I am working on a 3'rd edition application which talks to a server through xml and get the response in xml data. Following pease of code from http engine example will give the idea. The problem i am facing now is in the usage of xml data. I am getting "Header recieved: Status 400 Bad Request".

TBuf<10000> postData;
TBuf<KDefaultBufferSize> uri = _L("http://test....com/");
ParseXml();
postData.Copy(buf2);
TInt len;
len = postData.Length();

// Issue HTTP post to engine
iClient->CancelTransaction();

iAppView->ResetL();

// Insert prefix to uri (it must begin with "http://" or "https://")
TBuf8<KDefaultBufferSize> uri8;
uri.LowerCase();
if(uri.Find(KHttpPrefix) == KErrNotFound
&& uri.Find(KHttpsPrefix) == KErrNotFound)
{
// If uri does not contain http or https,
// use the default, "http://"
uri8.Append(KHttpPrefix8);
uri8.Append(uri);
}
else
{
uri8.Copy(uri);
}

TBuf8<10000> postData8;
postData8.Copy(postData);

// Start transaction
iClient->IssueHTTPPostL(uri8, KMimeType, postData8);


ParseXml() parses an xml file an stores the data in postData , which is send as one of the parameters.

If some one worked on xml data in http request please guide me..

Anoop