|
|
@ -163,7 +163,7 @@ try_again: |
|
|
|
|
|
|
|
databuf = (char *)malloc(256 + strlen(command) + strlen(params)); |
|
|
|
sprintf(databuf,"{\"id\":\"jl777\",\"method\":\"%s\",\"params\":%s%s%s}",command,bracket0,params,bracket1); |
|
|
|
//printf("url.(%s) userpass.(%s) databuf.(%s)\n",url,userpass,databuf);
|
|
|
|
printf("url.(%s) userpass.(%s) databuf.(%s)\n",url,userpass,databuf); |
|
|
|
//
|
|
|
|
} //else if ( specialcase != 0 ) fprintf(stderr,"databuf.(%s)\n",params);
|
|
|
|
curl_easy_setopt(curl_handle,CURLOPT_POST,1L); |
|
|
@ -189,7 +189,7 @@ try_again: |
|
|
|
free(s.ptr); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
else if ( numretries >= 1 ) |
|
|
|
else if ( numretries >= 2 ) |
|
|
|
{ |
|
|
|
printf("Maximum number of retries exceeded!\n"); |
|
|
|
free(s.ptr); |
|
|
|