.Net Web Browser

  • Thread starter Thread starter mwieder
  • Start date Start date
M

mwieder

Does anyone know of an implementation of a web browser that will allow
programmatic control? Specifically, I need access to read the cookies
collection (session cookies included) and control the browsing to
various pages. I'd prefer managed code, but I'd settle for unmanaged as
well. I've looked for an implementation that implements
httpwebrequest but can't find anything.
 
Do you mean *real* browser or a browser control (like Mozilla' ActiveX, IE
AxBrowser Control)?

1997 I controlled Netscape using it's DDE based API. Terrible.
But can't e.g. Mozilla's ActiveX control which has excatly same API as IE's
Browser control, control Mozilla itself?
 
You can either use the System.Windows.Forms.WebBrowser control in the 2.0
framework or import the COM WebBrowser out of ShDocVw.dll. Either way, you
can grab the cookies out of the document object when a page loads. Both of
these will allow you to programmatically control browsing also. For direct
access to cookies, you can PInvoke into wininet.dll to use InternetGetCookie
and InternetSetCookie.
 

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

Back
Top