First '%' in POST data isn't urlencoded, if post data has '%' multiple.
See original GitHub issue- Insomnia Version: Version 6.2.3 (6.2.3.2532)
- Operating System: MacOS Mojave
Details
First ‘%’ in POST data isn’t urlencoded, if post data has ‘%’ multiple. I tried bellow.
POST http://www.example.com/api Structured: Form URL Encoded request data : arg=abc%def%ghi%jkl
Then I checked Timeline, POST data is bellow,
> POST /api HTTP/1.1
> Host: www.example.com
> User-Agent: insomnia/6.2.3
> Content-Type: application/x-www-form-urlencoded
> Accept: */*
> Content-Length: 23
| arg=abc%def%25ghi%25jkl
Post data became ‘arg=abc%def%25ghi%25jkl’. I think ‘arg=abc%25def%25ghi%25jkl’ is collect. Although “Generate Code” is OK.
curl --request POST \
--url http://www.example.com/api \
--header 'content-type: application/x-www-form-urlencoded' \
--cookie PHPSESSID=session_id \
--data arg=abc%25def%25ghi%25jkl
Thank you.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:15 (2 by maintainers)
Top Results From Across the Web
jquery - $.post() doesn't send data as json but as x-www-form ...
I have multiple $.post() in the code, but there is one don't know why sends the json parameters as x-www-form-urlencoded ...
Read more >POST - HTTP - MDN Web Docs
The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header....
Read more >Pardot Form Handlers Troubleshooting - Salesforce Help
Form handlers allow you to manage forms yourself and post the data to Pardot. ... Pardot does not retain logs of failed form...
Read more >curl.1 the man page
If not told otherwise, curl writes the received data to stdout. ... (HTTP) This posts data, similar to the other -d, --data options...
Read more >Encoding data for POST requests - JakeArchibald.com
The application/x-www-form-urlencoded format is in many ways an aberrant monstrosity, the result of many years of implementation accidents and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Sorry folks! This was incorrectly tagged as a feature request along with other bugs. I’m going back through and cleaning up, sorry for the inconvenience.
Sorry about that. Won’t be marked stale now.