Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 "[email protected]" -F "[email protected];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

like image 887
Rex Avatar asked Jul 10 '17 13:07

Rex


1 Answers

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

like image 64
Kangwei Xiao Avatar answered Oct 23 '22 10:10

Kangwei Xiao