Skip to content

Instantly share code, notes, and snippets.

View mareksubocz's full-sized avatar

Marek Subocz mareksubocz

  • Poznan Supercomputing and Networking Center
  • Poznan, Poland
  • 13:42 (UTC +02: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;
}