OW_HTTPUtils.hpp File Reference

#include "OW_config.h"
#include "OW_Array.hpp"
#include "OW_Map.hpp"
#include "OW_String.hpp"
#include "OW_Base64FormatException.hpp"
#include <iosfwd>

Include dependency graph for OW_HTTPUtils.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OW_NAMESPACE
namespace  OW_NAMESPACE::HTTPUtils

Typedefs

typedef Map< String, String > OW_NAMESPACE::HTTPHeaderMap

Functions

OW_HTTP_API bool OW_NAMESPACE::HTTPUtils::parseHeader (HTTPHeaderMap &map, Array< String > &array, std::istream &istr)
 Read from an input stream, and fill out a <String, String> map and String Array representing the status line.
OW_HTTP_API bool OW_NAMESPACE::HTTPUtils::parseHeader (HTTPHeaderMap &map, std::istream &istr)
 Read from in input stream, parse HTTP headers into a <String, String> map (this is called by parseHeader(map, array, 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). 

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.
OW_HTTP_API void OW_NAMESPACE::HTTPUtils::eatEntity (std::istream &istr)
 Read from an input stream, until the end of the entity is reached.
void OW_NAMESPACE::HTTPUtils::decodeBasicCreds (const String &info, String &name, String &password)
 Base64Decode a user name/password.
OW_HTTP_API bool OW_NAMESPACE::HTTPUtils::buildMap (HTTPHeaderMap &map, std::istream &istr)
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_DECLARE_APIEXCEPTION (UnescapeCharForURL, OW_HTTP_API)
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

OW_HTTP_API const char *const OW_NAMESPACE::HTTPUtils::Header_BypassLocker
OW_HTTP_API const char *const OW_NAMESPACE::HTTPUtils::HeaderValue_true
OW_HTTP_API const char *const OW_NAMESPACE::HTTPUtils::HeaderValue_false


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