|
Public Types |
| enum | Proto {
ftp,
http,
https,
file,
mailto,
oracle,
postgres,
sybase,
iso8583,
spdh,
none = -1
} |
| enum | HttpMethods { GET,
POST,
SOAP,
unknown
} |
| enum | dsURLFlags { urlNO_FLAGS = 0,
urlRAW_OUT = 0x1,
urlSHORT_READ = 0x2
} |
Public Methods |
| | dsURL (int flags=urlNO_FLAGS) |
| | dsURL (const char *str, int flags=urlNO_FLAGS) |
| virtual | ~dsURL () |
| void | parse (const char *url) |
| int | get (std::ostream &ostr) |
| int | post (std::ostream &ostr) |
| int | post (std::ostream &ostr, dsStrstream &data) |
| int | post (std::ostream &ostr, char *data, int pcount) |
| int | soap (std::ostream &ostr, dsStrstream &data, char *SOAPAction) |
| int | soap (std::ostream &ostr, char *data, int pcount, char *SOAPAction) |
| void | dump (std::ostream &os) |
| const char * | host () |
| const char * | location () |
| const char * | cgidata () |
| const char * | auth_user () |
| const char * | auth_pw () |
| const int | port () |
| const Proto | protocol () |
| const char * | protoName () |
| const char * | userStr () |
Protected Methods |
| virtual int | read_answer (dsSocket *ms, std::ostream *ostr) |
| virtual void | va_build_header (std::ostream &req, HttpMethods meth, int contLen,...) |
Protected Attributes |
| int | _flags |
| char * | _user_str |
| char * | _host |
| char * | _location |
| char * | _cgidata |
| char * | _auth_user |
| char * | _auth_pw |
| int | _port |
| int | _retcode |
| Proto | _protocol |