curl-library
Pb with TUNNELING
Date: Fri, 4 Jan 2002 15:44:27 +0100 (CET)
What's the problem ?
This code returns 26 (CURL_READ_ERROR) with proxy.
This code returns 0 (OK) without proxy.
Proxy is OK, because I'm using put and get with it
(but without tunneling).
So may be the problem comes from tunneling...
What's wrong ?
int ftpDel(CURL *curl, char *hostpath, char *host
URL,char *proxy)
{
char buf[BUF_LGTH] = "DELE ";
struct curl_slist *hl = NULL;
strcat(buf, hostpath);
hl = curl_slist_append(hl, buf);
curl_easy_setopt(curl, CURLOPT_URL, hostURL);
if(!strcmp(proxy, "yes")) {
curl_easy_setopt(curl, CURLOPT_PROXY, proxyname);
curl_easy_setopt(curl, CURLOPT_PROXYPORT, port);
curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1);
}
curl_easy_setopt(curl, CURLOPT_QUOTE, hl);
res = curl_easy_perform(curl);
return res;
}
Thanx
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr
Received on 2002-01-04