Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH] Support various HTTP authentication methods

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:46:03

Moriyoshi Koizumi schrieb:
Johannes Sixt wrote:
quoted
Moriyoshi Koizumi schrieb:
quoted
@@ -210,6 +272,20 @@ static CURL* get_curl_handle(void)
 	if (curl_http_proxy)
 		curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
CURLOPT_PROXY is set here...
As I wrote in the previous post, this part was from the original.
quoted
quoted
 
+	if (curl_http_auth) {
+		long n = get_curl_auth_bitmask(curl_http_auth);
+		curl_easy_setopt(result, CURLOPT_HTTPAUTH, n);
+	}
quoted
... and here again. Is that necessary?
What part do you mean by that?
Oops, sorry, I cut too much from your patch:
+	if (curl_http_auth) {
+		long n = get_curl_auth_bitmask(curl_http_auth);
+		curl_easy_setopt(result, CURLOPT_HTTPAUTH, n);
+	}
+
+	if (curl_http_proxy) {
+		curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
Here you set CURLOPT_PROXY again.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help