Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 716593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:19:01+00:00 2026-05-14T05:19:01+00:00

I am trying to emulate a web browser in order to execute JavaScript code

  • 0

I am trying to emulate a web browser in order to execute JavaScript code and then parse the DOM. The System.Windows.Forms.WebBrowser object does not give me the functionality I need. It let’s me set the headers, but you cannot set the proxy or clear cookies. Well you can, but it is not ideal and messes with IE’s settings.

I’ve been extending the WebBrowser control pinvoking native windows functions so far, but it is really one hack on top of another. I can mess with the proxy and also clear cookies and such, but this control has its issues as I mentioned.

I found something called WebKit .NET (http://webkitdotnet.sourceforge.net/), but I don’t see support for setting proxies or cookie manipulation.

Can someone recommend a c++/.NET/whatever library to do this:

Basically tell me what I need to do to get an interface to similar this in .NET:

// this should probably pause the current thread for the max timeout, 
// throw an exception on failure or return null w/e, VAGUELY similar to this
string WebBrowserEmu::FetchBrowserParsedHtml(Uri url,
                                             WebProxy p, 
                                             int timeoutSeconds, 
                                             byte[] headers,
                                             byte[] postdata);
void WebBrowserEmu::ClearCookies();

I am not responsible for my actions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:19:01+00:00Added an answer on May 14, 2026 at 5:19 am

    Have you seen Watin?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to emulate a system of type classes in F#; I would
I've added a paragraph system component in my template, trying to emulate the Geometrixx's
We are trying to emulate a POS keyboard in order to integrate an application
Hi i was trying to emulate a post created from javascript in a site
I'm trying to emulate the LIKE operator in LINQ to Objects. Here my code:
I am trying to emulate a POS printer with System.Drawing and one of the
I am trying to emulate a sort of pop-up help dialog for my web
I'm trying to emulate code.InteractiveInterpreter from the embedded Python C API. I'm using PyEval_Evalcode
So I'm trying to emulate the way in which the standard Apple code works
I have a list view on a page and am trying emulate the toggling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.