1

I am trying to download a page using wget (alias for Invoke-WebRequest) in powershell. The page in question is www.privatahyresvärdar.nu.

When using Internet Explorer I can navigate to www.privatahyresvärdar.nu but I cannot run wget from powershell nor can i ping the site. Neither command can resolve the hostname.

I have followed several advice on SO and other sites commenting on using Proxies as an error source for wget failing, but i am not using any Proxy.

Please help me identify the error source!

1 Answer 1

5

After a moment of clarity it struck me that it might be an encoding error! After replacing the hostname with punycode with an online punycode encoder (first hit on google) it worked like a charm!

enter image description here

Sign up to request clarification or add additional context in comments.

2 Comments

I get this error whenever I have my azure vpn connected.
That sounds more like a proxy problem to me. Check out those quations and answers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.