I am trying to do some HTTP via the raw modem communication, which does not support adding headers and stuff. Planning to use .NET Webrequest to generate the complete string of headers and content.
BUT cannot find the method from HttpWebRequest that returns the content string itself - ie. the bytes that is transferred over the socket.
You have a raw socket and you want to send an HTTP request over it as string that you need to generate yourself because HttpWebRequest can help you to build but doesn’t return the generated string.
The only answer is that you need to build the string yourself of course, using basic string type or StringBuilder class.
In the past I implemented an HttpClient class in my uPLibrary (http://uplibrary.codeplex.com/). It doesn’t use HttpWebRequest and manage raw string to generate the HTTP request and read related response.
Is it what you are searching for ?
Am I near to solve your problem ?