Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL encode request URIs by default #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jypma
Copy link

@jypma jypma commented Dec 13, 2018

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.

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.
@xqliu
Copy link

xqliu commented Sep 2, 2019

Dear,

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

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants