test
This commit is contained in:
@@ -98,6 +98,7 @@ char *komodo_issuemethod(char *method,char *params)
|
|||||||
{
|
{
|
||||||
sprintf(url,(char *)"http://127.0.0.1:%u",BITCOIND_PORT);
|
sprintf(url,(char *)"http://127.0.0.1:%u",BITCOIND_PORT);
|
||||||
sprintf(postdata,"{\"method\":\"%s\",\"params\":%s}",method,params);
|
sprintf(postdata,"{\"method\":\"%s\",\"params\":%s}",method,params);
|
||||||
|
printf("postdata.(%s) USERPASS.(%s)\n",postdata,USERPASS);
|
||||||
retstr = curl_post(&cHandle,url,USERPASS,postdata,0,0,0,0);
|
retstr = curl_post(&cHandle,url,USERPASS,postdata,0,0,0,0);
|
||||||
}
|
}
|
||||||
return(retstr);
|
return(retstr);
|
||||||
|
|||||||
@@ -990,7 +990,6 @@ void komodo_configfile(char *symbol,uint16_t port)
|
|||||||
else if ( (str= strstr(line,(char *)"rpcport")) != 0 )
|
else if ( (str= strstr(line,(char *)"rpcport")) != 0 )
|
||||||
rpcport = parse_conf_line(str,(char *)"rpcport");
|
rpcport = parse_conf_line(str,(char *)"rpcport");
|
||||||
}
|
}
|
||||||
printf("rpcuser.(%s) rpcpassword.(%s) port.(%s)\n",rpcuser,rpcpassword,rpcport);
|
|
||||||
if ( rpcuser != 0 && rpcpassword != 0 )
|
if ( rpcuser != 0 && rpcpassword != 0 )
|
||||||
{
|
{
|
||||||
sprintf(USERPASS,"%s:%s",rpcuser,rpcpassword);
|
sprintf(USERPASS,"%s:%s",rpcuser,rpcpassword);
|
||||||
@@ -1003,6 +1002,7 @@ void komodo_configfile(char *symbol,uint16_t port)
|
|||||||
// sprintf(serverport,"127.0.0.1:%s",rpcport);
|
// sprintf(serverport,"127.0.0.1:%s",rpcport);
|
||||||
free(rpcport);
|
free(rpcport);
|
||||||
}
|
}
|
||||||
|
printf("rpcuser.(%s) rpcpassword.(%s) port.(%s) USERPASS.(%s) port.%u\n",rpcuser,rpcpassword,rpcport,USERPASS,atoi(rpcport!=0?rpcport:0));
|
||||||
if ( rpcuser != 0 )
|
if ( rpcuser != 0 )
|
||||||
free(rpcuser);
|
free(rpcuser);
|
||||||
if ( rpcpassword != 0 )
|
if ( rpcpassword != 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user