File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11<# PSScriptInfo
22
3- .VERSION 0.0.1
3+ .VERSION 0.0.2
44
55.GUID a4af5e07-d626-4b97-b4d6-eef7265d1f7c
66
1414
1515.RELEASENOTES
1616[Version 0.0.1] - Initial Release.
17+ [Version 0.0.2] - Added UseBasicParsing parameter to Invoke-WebRequest commands to fix issue with certain systems.
1718
1819#>
1920
@@ -31,7 +32,7 @@ Designed to use with short URL to make it easy to remember.
3132. PARAMETER Help
3233 Displays the full help information for the script.
3334. NOTES
34- Version : 0.0.1
35+ Version : 0.0.2
3536 Created by : asheroto
3637. LINK
3738 Project Site: https://github.com/asheroto/speedtest
@@ -42,7 +43,7 @@ param (
4243)
4344
4445# Version
45- $CurrentVersion = ' 0.0.1 '
46+ $CurrentVersion = ' 0.0.2 '
4647$RepoOwner = ' asheroto'
4748$RepoName = ' speedtest'
4849$PowerShellGalleryName = ' speedtest'
@@ -76,7 +77,7 @@ if ($PSBoundParameters.ContainsKey('Verbose') -and $PSBoundParameters['Verbose']
7677# Scrape the webpage to get the download link
7778function Get-SpeedTestDownloadLink {
7879 $url = " https://www.speedtest.net/apps/cli"
79- $webContent = Invoke-WebRequest - Uri $url
80+ $webContent = Invoke-WebRequest - Uri $url - UseBasicParsing
8081 if ($webContent.Content -match ' href="(https://install\.speedtest\.net/app/cli/ookla-speedtest-[\d\.]+-win64\.zip)"' ) {
8182 return $matches [1 ]
8283 } else {
@@ -91,7 +92,7 @@ function Download-SpeedTestZip {
9192 [string ]$downloadLink ,
9293 [string ]$destination
9394 )
94- Invoke-WebRequest - Uri $downloadLink - OutFile $destination
95+ Invoke-WebRequest - Uri $downloadLink - OutFile $destination - UseBasicParsing
9596}
9697
9798# Extract the zip file
You can’t perform that action at this time.
0 commit comments