class PHTTPClient |
A TCP/IP socket for the HyperText Transfer Protocol version 10.
Construction
Overrides from class PObject
Overrides from class PChannel
Channel establish functions
Information functions
Reading functions
Writing functions
Miscellaneous functions
Error functions
Run Time Type functions
I/O functions
Comparison functions
A TCP/IP socket for the HyperText Transfer Protocol version 10.When acting as a client, the procedure is to make the connection to a remote server, then to retrieve a document using the following procedure: <PRE><CODE> PHTTPSocket web("webserver"); if (web.IsOpen()) { PINDEX len; if (web.GetDocument("http://www.someone.com/somewhere/url", len)) { PString html = web.ReadString(len); if (!html.IsEmpty()) ProcessHTML(html); } else PError << "Could not get page." << endl; } else PError << "HTTP conection failed." << endl; </PRE></CODE>
Alphabetic index HTML hierarchy of classes or Java