curl-library
proxy?
Date: Mon, 13 Jun 2005 19:17:15 -0400
I'm using libcurl 12.3. I wanted to use a proxy to debug some problems,
so I
I set my proxy as follows
curl_easy_setopt(curlHandle_, CURLOPT_PROXY, proxy_);
curl_easy_setopt(curlHandle_, CURLOPT_PROXYPORT, proxyPort_);
and then went on as usual. I got a bad pointer in
CreateConnection in url.c on the last line of the following block.
(I'm doing this with separate curlhandles on multiple threads. Some of
my
Threads made it past this line, but none succeeded in hitting the
proxy).
conn->data = data; /* remember our daddy */
conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD; /* no file descriptor
*/
conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor
*/
conn->connectindex = -1; /* no index */
conn->bits.httpproxy = (data->change.proxy && *data->change.proxy &&
(data->set.proxytype == CURLPROXY_HTTP))?
TRUE:FALSE; /* http proxy or not */
I'm sure I've done something wrong. Anyone have any ideas?
Thanks,
Michael Mastroianni
Received on 2005-06-14