cURL / Mailing Lists / curl-library / Single Mail

curl-library

Test proxy authentication parameters

From: Andrey Bocharnikov <ricko.x_at_gmail.com>
Date: Tue, 28 Sep 2010 21:38:20 +0700

Hi all,
Is it possible to make authentication on proxy, without further requests
through this proxy?
This is helpful in situation, when i just need to understand if
authentication parameters are correct.

libcurl 7.21.0
proxysquid 3.0.stable19

I've tried to play with curl options:

1) Connecting directly to proxy server URL with CURLOPT_URL option (without
using proxy server - CURLOPT_PROXY option) with specified authentication
parameters.
Proxy replies ERR_INVALID_URL.
If I set CONNECT_ONLY option additionally, it just establish connection with
proxy without authentication. So i can't understand if authentication
parameters are correct.

2) Connecting to some server like "always.alive.server.com" with specified
proxy and CONNECT_ONLY option. But in this case there is also no
authentication happened. LibCurl just establish connection to proxy and
leave socket opened.
Proxy authentication happens only when I'm performing some request without
CONNECT_ONLY option.

So general question: is it possible to authenticate on proxy without request
to another URL?

Thanks in advance,
Andrey

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-28