curl through proxy syntax -


i don't understand how read general syntax. want request url through our proxy , requires specific host, port, username, , password. don't know how figure out protocol is. want curl through proxy. based on helpfile below, guess line should be:

curl -x [whatever-my-protocol-is://]my-host-which-i-know[:my-port-which-i-know] -u my-username-which-i-know[:my-pass-which-i-know] http://www.google.com

is right? how figure out protocol?

relevant info man:

-x, --proxy [protocol://]host[:port] use proxy on given port      --proxy-anyauth pick "any" proxy authentication method (h)      --proxy-basic   use basic authentication on proxy (h)      --proxy-digest  use digest authentication on proxy (h)      --proxy-negotiate use negotiate authentication on proxy (h)      --proxy-ntlm    use ntlm authentication on proxy (h)  -u, --proxy-user user[:password]  proxy user , password      --proxy1.0 host[:port]  use http/1.0 proxy on given port 

solved: ignore "[" when reading general syntax. also, windows likes double vs single quotes. command is: curl -x my-host-which-i-know:my-port-which-i-know -u my-username-which-i-know:my-pass-which-i-know http://www.google.com

solved: ignore "[" when reading general syntax. also, windows likes double vs single quotes.

so command is:

curl -x my-host-which-i-know:my-port-which-i-know -u my-username-which-i-know:my-pass-which-i-know http://www.google.com


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -