F
faustino Dina
Hi,
I'm trying to send a POST request by using HttpWebRequest. To send the data
I should get a Stream:
HttpWebRequest wReq = (HttpWebRequest)WebRequest.Create(aUrl);
Stream reqData = wReq.GetRequestStream();
but for writing into the Stream
reqData.Write(?)
the Stream expects a byte[] but my data is in a String field. How to convert
my String into byte[]?
Thanks in advance
I'm trying to send a POST request by using HttpWebRequest. To send the data
I should get a Stream:
HttpWebRequest wReq = (HttpWebRequest)WebRequest.Create(aUrl);
Stream reqData = wReq.GetRequestStream();
but for writing into the Stream
reqData.Write(?)
the Stream expects a byte[] but my data is in a String field. How to convert
my String into byte[]?
Thanks in advance