Power Shell invoke-webrequest : Unable to connect to the remote server #195

Closed
opened 2026-01-19 18:29:22 +00:00 by michael · 1 comment
Owner

Originally created by @Siyu256 on GitHub.

When I try to run file from powershell, I get the error of unable to connect to the remote server. Can anyone suggest? Thank you!

invoke-webrequest -method put -infile ./hello.txt https://transfer.sh/hello.txt
invoke-webrequest : Unable to connect to the remote server
At line:1 char:1

  • invoke-webrequest -method put -infile ./hello.txt https://transfer.sh ...
  •   + CategoryInfo          : NotSpecified: (:) [Invoke-WebRequest], WebException
      + FullyQualifiedErrorId : System.Net.WebException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
    
Originally created by @Siyu256 on GitHub. When I try to run file from powershell, I get the error of unable to connect to the remote server. Can anyone suggest? Thank you! invoke-webrequest -method put -infile ./hello.txt https://transfer.sh/hello.txt invoke-webrequest : Unable to connect to the remote server At line:1 char:1 + invoke-webrequest -method put -infile ./hello.txt https://transfer.sh ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], WebException + FullyQualifiedErrorId : System.Net.WebException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Author
Owner
@paolafrancesca commented on GitHub: https://github.com/dutchcoders/transfer.sh#disclaimer https://github.com/dutchcoders/transfer.sh/issues/326#issue-694925702
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#195