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 POSTOr try set your proxy, like my example:
curl --proxy <[protocol://][user:password@]proxyhost[:port]> +your POSTObs.: Use the specified HTTP proxy. If the port number isn't specified, will be 1080 for default.
2- download and install GIT
- write the command curl -X, for example
curl -X POST "yourwebsite.js"