My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::CurlUtils Class Reference
Inheritance diagram for gcp::util::CurlUtils:
gcp::util::WxReader40m gcp::util::WxReaderSA gcp::util::WxServer40m gcp::util::WxServerSA

Public Member Functions

 CurlUtils ()
 
virtual ~CurlUtils ()
 
std::string getUrl (std::string url, bool printStats=false)
 
std::string postUserPass (std::string url, std::string user, std::string pass, std::string challenge)
 

Protected Types

enum  { OPTION_FALSE = 0, OPTION_TRUE = 1 }
 

Protected Member Functions

CURL * initCurl ()
 
void cleanUp (CURL *ctx)
 
const CURLcode performRequest (CURL *ctx, bool printStats)
 
void setUrl (CURL *ctx, std::string url)
 

Static Protected Member Functions

static size_t handleData (void *buffer, size_t size, size_t nmemb, void *userp)
 

Protected Attributes

std::ostringstream lastRead_
 

Constructor & Destructor Documentation

CurlUtils::CurlUtils ( )

Constructor.

....................................................................... Constructor.

CurlUtils::~CurlUtils ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

void CurlUtils::cleanUp ( CURL *  ctx)
protected

....................................................................... Cleanup the CURL interface

CURL * CurlUtils::initCurl ( )
protected

....................................................................... Initialize the CURL interface

const CURLcode CurlUtils::performRequest ( CURL *  ctx,
bool  printStats 
)
protected

....................................................................... Perform the request specified, and return stats about it, if printStats=true

void CurlUtils::setUrl ( CURL *  ctx,
std::string  url 
)
protected

....................................................................... Set up a URL to fetch


The documentation for this class was generated from the following files: