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

curl POST-ing to gateway strips new lines. #786

Closed
compleatang opened this issue Feb 17, 2015 · 1 comment
Closed

curl POST-ing to gateway strips new lines. #786

compleatang opened this issue Feb 17, 2015 · 1 comment

Comments

@compleatang
Copy link

File I'm trying to POST: https://gist.github.com/compleatang/87603d14f00b2f35c8b8

Command I'm using to POST: curl --ssl-reqd -ksiX POST -d @ipfs.plugin.zsh https://ipfs.erisbootstrap.sexy/ipfs/

^ url resolves to the gateway port not the api port.

Result of POST: https://ipfs.erisbootstrap.sexy/ipfs/QmdWxginZJ31kZ1aQUamtKymEkhuikpxbpoLpcTMb6Yp1F

As you can see the new lines have been stripped. It must be something about how the gateway is reading from vanilla curl command.

@whyrusleeping
Copy link
Member

Instead of -d you should use --data-binary This is a curl issue.

If this doesnt work out, please reopen the issue.

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