![]() |
|
#1
|
|||
|
|||
Use of HttpWebRequest objectI 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. |
|
#2
|
|||
|
|||
Re: Use of HttpWebRequest objectWhy is this so important for you to use the same instance of WebRequest?
|
Recent GIDBlog
More photos on Flickr by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing an object as argument to a function? | Ahas | C++ Forum | 2 | 25-Jul-2006 09:11 |
| overloading operators in a class. | fevershark | C++ Forum | 11 | 22-Feb-2006 19:34 |
| In which case static object - dynamic object can be used | Janakiraman | MS Visual C++ / MFC Forum | 8 | 17-Jan-2006 14:08 |
| Incorrect usage of free() | kobi_hikri | C Programming Language | 7 | 08-Dec-2005 23:27 |
| How do I access an object from inside another object? | JdS | MySQL / PHP Forum | 5 | 10-Jun-2003 08:51 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The