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

[Bug] Curls with request body don't work in postman #242

Open
PM74367 opened this issue Sep 10, 2022 · 2 comments
Open

[Bug] Curls with request body don't work in postman #242

PM74367 opened this issue Sep 10, 2022 · 2 comments
Labels

Comments

@PM74367
Copy link

PM74367 commented Sep 10, 2022

Describe the bug
Imported curls don't work in postman when request body is present

To Reproduce
Import curl for request which contains some body
Sample curl:
curl "https://collector.github.com/github/collect" -X POST -H "Cache-Control: max-age=0" -H "Accept: /" -H "Origin: https://github.com" -H "Referer: https://github.com/kasketis/netfox" -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" -H "Content-Type: application/json" -d "{"body":"abc"}"
Import curl in postman and try to hit, it don't work, if you go to body section of request, it shows invalid body(attached ss of body)
If we change double quote in curl in data to single quote, it works fine

Expected behavior
Imported curl should work properly without any modification

Screenshots/Video
Screenshot 2022-09-10 at 12 15 13

Enviroment:
Reproducable on every environment
I tried on
Netfox version 1.21.0
Postman version 9.13.0

@PM74367 PM74367 added the bug label Sep 10, 2022
@renanvs
Copy link

renanvs commented Mar 9, 2023

I have the same problem. I need to remove the body to import to the Postman, and after that copy the body in Simple log to pthe Postman body textfield

rubensmachion added a commit to rubensmachion/netfox that referenced this issue Aug 29, 2024
@rubensmachion
Copy link

Hello @renanvs and @PM74367. I just opened this PR to fix this problem.

#270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants