OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
curl_utils.cc File Reference
#include <unistd.h>
#include <algorithm>
#include <GNURegex.h>
#include "util.h"
#include "BESDebug.h"
#include "GatewayUtils.h"
#include "curl_utils.h"
Include dependency graph for curl_utils.cc:

Go to the source code of this file.

Namespaces

 libcurl
 

Macros

#define CLIENT_ERR_MAX   417
 
#define CLIENT_ERR_MIN   400
 
#define SERVER_ERR_MAX   505
 
#define SERVER_ERR_MIN   500
 

Functions

bool libcurl::configureProxy (CURL *curl, const string &url)
 Configure the proxy options for the passed curl object. More...
 
string libcurl::http_status_to_string (int status)
 This function translates an HTTP status code into an error messages. More...
 
CURL * libcurl::init (char *error_buffer)
 Get's a new instance of CURL* and performs basic configuration of that instance. More...
 
long libcurl::read_url (CURL *curl, const string &url, int fd, vector< string > *resp_hdrs, const vector< string > *request_headers, char error_buffer[])
 Use libcurl to dereference a URL. More...
 

Variables

int libcurl::curl_trace = 0
 
const char * libcurl::http_client_errors [CLIENT_ERR_MAX-CLIENT_ERR_MIN+1]
 
const char * libcurl::http_server_errors [SERVER_ERR_MAX-SERVER_ERR_MIN+1]
 

Macro Definition Documentation

#define CLIENT_ERR_MAX   417

Definition at line 44 of file curl_utils.cc.

Referenced by libcurl::http_status_to_string().

#define CLIENT_ERR_MIN   400

Definition at line 43 of file curl_utils.cc.

Referenced by libcurl::http_status_to_string().

#define SERVER_ERR_MAX   505

Definition at line 70 of file curl_utils.cc.

Referenced by libcurl::http_status_to_string().

#define SERVER_ERR_MIN   500

Definition at line 69 of file curl_utils.cc.

Referenced by libcurl::http_status_to_string().