Msxml2.xmlhttp msxml2.serverxmlhttp and Cache _vbs

Source: Internet
Author: User
In most cases, msxml2.xmlhttp can do a good job, because it is cached. For example, we use Msxml2.xmlhttp to send HTTP POST request simulation login to a Web site, it will log the cookies and session cache down, when we want to get the data of the site directly HTTP got on the line, do not need to manually send cookies and Session.

But, in some cases, caching can cause problems for us. For example, we want to write a VBS script brute force to crack a website's account, assuming we have cracked an account, continue to crack, due to the relationship between the cache, the site will think we have landed, which will interfere with our decision to determine whether the account is successfully cracked. In other words, when you successfully crack an account, you need to add a few lines of code to log out of this account. In this case, you should use a msxml2.serverxmlhttp without caching.

To summarize, if you need to cache, use msxml2.xmlhttp; otherwise you should use Msxml2.serverxmlhttp.

Original: http://demon.tw/programming/msxml2-xmlhttp-msxml2-serverxmlhttp-cache.html

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.