GIDForums  

Go Back   GIDForums > Computer Programming Forums > .NET Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Oct-2006, 02:47
dattaforit dattaforit is offline
New Member
 
Join Date: Sep 2006
Posts: 11
dattaforit is on a distinguished road

Use of HttpWebRequest object


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.
  #2  
Old 08-Oct-2006, 05:29
aie0 aie0 is offline
Member
 
Join Date: Dec 2004
Posts: 246
aie0 is a jewel in the roughaie0 is a jewel in the rough

Re: Use of HttpWebRequest object


Why is this so important for you to use the same instance of WebRequest?
 
 

Recent GIDBlogMore photos on Flickr by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 20:53.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.