Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsURL.h File Reference

#include <stdio.h>
#include <stdarg.h>
#include <iostream>
#include <fstream>
#include <dsSmartException.h>
#include <dsSocket.h>
#include <dsutil.h>
#include <dsStrstream.h>
#include <dsSOAP.h>
#include <dsMime.h>

Go to the source code of this file.

Compounds

class  dsURL

Defines

#define URL_RAW_OUTPUT   1
#define hex(ch)   ( (char) ( ((ch) >= 10) ? ((ch) - 10) + 'A' : ((ch) + '0') ) )
#define is_alnum(ch)

Functions

 DECLARE_EXCEPTION (dsURL)
char * urlencode (char *dest, char *src, int len)
std::ostream & urlencode (std::ostream &dest, char *src, int len)
std::ostream & urlencode (std::ostream &dest, char *src)


Define Documentation

#define hex ch       ( (char) ( ((ch) >= 10) ? ((ch) - 10) + 'A' : ((ch) + '0') ) )
 

Sample url class, it support get, post and Basic auth user can build custom header by overriding virtual void build_header(HttpMethods meth, ostream &req);

#define is_alnum ch   
 

Value:

( ((ch) >= '0' && (ch) <= '9') || \
                       ((ch) >= 'A' && (ch) <= 'Z') || \
                       ((ch) >= 'a' && (ch) <= 'z') )

#define URL_RAW_OUTPUT   1
 


Function Documentation

DECLARE_EXCEPTION dsURL   
 

std::ostream& urlencode std::ostream &    dest,
char *    src
[inline]
 

std::ostream& urlencode std::ostream &    dest,
char *    src,
int    len
[inline]
 

char* urlencode char *    dest,
char *    src,
int    len
[inline]
 


Generated on Mon May 16 18:26:58 2005 for libdms4 by doxygen1.3-rc2