@@ -1129,7 +1129,7 @@ function global:Connect-SgwServer {
11291129 [System.Net.ServicePointManager ]::CertificatePolicy = New-Object TrustAllCertsPolicy
11301130 try
11311131 {
1132- $Response = Invoke-WebRequest - Method Options - Uri $EndpointDomainName
1132+ $Response = Invoke-WebRequest - Method Options - Uri $EndpointDomainName - UseBasicParsing
11331133 if ($Response.Headers [" x-amz-request-id" ])
11341134 {
11351135 $Server.S3EndpointUrl = $EndpointDomainName
@@ -1142,7 +1142,7 @@ function global:Connect-SgwServer {
11421142 }
11431143 try
11441144 {
1145- $Response = Invoke-WebRequest - Method Options - Uri " $EndpointDomainName /info"
1145+ $Response = Invoke-WebRequest - Method Options - Uri " $EndpointDomainName /info" - UseBasicParsing
11461146 if ($Response.Headers [" X-Trans-Id" ])
11471147 {
11481148 $Server.SwiftEndpointUrl = $EndpointDomainName
@@ -1159,7 +1159,7 @@ function global:Connect-SgwServer {
11591159 {
11601160 try
11611161 {
1162- $Response = Invoke-WebRequest - Method Options - Uri " $EndpointDomainName " - SkipCertificateCheck
1162+ $Response = Invoke-WebRequest - Method Options - Uri " $EndpointDomainName " - SkipCertificateCheck - UseBasicParsing
11631163 if ($Response.Headers [" x-amz-request-id" ])
11641164 {
11651165 Write-Verbose " Test"
@@ -1172,7 +1172,7 @@ function global:Connect-SgwServer {
11721172 }
11731173 try
11741174 {
1175- $Response = Invoke-WebRequest - Method Options - Uri " $EndpointDomainName /info" - SkipCertificateCheck
1175+ $Response = Invoke-WebRequest - Method Options - Uri " $EndpointDomainName /info" - SkipCertificateCheck - UseBasicParsing
11761176 if ($Response.Headers [" X-Trans-Id" ])
11771177 {
11781178 $Server.SwiftEndpointUrl = $EndpointDomainName
0 commit comments