cURL / Mailing Lists / curl-library / Single Mail

curl-library

[Patch] Disable proxy support

From: Daniel Egger <daniel_at_eggers-club.de>
Date: Wed, 24 Sep 2008 16:55:41 +0200

Hi gents,

attached you'll find a patch to disable proxy support using a new
configure
switch --disable-proxy .

The main reason to develop the patch are size constraints on the target
which will certainly never be used to download a file through a proxy
and as such it made sense to me to strip the proxy support.

Despite the simple nature of the patch the savings are quite okay for
such a simple patch (although the change from 7.17.1 to 7.19.0 added
30k!).

Before:
-rwxr-xr-x 1 root root 300664 Sep 23 14:05 build/lib/libcurl.so.5.1.0

After:
-rwxr-xr-x 1 root root 291636 Sep 24 16:42 build/lib/libcurl.so.5.1.0

Except for strange problems with testcase 1001 all cases work perfectly
(excluded those that test proxy behaviour of course) and the changes are
designed to be perfectly API/ABI compatible.

Servus,
       Daniel

Received on 2008-09-24