Defined in file: hzHttpClient.h
Automatic syncing or downloading from a website is effected by executing a series of steps or commands. Each command is parameterized by a hzWebCMD class instance. The hzHttpClient class enables programs to operate as HTTP clients (e.g. webbots). It consists of a hzTcpClient, a set of cookies and a set of values derived from browsing As a minimum, the hzWebCMD must contain a URL and a HTTP command such as GET. If the required action is to POST a form then the URL and the command must be accompanied by a series of one or more name-value pairs serving as the form data. Note that the hzWebCMD can also specify recursive downloading.
Constructors/Detructors
| hzWebCMD* | hzWebCMD | (void) | |
| void | ~hzWebCMD | (void) |
Public Methods:
| void | Clear | (void) |
Overloaded operators:
| hzWebCMD& | operator= | (hzWebCMD& op) |
Member Variables:
| webcmd | m_Cmd | The command to execute | |
| hzString | m_Crit | This concerns the (globing) form the link (URL) must take in order to qualify for download. | |
| uint32_t | m_Flags | Reserved | |
| hzList<hzPair> | m_Formdata | List of name value pairs to submit to the site's login form (given as m_Authpage see below) | |
| hzString | m_Inputs | List of pages to fetch (input list) | |
| hzString | m_Output | Name of object, eg form or list of links (if applicable) | |
| hzString | m_Slct | This creates a set of nodes based on tagname and attributes | |
| hzUrl | m_Url | Page to fetch |