cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Proxy

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 31 Jan 2009 19:45:58 +0100 (CET)

On Sat, 31 Jan 2009, Michel RIGAUD wrote:

> The web site I have to access is HTTPS. What does it change for the proxy ?
>
> So which is the syntax I should use between all these variables and all
> these commands: <proxy_adress> <port> <login_proxy> <password_proxy>
> <https_mywebsite><login_website><login_password>

You probably know the IP or host name of the proxy? Then start out with:

  curl -v -x proxy:port [url]

And when the proxy responds with a 407, you read the headers of the response
to learn what auth method it wants. Then you repeat the command with
credentials and the correct method:

  curl -U user:password -x proxy:port --proxy-[digest/basic/negotiate/ntlm/any]
[URL]

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-31