cURL / Mailing Lists / curl-users / Single Mail


Re: Curl and transparent proxies (e.g. Squid)

From: Ralph Mitchell <>
Date: Wed, 2 Jul 2014 23:25:20 -0400

On Wed, Jul 2, 2014 at 4:26 PM, Dan Fandrich <> wrote:

> On Wed, Jul 02, 2014 at 10:57:47AM +0200, wrote:
> > I already did quite some research on various sources in the net but was
> not
> > able to find anything helpful for my particular problem.
> >
> > The screnario is that I have some client PCs in a network behind a
> transparent
> > proxy (squid/3.1.12).
> >
> > Everything works fine using a browser set to "automatically detect
> network
> > settings". Interestingly, if I set the browser to "no proxy" as I would
> have
> > expected to be possible when using transparent proxies, the browser is
> not able
> > to get anything from the web.
> Are you sure it's a transparent proxy then? A browser set to automatically
> detect proxies is likely to do so using DHCP or WPAD.
> > But how do I configure curl in this scenario?
> curl doesn't support either of those natively, so some kind of application
> helper would need to be used to detect the actual proxy being used and
> configure curl to use it. If the proxy is configured with a .pac file, this
> becomes difficult because the proxy used could be different for each URL.

Just as an aside, it is possible to process a .pac file. I did some work
on that back in 2002:

Ralph Mitchell

List admin:
Received on 2014-07-03