PDA

View Full Version : Connect and save HTML to a file?


z94joma
03-05-04, 04:24 PM
Hi!

I just started learning VB.NET and I bought a book and done small applications. Unfortunately it doesn't cover what I want to do now. As you can see in my title I want to do the following:

1. Login to a site via my VB application
2. Store the cookie (or session??)
3. Load a webpage and store the result in a texfile or in a Stream.

I know how to login to the site, but I don't know how to keep the session or store the cookie to load a webpage that you need to be logged in when accessing it. Then I want to store the HTML page in a Stream or File (almost the same anyway). Then I will parse this page and do some other stuff with it.

Can anyone please come up with a code snippet that does this?

Thank you for your time,

Regards
Magnus