cURL import issue
complete
Exia Han
OS: macOS 14.5 (M1 Max)
Yaak Version: 2024.6.6
In some situation importing from cURL may not work as expected if import a post req and contains encoded parameters.
Reproduce Steps:
- import below cURL request (it's copied from chrome devtools, by typing any word in the searching box at this page - https://developer.android.com/):
- send this import post req via Yaak, then the response will be "http 400, bad suggestion request".
Conclusion:
After investigation this imported request in Yaak, the parameter:
'r=%5B%22wake_lock%22%2Cnull%2Cnull%2Cnull%2Cnull%2C1%2C1%2C1%2C1%5D' is imported without url-decoded, and then it is url-encoded again via Yaak during resending. Which cause the actual sent request url turn into:
Gregory Schier
complete
https://yaak.app/blog/2024.8.0
Gregory Schier
in progress
Just fixed this in my local branch. Thanks for the report! 🙏�