|
|
@@ -71,6 +71,11 @@ void RemoteTextThread::run()
|
|
|
curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA,
|
|
|
&str);
|
|
|
|
|
|
+#if LIBCURL_VERSION_NUM >= 0x072400
|
|
|
+ // A lot of servers don't yet support ALPN
|
|
|
+ curl_easy_setopt(curl.get(), CURLOPT_SSL_ENABLE_ALPN, 0);
|
|
|
+#endif
|
|
|
+
|
|
|
if (!postData.empty()) {
|
|
|
curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS,
|
|
|
postData.c_str());
|