Introduction of C # HttpWebRequest network request -------.NET makes a simple crawler

Insert picture description here

  • KeepAlive [persistent connection]
  • Timeout [Timeout value]
  • Method [Requested method]
  • Accept [value of Accept]
  • Host / Referer
  • UserAgent [User-agent 值]
  • StatusCode [status code]
  • GetResponseStream () [Get Return Stream]
    Insert picture description here
    Click F12 on the webpage, click network, and then copy the relevant information of the webpage into the code, create a new console program in VS
    Insert picture description here
    html>

Guess you like

Origin blog.csdn.net/qq_39217004/article/details/105565138