94 proxy->no_proxy); |
94 proxy->no_proxy); |
95 } |
95 } |
96 } |
96 } |
97 |
97 |
98 // set url |
98 // set url |
|
99 #if LIBCURL_VERSION_NUM >= 0x072D00 |
|
100 curl_easy_setopt(sn->handle, CURLOPT_DEFAULT_PROTOCOL, "http"); |
|
101 #endif |
99 curl_easy_setopt(sn->handle, CURLOPT_URL, base_url); |
102 curl_easy_setopt(sn->handle, CURLOPT_URL, base_url); |
100 |
103 |
101 // add to context |
104 // add to context |
102 context->sessions = ucx_list_append(context->sessions, sn); |
105 context->sessions = ucx_list_append(context->sessions, sn); |
103 sn->context = context; |
106 sn->context = context; |