I am playing with simple cURL commands and succeeding in retrieving web pages when I'm not behind a proxy. But when I try to go through the proxy I am getting errors "400 bad request."
Here's my command
I *think* that command is telling my request to say it is internet explorer 10.0 on a windows machine. It will pass the proxy my username, then prompt me for a password if it needs one. -x tells it to use the proxy that i have named along with port 8080. My target url is google. Finally, cURL will dump the output into the file called "output.txt".
curl --user-agent "Mozilla/1.22 (compatible; MSIE 10.0; Windows 3.1)" --proxy-user username: -x my.proxy.com:8080 http://www.google.com >> output.txt
It returns the error "400 bad request."
What am I doing wrong?