cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

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

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

> On Wed, Jul 02, 2014 at 10:57:47AM +0200, gerd_roethig_at_web.de 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:

     http://curl.haxx.se/mail/archive-2002-06/0092.html

Ralph Mitchell

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-03