mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 14:18:38 +01:00
Fix list-exchange-rates.ps1
This commit is contained in:
parent
6c8cbf3c27
commit
53bd5ec1cc
@ -46,7 +46,7 @@ try {
|
||||
" Source: http://www.floatrates.com"
|
||||
""
|
||||
|
||||
[xml]$ExchangeRates = (invoke-webRequest -uri "http://www.floatrates.com/daily/$($currency).xml").Content
|
||||
[xml]$ExchangeRates = (invoke-webRequest -uri "http://www.floatrates.com/daily/$($currency).xml" -userAgent "curl" -useBasicParsing).Content
|
||||
foreach($Row in $ExchangeRates.channel.item) {
|
||||
[string]$Name = $Row.targetName
|
||||
[float]$Value = $Row.exchangeRate
|
||||
|
Loading…
Reference in New Issue
Block a user