I am using VC++ .Net (2003). In my application i create a HttpWebRequest object, add the method and header to the request. An now try to get the response. I get the response. to get the response i create the HttpWebResponse object using for the HttpWebRequest. i collect the data by creating the StreamReader Object.
The above case works very fine.
Now what i have to do is using the same HttpWebRequest object, i have to change the method and headers and make request. To do this i add the method and headers to the same HttpWebRequest object and as above i try to get the response, i am not getting the response.
I i create the again the new HttpWebRequest object for the 2nd case and try to get the response, i get the response successfully.
what should i do to get the response on the same HttpWebRequest object.
The above case works very fine.
Now what i have to do is using the same HttpWebRequest object, i have to change the method and headers and make request. To do this i add the method and headers to the same HttpWebRequest object and as above i try to get the response, i am not getting the response.
I i create the again the new HttpWebRequest object for the 2nd case and try to get the response, i get the response successfully.
what should i do to get the response on the same HttpWebRequest object.