Use IHTMLDocument2 to resolve pop-up "Do you allow cookies to be placed on your computer in order for the website to provide you with personalized information?"

Source: Internet
Author: User

Mshtml can be said to be a good parsing HTML tool, for like me has been without WebBrowser, directly with the socket or WebRequest HTTP communication

It is then parsed using Ihtmldocument2.write (HTML) to load the resulting HTML source.

But today we have a problem, that is, after loading the HTML into IHTMLDocument2, the following box pops up.

Search, seemingly only see people ask, did not see the solution, in fact, is a very simple thing, only need to load before using the following sentence code:

html = HTML. Replace ("sCript", "soript");

don't ask me what soript is, don't ask me what soript is, don't ask me what soript is, don't ask me what soript is, don't ask me what Soript is ...

This time also understand that the original IHTMLDocument2 is loaded into the HTML source after the script will be executed ... Will execute the script ... Will execute the script ... Will execute the script ...

Use IHTMLDocument2 to resolve pop-up "Do you allow cookies to be placed on your computer in order for the website to provide you with personalized information?"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.