mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Add '-useBasicParsing'
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
(Invoke-WebRequest http://wttr.in/Moon -UserAgent "curl" ).Content
|
||||
(Invoke-WebRequest http://wttr.in/Moon -userAgent "curl" -useBasicParsing).Content
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
Reference in New Issue
Block a user