You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
I had to use --data-binary instead of -d on the command line to attach the gzipped file. It looks like restclient.el always emits -d when extracting the request as a curl command. I'm guessing that the code doesn't necessarily use curl internally and will need to be fixed in multiple places.
Perhaps there should be different syntax for attaching binary files? Perhaps something like this:
POST http://foobar.com
Content-type: application/gzip
& /path/to/some/file.json.gz
Thanks very much for all your hard work!
Cheers, K
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey @pashky, thanks for such a fantastic Emacs package. :)
Binary files are not attached properly to requests when specified as an external file. For example, something like this:
I've verified that this is broken by running the corresponding command in
curl
:I had to use
--data-binary
instead of-d
on the command line to attach the gzipped file. It looks likerestclient.el
always emits-d
when extracting the request as acurl
command. I'm guessing that the code doesn't necessarily usecurl
internally and will need to be fixed in multiple places.Perhaps there should be different syntax for attaching binary files? Perhaps something like this:
Thanks very much for all your hard work!
Cheers, K
The text was updated successfully, but these errors were encountered: