cURL import issue

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:

  1. 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/):

https://gist.github.com/ExiaHan/f1277443584f2a159dc933f485f821c0

  1. 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:

https://developer.android.com/_d/search/suggestions?r=%255B%2522wake_lock%2522%252Cnull%252Cnull%252Cnull%252Cnull%252C1%252C1%252C1%252C1%255D

Please authenticate to join the conversation.

Upvoters
Status

Released

Board

Feedback

Tags

Bug

Date

4 months ago

Author

Exia Han

Subscribe to post

Get notified by email when there are changes.