Proxy service urlencode needed?

0 votes
asked Apr 24, 2019 in Question / help by Gavin Adams

Hi,

In the details for the proxy service, there is this documentation:

"Note that the address of the remote document is specified as a parameter, so it is not necessary to URL encode the URL."

When trying to pass a GitHub raw URL, it works fine if there is no encoding, or it is fully encoded. However, partial encoding such as a space character doesn't work as the value for the src parameter. For instance:

No space, copy/paste URL from browser (works): https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/master/examples/HelloWorld.puml

Space, copy/paste URL from browser (does not work): https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/master/examples/Basic%20Usage.puml

Space, urlencode URL from browser (works): https%3A%2F%2Fraw.githubusercontent.com%2Fawslabs%2Faws-icons-for-plantuml%2Fmaster%2Fexamples%2FBasic%2520Usage.puml

Is there a way to pass the URL with just spaces encoded, or is it an "all or nothing" requirement? Either way is good, just want to ensure I'm following best practices.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...