if(data->info.contenttype)
free(data->info.contenttype);
+ Curl_digest_cleanup(data);
+
free(data);
return CURLE_OK;
}
data->set.encoding = (char*)ALL_CONTENT_ENCODINGS;
break;
+ case CURLOPT_HTTPDIGEST:
+ /*
+ * Enable HTTP Digest Authentication
+ */
+ data->set.httpdigest = va_arg(param, long);
+ break;
case CURLOPT_USERPWD:
/*
* user:password to use in the operation
return 1;
}
- if ((socksreq[0] != 5) || /* version */
+ if ((socksreq[0] != 1) || /* version */
(socksreq[1] != 0)) { /* status */
failf(conn->data, "User was rejected by the SOCKS5 server (%d %d).",
socksreq[0], socksreq[1]);