invoke-webrequest: Add -UseBasicParsing parameter (#21313)

This commit is contained in:
Reinhart Previano Koentjoro
2026-03-02 13:44:19 +11:00
committed by GitHub
parent b8c645d503
commit ce4854b33a
+4
View File
@@ -8,6 +8,10 @@
`Invoke-WebRequest {{http://example.com}} -OutFile {{path\to\file}}`
- Only return raw HTML data instead of parsing it under Internet Explorer (PowerShell 3.0-5.1 only):
`Invoke-WebRequest {{http://example.com}} -UseBasicParsing`
- Send form-encoded data (POST request of type `application/x-www-form-urlencoded`):
`Invoke-WebRequest -Method Post -Body @{ name='bob' } {{http://example.com/form}}`