I tried to create a http connection with a servlet and send some data to the servlet. - Using post method as follows.
Here I use Symbian 7.0s SDK and series 60 2.0 version.

void CHTTPEngine::PostRequestL(const TDes8& eMaillAddr)
_LIT8(KParamNameTo, "to"); // Parameater name

// Build form encoder
// Start by removing any previous content
delete iFormEncoder;
iFormEncoder = NULL;
iFormEncoder = CHTTPFormEncoder::NewL();

iFormEncoder->AddFieldL(KParamNameTo, eMaillAddr);

// Create transaction
iTransaction = iSession.OpenTransactionL(iUriParser, *this,
iSession.StringPool().StringF(HTTP::EPOST, RHTTPSession::GetTable()));

// Set transaction headers
RHTTPHeaders headers = iTransaction.Request().GetHeaderCollection();
AddHeaderL(headers, HTTP::EUserAgent, KUserAgent);
AddHeaderL(headers, HTTP::EAccept, KAccept);
AddHeaderL(headers, HTTP::EContentType, KContentType);

// Set the form encoder as the data supplier

// Submit the request

Here I was succesfull. But then I want to send data as a stream. Without set to the parameater. So if you guys have done like that or you know the way plaes tell me the way of doing it.