C# httpwebrequest and javascript

前端 未结 7 1955
北恋
北恋 2020-11-28 13:02

I am using C# HttpWebRequest to get some data of a webpage. The problem is that some of the data is updated using javascript/ajax after the page is loaded and I am not getti

7条回答
  •  天命终不由人
    2020-11-28 13:16

    When you open a web page in a web browser, it is the browser that executes the javascript and downloads additional resources used by the page (images, scripts, etc). HttpWebRequest by itself will not do any of this, it will only download the html for the page you requested. It will never execute any of the javascript/ajax code on it's own.

提交回复
热议问题