Quantcast
Channel: How can I unescape a url's host? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How can I unescape a url's host?

$
0
0

I have the following URL I'm trying to process:

http://shitenonions%2elibsyn%2ecom/rss

When I try to create a url out of it in Go, I get the following error:

panic: parse http://shitenonions%2elibsyn%2ecom/rss: hexadecimal escape in host

How can I fix this URL so it can be parsed correctly? I have a large set of URLs and several of them have this problem.

I thought about URL decoding it, but I'm worried that if I do that, it might be incorrect to url decode items besides the host name.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images