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

Backslashes are removed from POST data #5

Open
nealmcb opened this issue Mar 24, 2017 · 2 comments
Open

Backslashes are removed from POST data #5

nealmcb opened this issue Mar 24, 2017 · 2 comments

Comments

@nealmcb
Copy link

nealmcb commented Mar 24, 2017

POST data is included in the curl commands, but it seems that backslashes are removed along the way. So what should be posted as

curl -d "{\"id\":1002,\"shares\":[{\"id\":2,\"share\":0.9},{\"id\":3,\"share\":0.1}]}" ....

comes out as

curl -d "{"id":1002,"shares":[{"id":2,"share":0.9},{"id":3,"share":0.1}]}"
@nealmcb
Copy link
Author

nealmcb commented Mar 24, 2017

Here is a test case:
har-to-curl-test.har.txt

@doivosevic
Copy link

Same problem. Also, newlines dont come escaped so the resulting data can span across multiple lines

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

No branches or pull requests

2 participants