Browse Source

longpoll seems to work either way with post or get but some servers prefer get so change to httpget.

nfactor-troky
Con Kolivas 14 years ago
parent
commit
6e30c0701c
  1. 3
      util.c

3
util.c

@ -259,6 +259,9 @@ json_t *json_rpc_call(CURL *curl, const char *url, @@ -259,6 +259,9 @@ json_t *json_rpc_call(CURL *curl, const char *url,
curl_easy_setopt(curl, CURLOPT_USERPWD, userpass);
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
}
if (longpoll)
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1);
else
curl_easy_setopt(curl, CURLOPT_POST, 1);
if (opt_protocol)

Loading…
Cancel
Save