Thread: Question Reading From Web Page
View Single Post
  #4 (permalink)  
Old 12-02-2008, 6:39 PM
JohnH's Avatar
JohnH JohnH is online now
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,328
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

The WebBrowser control (as of .Net 2.0) is a managed wrapper for the old AxWebBrower + MSHTML COM libraries, does the same and have same basic capabilities only wrapped to the much nicer .Net librarys strong type code style, instead of the "everything is Object or an interface and nothing seems connected" COM style where you can't do much without reading lots of cryptic old reference material. Like Internet Explorer this control handles cookies automatically when browsing web pages.

For the WebRequest approach the CookieContainer is usually used for login pages, when you login the page app set some special value there that it uses later to see that the request was previously authenticated, plain user/pass should never be found in a cookie.
__________________
Reply With Quote