471,605 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

.Net Web Browser

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.

Jan 4 '06 #1
3 3282
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?

<mw*****@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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.

Jan 4 '06 #2
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.

--
Colin Neller
http://www.colinneller.com/blog
<mw*****@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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.

Jan 4 '06 #3
Thanks Colin!

Jan 4 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Szar | last post: by
16 posts views Thread by Java script Dude | last post: by
2 posts views Thread by Craig G | last post: by
1 post views Thread by Dave Harrington | last post: by
4 posts views Thread by Peter Larsen | last post: by
15 posts views Thread by CMM | last post: by
5 posts views Thread by Mufasa | last post: by
1 post views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.