mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
invoke-webrequest: Add -UseBasicParsing parameter (#21313)
This commit is contained in:
committed by
GitHub
parent
b8c645d503
commit
ce4854b33a
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user