Hi @ all,
I have implemented a http post request with MHTTPDataSupplier. I have set up the uri and method sucessfully, but I have a problem with the content. Not with sending it, but with customize it, though.
Since I'm using MHTTPDataSupplier, I have a HBufC8 class attribut, which contains the content of the http post. but here is my problem, I don't want to specify the "String" of the content, but all the single bytes.
I managed to specifiy some bytes, which will never change, with
--> Result: The byte is 0.Code:TChar c0 = 0x0; TBuf8<170> t; t.AppendFormat(_L8("%c"),c0); // ...
But my actuall problem is when I want to write the Hex values of an integer. If I use
it appends the 15 to the "string", but in the byte stream should now stand "00 00 00 0F". But it doesn't.Code:t.AppendFormat(_L8("%d"), 15);
If I use
it writes the hex value to the string, not to the bytes...Code:t.AppendNum(aInt, EHex);
I have searched but haven't found a answer to that. Anyone has a Idea how to write that raw data?