cURL / Mailing Lists / curl-users / Single Mail

curl-users

Proxy support

From: Varuna Bamunusinghe <varuna82lk_at_gmail.com>
Date: Wed, 28 Dec 2005 00:15:39 +0600

Thank you.
Varuna.
I want to connect to http server using CUrl through a socks proxies. But I
don't think there's socks4 support and when I try to connect to socks4 with
socks5 option set, it crashes.

The problem is I guess because, handlesock5 function at url.c processes the
proxy even it returns failure (non zero on the second byte of response). So
will it be ok to just delete the section and recomplile it?

if (socksreq[1] == 0) {
    /* Nothing to do, no authentication needed */
    ;
}
else if (socksreq[1] == 2) {
    /* Needs user name and password */
    ....

Thank you.
Varuna.
Received on 2005-12-27