What is the best way to send HTTP requests from Windows Powershell?

前端 未结 3 736
旧时难觅i
旧时难觅i 2020-12-14 07:29

What is the best way to send HTTP requests from Windows Powershell?

3条回答
  •  庸人自扰
    2020-12-14 08:01

    System.Net.WebClient is the easiest way to do it for simple GET request. However if you need to do a POST request for a form then you will need to use System.Net.HttpWebRequest.

提交回复
热议问题