Trying to connect to an API on localhost:66398, API is running and can be hit with curl. Using ubuntu 20.04, and httpie version 3.2.1.
httpie command (With redactions)
http POST http://localhost:63398/api/v1/course -A bearer -a <BearerToken> Content-type: application/zip < Course.zip
Current result
sage:
http [METHOD] URL [REQUEST_ITEM ...]
error:
unrecognized arguments: Content-type:application/zip
for more information:
run 'http --help' or visit https://httpie.io/docs/cli
…
Expected result
A 200 response from the server
…
Debug output
Please re-run the command with --debug, then copy the entire command & output and paste both below:
Checklist
Minimal reproduction code and steps
Trying to connect to an API on localhost:66398, API is running and can be hit with curl. Using ubuntu 20.04, and httpie version 3.2.1.
http POST http://localhost:63398/api/v1/course -A bearer -a <BearerToken> Content-type: application/zip < Course.zip
Current result
…
Expected result
A 200 response from the server …
Debug output
Please re-run the command with
--debug
, then copy the entire command & output and paste both below:Additional information, screenshots, or code examples
I have also tried multiple capitalizations of the Content-Type header, all with the same results. …