HttpWebRequest with session cookies

G

Guest

I'm trying to programatically mine newsgroups like yahoo (among others), but
need to be able to sign into the site first. my assumption is that when i
sign in, a session cookie is created and is used to verify my identity for
each http request after that.

Does anyone have an example of using the HttpWebRequest with a URL that
requires a logon web page first, before accessing the content pages?

Thanks
 
S

Scott Allen

Does anyone have an example of using the HttpWebRequest with a URL that
requires a logon web page first, before accessing the content pages?

You'll need a CookieContainer object around, and attach the
CookieContainer object to your HttpWebRequest objects to send and save
cookies.

This might help, too:
http://odetocode.com/Articles/162.aspx
 

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

Top