question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 5 years ago
  • Reactions:2
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wdawsoncommented, Jul 2, 2021

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.

1reaction
gschiercommented, Dec 14, 2019

Sorry about that. Won’t be marked stale now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found