I am sending HTTP request. I need to save the HTTP response to that request.
This is the request URL : http://notify.test.com/gateway.do?service=notify_verify&partner=2088¬ify_id=abcdefghijklmnopqrst
Code I tried is below:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://notify.test.com/gateway.do?service=notify_verify&partner=2088¬ify_id=abcdefghijklmnopqrst");
request.Proxy = WebProxy.GetDefaultProxy();
request.Proxy.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream resStream = response.GetResponseStream();
The response will be True or False. how can I save that?