OW_HTTPUtils.cpp File Reference

#include "OW_config.h"
#include "OW_HTTPUtils.hpp"
#include "OW_DateTime.hpp"
#include "OW_HTTPStatusCodes.hpp"
#include "OW_HTTPCounter.hpp"
#include "OW_HTTPException.hpp"
#include "OW_StringBuffer.hpp"
#include "OW_AuthenticationException.hpp"
#include "OW_MD5.hpp"
#include "OW_AutoPtr.hpp"
#include "OW_Format.hpp"
#include "OW_ExceptionIds.hpp"
#include <algorithm>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <iostream>

Include dependency graph for OW_HTTPUtils.cpp:

Go to the source code of this file.

Namespaces

namespace  OW_NAMESPACE
namespace  OW_NAMESPACE::HTTPUtils

Functions

 OW_NAMESPACE::OW_DEFINE_EXCEPTION_WITH_ID (Base64Format)
bool OW_NAMESPACE::HTTPUtils::parseHeader (HTTPHeaderMap &map, Array< String > &array, istream &istr)
bool OW_NAMESPACE::HTTPUtils::parseHeader (HTTPHeaderMap &map, istream &istr)
bool OW_NAMESPACE::HTTPUtils::buildMap (HTTPHeaderMap &map, istream &istr)
String OW_NAMESPACE::HTTPUtils::date (void)
 Get the date (for http headers).
String OW_NAMESPACE::HTTPUtils::status2String (int code)
 Return a descriptive string associated with a HTTP status code.
String OW_NAMESPACE::HTTPUtils::getCounterStr ()
 Returns a two digit sequence for header counting.
String OW_NAMESPACE::HTTPUtils::base64Decode (const String &arg)
 Decode Base64 encoded arg
Exceptions:
(Base64FormatException). 

static int OW_NAMESPACE::HTTPUtils::char2val (char c)
Array< char > OW_NAMESPACE::HTTPUtils::base64Decode (const char *src)
 Decode Base64 encoded arg.
String OW_NAMESPACE::HTTPUtils::base64Encode (const String &arg)
 Encode src in Base64
Exceptions:
(Base64FormatException). 

String OW_NAMESPACE::HTTPUtils::base64Encode (const char *src)
 Encode src in Base64.
String OW_NAMESPACE::HTTPUtils::base64Encode (const UInt8 *src, size_t len)
void OW_NAMESPACE::HTTPUtils::DigestCalcHA1 (const String &sAlg, const String &sUserName, const String &sRealm, const String &sPassword, const String &sNonce, const String &sCNonce, String &sSessionKey)
void OW_NAMESPACE::HTTPUtils::DigestCalcResponse (const String &sHA1, const String &sNonce, const String &sNonceCount, const String &sCNonce, const String &sQop, const String &sMethod, const String &sDigestUri, const String &sHEntity, String &sResponse)
bool OW_NAMESPACE::HTTPUtils::headerHasKey (const HTTPHeaderMap &headers, const String &key)
 Do the headers have a certain key?
String OW_NAMESPACE::HTTPUtils::getHeaderValue (const HTTPHeaderMap &headers, const String &key)
 Get a value (based on a key/value pair) from the http headers.
void OW_NAMESPACE::HTTPUtils::addHeader (Array< String > &headers, const String &key, const String &value)
 Add a HTTP header.
void OW_NAMESPACE::HTTPUtils::eatEntity (istream &istr)
void OW_NAMESPACE::HTTPUtils::decodeBasicCreds (const String &info, String &name, String &password)
 Base64Decode a user name/password.
String OW_NAMESPACE::HTTPUtils::escapeCharForURL (char c)
 Apply the standard URI [RFC 2396, section 2] escaping mechanism to the char c, using the """ HEX HEX" convention).
 OW_NAMESPACE::HTTPUtils::OW_DEFINE_EXCEPTION_WITH_ID (UnescapeCharForURL)
char OW_NAMESPACE::HTTPUtils::digitToVal (char c)
char OW_NAMESPACE::HTTPUtils::unescapeCharForURL (const char *str)
 Apply the standard URI [RFC 2396, section 2] unescaping mechanism to the String s, formatted in the """ HEX HEX" convention).
String OW_NAMESPACE::HTTPUtils::escapeForURL (const String &input)
 Apply the standard URI [RFC 2396, section 2] escaping mechanism to the string input, using the """ HEX HEX" convention).
String OW_NAMESPACE::HTTPUtils::unescapeForURL (const String &input)
 Apply the standard URI [RFC 2396, section 2] unescaping mechanism to the string input, using the """ HEX HEX" convention).

Variables

const char *const OW_NAMESPACE::HTTPUtils::Header_BypassLocker = "OW_BypassLocker"
const char *const OW_NAMESPACE::HTTPUtils::HeaderValue_true = "true"
const char *const OW_NAMESPACE::HTTPUtils::HeaderValue_false = "false"
static HTTPCounter OW_NAMESPACE::HTTPUtils::theCounter
static const char *const OW_NAMESPACE::HTTPUtils::Base64
static const char OW_NAMESPACE::HTTPUtils::Pad64 = '='


Generated on Thu Feb 9 08:59:53 2006 for openwbem by  doxygen 1.4.6