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]"...
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" ""
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.
You error seems like one proxy config problem.
Try use --noproxy flag:
Example:
curl --noproxy 127.0.0.1 +your POST
Or try set your proxy, like my example:
curl --proxy <[protocol://][user:password@]proxyhost[:port]> +your POST
Obs.: Use the specified HTTP proxy. If the port number isn't specified, will be 1080 for default.
- download and install GIT
- write the command curl -X, for example
curl -X POST "yourwebsite.js"