Coder Social home page Coder Social logo

curly's People

Contributors

arturogutierrez avatar gonzalezreal avatar johanlantz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

curly's Issues

ssl issues

all https requests are error.
01-23 23:34:31.541 17869 17989 V SDK : curly error:Info: TLSv1.2 (OUT), TLS handshake, Client hello (1):
01-23 23:34:31.541 17869 17989 V SDK :
01-23 23:34:31.672 17869 17989 V SDK : curly error:Info: TLSv1.2 (IN), TLS handshake, Server hello (2):
01-23 23:34:31.672 17869 17989 V SDK :
01-23 23:34:31.673 17869 17989 V SDK : curly error:Info: TLSv1.2 (IN), TLS handshake, Certificate (11):
01-23 23:34:31.673 17869 17989 V SDK :
01-23 23:34:31.674 17869 17989 V SDK : curly error:Info: TLSv1.2 (OUT), TLS alert, Server hello (2):
01-23 23:34:31.674 17869 17989 V SDK :
01-23 23:34:31.674 17869 17989 V SDK : curly error:Info: SSL certificate problem: unable to get local issuer certificate
01-23 23:34:31.674 17869 17989 V SDK :
01-23 23:34:31.674 17869 17989 V SDK : curly error:Info: TLSv1.2 (OUT), TLS alert, Client hello (1):

Instructions for usage are not clear

Hey trying to do a simple request using this library, but I'm not able to understand which parameters am I supposed to pass to it. I took a look into the test folder and the code there is not working for me. Here is my latest attempt:

void onHttpRequestCompleted(curly_http_transaction_handle handle, long http_response_code, void* data, long size) {
  std::cout << "http request completed " << http_response_code << std::endl;
}

void CalendarHelper::fetchCalendar(std::string credentials) {
  std::cout << "Should fetch calendar in cpp" << std::endl;
  json j = json::parse(credentials);
//  std::cout << "access_token" << j["tokens"]["access_token"] << std::endl;
  std::cout << "fetching calendar" << std::endl;
  std::string accessToken = std::string(j["tokens"]["access_token"]);
  std::string urlStr = "https://www.googleapis.com/calendar/v3/calendars/primary/events?access_token=" + accessToken + "&maxResults=100&singleEvents-trye";
  const char* headers = "{\"Accept\":\"application/json\"}";
  curly_http_transaction_handle handle = curly_http_get(urlStr.c_str(), headers, &onHttpRequestCompleted); // No matching function call to 'curly_http_get'
}

i did not found any lock of openssl in code

i found these in the example of libcurl
CRYPTO_set_id_callback((unsigned long ()())thread_id);
CRYPTO_set_locking_callback((void (
)())lock_callback);

but why not in your code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.