Could not resolve proxy: POST (while running curl script for watson document conversion)

Viewed 30465

I'm running a curl script for HTML document conversion with a HTML file config. Below is the code:

curl -x POST -u "Username":"Password" -F "config=@config.json" -F "file=@example.html;type=text/html" "https://gateway.watsonplatform.net/document-conversion/api/v1/index_document?version=2015-12-15"

I'm getting error - Could not resolve proxy: POST. If anyone could help on this please?

Note - I have curl 7.46 installed

3 Answers

I am learning curl recently and encountered this as well. Actually, the reason is that the -x should be replaced by -X.

  1. download and install GIT
  2. write the command curl -X, for example curl -X POST "yourwebsite.js"
Related