Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

HTMLGrabber Class Reference

#include <HTMLGrabber.H>

List of all members.

Public Member Functions

 HTMLGrabber ()
 Constructor does nothing.
 ~HTMLGrabber ()
 Destructor does nothing.
void grab (const char *url, char *path)
void grab (const char *url, char *path, const char *post)


Detailed Description

The HTMLGrabber grabs the HTML corresponding to a URL passed in. It writes the HTML out to a file and returns the filename.

Example of proper use:

        #include "HTMLGrabber.h"

        void myfunc()
        {
                char path[HTML_GRABBER_MAX_FILENAME_SIZE];
                char *url = "http://www.google.com";
                HTMLGrabber htg;

                htg.grab(url, path);
                int fd = open(path);
                // do stuff with the open file
                close(fd);
                unlink(path);
        }


Member Function Documentation

void HTMLGrabber::grab const char *  url,
char *  path,
const char *  post
 

Parameters:
url The URL to get the HTML from.
path Return parameter specifying where the HTML was written
post The post string to be included in the HTTP request

void HTMLGrabber::grab const char *  url,
char *  path
 

Parameters:
url The URL to get the HTML from.
path Return parameter specifying where the HTML was written


The documentation for this class was generated from the following files:
Generated on Wed May 17 22:28:21 2006 for GeoEvents by  doxygen 1.4.2