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

Could not properly import curl with "X-XSRF-TOKEN" #7806

Closed
vanthuanqs opened this issue Dec 16, 2019 · 6 comments · Fixed by postmanlabs/curl-to-postman#26 or #8296
Closed

Could not properly import curl with "X-XSRF-TOKEN" #7806

vanthuanqs opened this issue Dec 16, 2019 · 6 comments · Fixed by postmanlabs/curl-to-postman#26 or #8296

Comments

@vanthuanqs
Copy link

Describe the bug
I am facing with error Could not get any response after import curl

To Reproduce
Steps to reproduce the behavior:

  1. Click on button Import, choose Paste Raw Text and submit
    image

  2. Click on Send button to send the request

  3. See error (of couse I turned off SSL certificate validation):
    image

Expected behavior
Should receive response

Screenshots
image
image

App information (please complete the following information):

  • App Type [Native App]
  • Postman Version [7.13.0]
  • OS: [Ubuntu 19.04]

Additional context
After debug, I found the reason is Postman does not import curl properly
There is header X-XSRF-TOKEN in curl but in Postman it's X-X SRF-TOKEN
image

@abhijitkane
Copy link
Member

Able to reproduce with curl -H 'X-XSRF-Token: Hello' http://domain.com

@abhijitkane
Copy link
Member

Thanks for reporting this @vanthuanqs. We'll take this up soon.

@vanthuanqs
Copy link
Author

@abhijitkane Thank you!

@vanthuanqs
Copy link
Author

@abhijitkane This problem is also happened on Mac OS
Postman for Mac
Version 7.13.0
OS X 19.2.0 / x64

@shreys7
Copy link
Member

shreys7 commented Apr 1, 2020

Hey @vanthuanqs , we have added the fix for this issue and it will be released with the next Postman App version - 7.22, planned on 8th April.

@vanthuanqs
Copy link
Author

Awesome work, thank you!

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