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

Escape parameters when using x-www-form-urlencoded #45

Closed
3lvis opened this issue Dec 23, 2015 · 4 comments
Closed

Escape parameters when using x-www-form-urlencoded #45

3lvis opened this issue Dec 23, 2015 · 4 comments

Comments

@3lvis
Copy link
Owner

3lvis commented Dec 23, 2015

This is the recommended way of formatting the parameters when using x-www-form-urlencoded.

This is the default content type. Forms submitted with this content type must be encoded as follows:

1.- Control names and values are escaped. Space characters are replaced by +, and then reserved characters are escaped as described in [RFC1738], section 2.2: Non-alphanumeric characters are replaced by %HH, a percent sign and two hexadecimal digits representing the ASCII code of the character. Line breaks are represented as "CR LF" pairs (i.e., %0D%0A).

2.-The control names/values are listed in the order they appear in the document. The name is separated from the value by = and name/value pairs are separated from each other by &.

Link

More info: http://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data

@3lvis
Copy link
Owner Author

3lvis commented Jan 15, 2016

Escape & parameters

@3lvis
Copy link
Owner Author

3lvis commented Jan 15, 2016

Spaces work well

@3lvis
Copy link
Owner Author

3lvis commented Jan 16, 2016

Still not sure if this is my fault. Looks like there are a few reserved words.

@3lvis
Copy link
Owner Author

3lvis commented Jan 16, 2016

Closing for now.

@3lvis 3lvis closed this as completed Jan 16, 2016
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

No branches or pull requests

1 participant