Skip to content

Instantly share code, notes, and snippets.

View mareksubocz's full-sized avatar

Marek Subocz mareksubocz

  • Balltime
  • Poznan, Poland
  • 01:24 (UTC +01:00)
View GitHub Profile
@alghanmi
alghanmi / curl_example.cpp
Created May 5, 2014 20:12
cURL C++ Example
#include <iostream>
#include <string>
#include <curl/curl.h>
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}