-
I'm posting a URL with a space in the query: How can I persuade YOURLS to retain the space in coffee cup. Works fine with the Admin Interface but not with the API. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Managed to fix it by changing %20 to \%20. |
Beta Was this translation helpful? Give feedback.
-
That should be a double backslash. |
Beta Was this translation helpful? Give feedback.
-
As stated in the readme: URL encode your requests. http://yourls.org/#API;apiusage |
Beta Was this translation helpful? Give feedback.
-
Tnanks. In Python 3 I'm using:
url = urllib.parse.quote_plus(sys.argv[1]) where sys.argv[1]="coffee
cup" but it doesn't work - the youurl has 'coffeecup' and not 'coffee
cup'.
Is there another command I should be using?
Michael
On 2021-05-15 18:37, ྅༻ Ǭɀħ ༄༆ཉ wrote:
As stated in the readme: URL encode your requests.
http://yourls.org/#API;apiusage
--
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
|
Beta Was this translation helpful? Give feedback.
As stated in the readme: URL encode your requests. http://yourls.org/#API;apiusage