Reading a remote server's POST response to my server's POST and GET commands
I'm new to C#. I have some questions about POST and GET communication between two servers:
1. I put together a WebRequest to Http POST to a remote server. I want to read the response from the remote server, which will be a POST to my server.
Will a HTTP WebResponse using a StreamReader be sufficient to read the remoter server's POST response? If not, do I need to use the HttpListener to receive that POST?
2. This question is similar to the previous. I need to implement a Http GET command to retrieve data from the remote server's .shtml page.
I used a WebRequest with the GET cmd. Next, I used a StreamReader to get the page. I then used the WebResponse with a StreamReader
to read the other server's POST response. Is this the appropriate approach to GET data from the .shtml page and read the remote server's POST response?
If not, do I need to use the HttpListener to receive that POST? The attached code is what I've done.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.