|
Public Member Functions |
| PHTTPClient () |
| Create a new HTTP client channel.
|
| PHTTPClient (const PString &userAgentName) |
int | ExecuteCommand (Commands cmd, const PURL &url, PMIMEInfo &outMIME, const PString &dataBody, PMIMEInfo &replyMime, BOOL persist=TRUE) |
int | ExecuteCommand (const PString &cmdName, const PURL &url, PMIMEInfo &outMIME, const PString &dataBody, PMIMEInfo &replyMime, BOOL persist=TRUE) |
BOOL | WriteCommand (Commands cmd, const PString &url, PMIMEInfo &outMIME, const PString &dataBody) |
| Write a HTTP command to server.
|
BOOL | WriteCommand (const PString &cmdName, const PString &url, PMIMEInfo &outMIME, const PString &dataBody) |
BOOL | ReadResponse (PMIMEInfo &replyMIME) |
| Read a response from the server.
|
BOOL | ReadContentBody (PMIMEInfo &replyMIME, PBYTEArray &body) |
| Read the body of the HTTP command.
|
BOOL | ReadContentBody (PMIMEInfo &replyMIME, PString &body) |
BOOL | GetTextDocument (const PURL &url, PString &document, BOOL persist=TRUE) |
BOOL | GetDocument (const PURL &url, PMIMEInfo &outMIME, PMIMEInfo &replyMIME, BOOL persist=TRUE) |
BOOL | GetHeader (const PURL &url, PMIMEInfo &outMIME, PMIMEInfo &replyMIME, BOOL persist=TRUE) |
BOOL | PostData (const PURL &url, PMIMEInfo &outMIME, const PString &data, PMIMEInfo &replyMIME, BOOL persist=TRUE) |
BOOL | PostData (const PURL &url, PMIMEInfo &outMIME, const PString &data, PMIMEInfo &replyMIME, PString &replyBody, BOOL persist=TRUE) |
Protected Member Functions |
BOOL | AssureConnect (const PURL &url, PMIMEInfo &outMIME) |
BOOL | InternalReadContentBody (PMIMEInfo &replyMIME, PAbstractArray &body) |
Protected Attributes |
PString | userAgentName |
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: