#include "config.h"
#include <stdio.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <functional>
#include <algorithm>
#include <sstream>
#include <iterator>
#include "debug.h"
#include "GNURegex.h"
#include "HTTPCache.h"
#include "HTTPConnect.h"
#include "RCReader.h"
#include "HTTPResponse.h"
#include "HTTPCacheResponse.h"
Include dependency graph for HTTPConnect.cc:
Go to the source code of this file.
Defines | |
#define | CLIENT_ERR_MAX 417 |
#define | CLIENT_ERR_MIN 400 |
#define | SERVER_ERR_MAX 505 |
#define | SERVER_ERR_MIN 500 |
Functions | |
void | close_temp (FILE *s, const string &name) |
string | get_temp_file (FILE *&stream) throw (InternalErr) |
Variables | |
int | dods_keep_temps = 0 |
int | www_trace = 0 |
#define CLIENT_ERR_MAX 417 |
Definition at line 73 of file HTTPConnect.cc.
#define CLIENT_ERR_MIN 400 |
Definition at line 72 of file HTTPConnect.cc.
#define SERVER_ERR_MAX 505 |
Definition at line 99 of file HTTPConnect.cc.
#define SERVER_ERR_MIN 500 |
Definition at line 98 of file HTTPConnect.cc.
void close_temp | ( | FILE * | s, | |
const string & | name | |||
) |
Close the temporary file opened for read_url().
Definition at line 613 of file HTTPConnect.cc.
References DBG.
Referenced by HTTPResponse::~HTTPResponse().
string get_temp_file | ( | FILE *& | stream | ) | throw (InternalErr) |
Open a temporary file and return its name. This method opens a temporary file using get_tempfile_template(). The FILE* stream
is opened for both reads and writes; if it already exists (highly unlikely), it is truncated. If used on Unix, it's the callers responsibility to unlink the named file so that when all descriptors to it are closed, it will be deleted. On Win32 platforms, this method pushes the name of the temporary file onto a vector which is used during object destruction to delete all the temporary files.
stream | A value-result parameter; the open file descriptor is returned via this parameter. |
InternalErr | thrown if the FILE* could not be opened. |
Definition at line 590 of file HTTPConnect.cc.
References get_tempfile_template().
Here is the call graph for this function:
int dods_keep_temps = 0 |
Definition at line 70 of file HTTPConnect.cc.
int www_trace = 0 |
Definition at line 67 of file HTTPConnect.cc.