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" ""

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

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.

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like