ob-http icon indicating copy to clipboard operation
ob-http copied to clipboard

URL encode request URIs by default

Open jypma opened this issue 6 years ago • 1 comments

If there are any non-ASCII characters in the request URI, curl will send those through in raw UTF-8 form by default. That is almost never what you'd want, since all server frameworks will expect non-ASCII characters to be percent-encoded.

The built-in url-encode-url function does exactly that, so we pass our request URI through it.

Please let me know if this should be a switch instead; I couldn't think of a case where you wouldn't want this.

jypma avatar Dec 13 '18 09:12 jypma

Dear,

Is there any chance this PR been merged ? I think that's really very reasonable to send encode URL.

Thanks.

xqliu avatar Sep 02 '19 02:09 xqliu