我希望用powershell向网页发出http请求,这可能吗?如果可能,我如何实现这一点?
我可以向https页面发出请求吗?我可以用bat文件做http请求,但不能用https,我希望我能用powershell做https页面请求。
发布于 2014-01-06 09:29:10
试试这个:
(New-Object System.Net.WebClient).DownloadString("http://stackoverflow.com")WebClient.DownloadString Method (String)
或者在PowerShell 3.0中,
(Invoke-WebRequest http://stackoverflow.com).contenthttps://stackoverflow.com/questions/7715695
复制相似问题