You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
428 B

//
// Created by Marek Kotewicz on 15/06/15.
//
#include "JSV8RemoteConnector.h"
#include "CURLRequest.h"
using namespace std;
using namespace dev;
using namespace dev::eth;
void JSV8RemoteConnector::onSend(char const* _payload)
{
CURLRequest request;
request.setUrl(m_url);
request.setBody(_payload);
long code;
string response;
tie(code, response) = request.post();
(void)code;
m_lastResponse = response.c_str();
}