HttpWebRequest

N

nissim

i need to read about 100 diffrent html pages from my site,
every 1 hour,
i do it with HttpWebRequest and HttpWebResponse and wth
full success,
the problem is that every time i call HttpWebRequest.Create
() method it open a new session in my site (i can see it
in the statistic page), i want to do that with only one
session.
is it possible?
 
N

Nissim

Thanks
But i to do that, where i can find a code sample?
thanks again

-----Original Message-----
You need to use a CookieContainer instance shared by all the requests, I
guess.

Paolo Pialorsi [ DevLeap - Bridge The Gap! ]
Blog: http://blogs.devleap.com/paolo.blog

nissim said:
i need to read about 100 diffrent html pages from my site,
every 1 hour,
i do it with HttpWebRequest and HttpWebResponse and wth
full success,
the problem is that every time i call HttpWebRequest.Create
() method it open a new session in my site (i can see it
in the statistic page), i want to do that with only one
session.
is it possible?


.
 
P

Paolo Pialorsi [DevLeap]

http://msdn.microsoft.com/library/e...etHttpWebRequestClassCookieContainerTopic.asp

May be your problem is different. Try to send more details...

Paolo Pialorsi [ DevLeap - Bridge The Gap! ]
Blog: http://blogs.devleap.com/paolo.blog

Nissim said:
Thanks
But i to do that, where i can find a code sample?
thanks again

-----Original Message-----
You need to use a CookieContainer instance shared by all the requests, I
guess.

Paolo Pialorsi [ DevLeap - Bridge The Gap! ]
Blog: http://blogs.devleap.com/paolo.blog

nissim said:
i need to read about 100 diffrent html pages from my site,
every 1 hour,
i do it with HttpWebRequest and HttpWebResponse and wth
full success,
the problem is that every time i call HttpWebRequest.Create
() method it open a new session in my site (i can see it
in the statistic page), i want to do that with only one
session.
is it possible?


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top