149 PBoolean SetSize(PINDEX) {
return false; }
1481 PHTML & replyMessage
1923 #endif // PTLIB_HTTP_H
static const PCaselessString & TransferEncodingTag()
void SetPersistenceMaximumTransations(unsigned m)
Set the maximum number of transations (GET/POST etc) for persistent connection.
Definition: http.h:705
PString commandName
Definition: http.h:720
void SetMIME(const PString &tag, const PString &value)
void SetString(const PString &str)
Set the string to be returned by this resource.
Definition: http.h:1596
void EndRead()
This function attempts to release the mutex for reading.
virtual PBoolean Post(PHTTPRequest &request, const PStringToString &data, PHTML &replyMessage)
Get a block of data (eg HTML) that the resource contains.
virtual PString GetPassword() const
Definition: http.h:298
virtual PBoolean Parse(const PString &auth, PBoolean proxy)
virtual void SetPassword(const PString &pass)
Definition: http.h:302
virtual PMIMEInfo & GetMIME()=0
const PString & GetPassword() const
Get the password allocated to this simple authorisation.
Definition: http.h:1124
static const PCaselessString & ContentTypeTag()
bool DecodeMultiPartList(PMultiPartList &parts, const PString &body, const PCaselessString &key) const
Decode parts from a multipart body using the field value.
PBoolean Initialise(PHTTPServer &server, PString &args)
bool GetPersistent() const
Get persistent connection mode.
Definition: http.h:639
virtual PBoolean OnHEAD(const PURL &url, const PMIMEInfo &info, const PHTTPConnectionInfo &conInfo)
Handle a HEAD command from a client.
This class contains the Multipurpose Internet Mail Extensions parameters and variables.
Definition: mime.h:52
static const PCaselessString & ExpiresTag()
PString entityBody
Definition: http.h:728
const PString & GetNonce() const
Definition: http.h:394
volatile DWORD hitCount
COunt of number of times resource was accessed.
Definition: http.h:1514
virtual PBoolean IsActive() const
Determine if the authorisation is to be applied.
301 - resource moved permanently: location field has new URL
Definition: http.h:189
This class represents a disk file.
Definition: file.h:60
PString username
Definition: http.h:1129
virtual PBoolean IsProxy() const
Definition: http.h:295
bool DeleteDocument(const PURL &url)
Delete the document specified by the URL.
static const PCaselessString & CookieTag()
PHTTPClientDigestAuthentication & operator=(const PHTTPClientDigestAuthentication &auth)
This class defines an arbitrary time interval to millisecond accuracy.
Definition: timeint.h:55
bool WasPersistent() const
Definition: http.h:682
static const PCaselessString & AuthorizationTag()
void EndRead() const
This function attempts to release the mutex for reading.
Definition: http.h:117
Array of characters.
Definition: array.h:551
412 - no Range header for true Unless
Definition: http.h:206
virtual PString GetRealm(const PHTTPRequest &request) const
Get the realm or name space for the user authorisation name and password as required by the basic aut...
PHTTPServer()
Create a TCP/IP HTTP protocol socket channel.
virtual PString GetRealm(const PHTTPRequest &request) const
Get the realm or name space for the user authorisation name and password as required by the basic aut...
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
void EnableAuthorisation(const PString &realm)
Enable or disable access control using .access files.
virtual PString GetEntityBody()=0
virtual PBoolean Authorise(AuthObject &pdu) const
PString m_uri
Definition: http.h:335
500 - server has encountered an unexpected error
Definition: http.h:207
bool ReadContentBody(PMIMEInfo &replyMIME)
Read the body of the HTTP command, throwing it away.
static const PCaselessString & LocationTag()
PBoolean CheckAuthority(PHTTPServer &server, const PHTTPRequest &request, const PHTTPConnectionInfo &conInfo)
See if the resource is authorised given the mime info.
virtual PBoolean LoadData(PHTTPRequest &request, PCharArray &data)
Get a block of data that the resource contains.
PBoolean StartResponse(StatusCode code, PMIMEInfo &headers, long bodySize)
Write a command reply back to the client, and construct some of the outgoing MIME fields...
PSORTED_LIST(ChildList, Node)
PHTTPAuthority * GetAuthority() const
Get the current authority for the resource.
Definition: http.h:1272
This class describes the simplest authorisation mechanism for a Universal Resource Locator...
Definition: http.h:1055
PHTTPResource * resource
Definition: http.h:145
void ClearHitCount()
Definition: http.h:1292
static const PCaselessString & RefererTag()
PString password
Definition: http.h:1130
bool IsProxyConnection() const
Definition: http.h:683
This abstract class describes the authorisation mechanism for a Universal Resource Locator...
Definition: http.h:1002
This class defines an absolute time and date.
Definition: ptime.h:53
virtual PObject * Clone() const
Create a copy of the class on the heap.
virtual PBoolean OnPOST(const PURL &url, const PMIMEInfo &info, const PStringToString &data, const PHTTPConnectionInfo &conInfo)
Handle a POST command from a client.
static const PCaselessString & PragmaNoCacheTag()
static const PCaselessString & WWWAuthenticateTag()
virtual void SetUsername(const PString &user)
Definition: http.h:301
PFilePath realPath
Definition: http.h:1914
503 - server temporarily unable to service request
Definition: http.h:210
int ExecuteCommand(Commands cmd, const PURL &url, PMIMEInfo &outMIME, const PString &dataBody, PMIMEInfo &replyMime)
Send a command and wait for the response header (including MIME fields).
void StartWrite()
This function attempts to acquire the mutex for writing.
virtual PBoolean OnGETOrHEAD(PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PHTTPConnectionInfo &conInfo, PBoolean isGet)
common code for GET and HEAD commands
virtual PString LoadText(PHTTPRequest &request)
Get a block of text data (eg HTML) that the resource contains.
const PString & GetContentType() const
Get the current content type for the resource.
Definition: http.h:1264
Algorithm
Definition: http.h:390
void SetAuthority(const PHTTPAuthority &auth)
Set the current authority for the resource.
void StartRead()
This function attempts to acquire the mutex for reading.
const PMultiPartList & multipartFormInfo
multipart form information, if any
Definition: http.h:984
void SetDefaultMIMEInfo(PMIMEInfo &info, const PHTTPConnectionInfo &connectInfo)
Set the default mime info.
static const PCaselessString & ContentLengthTag()
static const PCaselessString & ProxyConnectionTag()
virtual Comparison Compare(const PObject &other) const
Compare the two objects and return their relative rank.
203 - not definitive entity header
Definition: http.h:184
205 - contents have been reset
Definition: http.h:186
PHTTP::Commands commandCode
Definition: http.h:719
virtual PString GetEntityBody()
bool GetHeader(const PURL &url, PMIMEInfo &outMIME, PMIMEInfo &replyMIME)
Get the header for the document specified by the URL.
virtual PBoolean CheckAuthority(PHTTPServer &server, const PHTTPRequest &request, const PHTTPConnectionInfo &conInfo)
See if the resource is authorised given the mime info.
Generate error if resource already exists.
Definition: http.h:68
bool GetDocument(const PURL &url, PMIMEInfo &outMIME, PMIMEInfo &replyMIME)
Start getting the document specified by the URL.
virtual PString GetServerName() const
Get the name of the server.
303 - see other URL
Definition: http.h:191
PHTTPFileRequest(const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPResource *resource, PHTTPServer &server)
This is a dictionary collection class of PString objects, keyed by another string.
Definition: pstring.h:2784
This class describes a full description for a file on the particular platform.
Definition: filepath.h:65
PBoolean allowDirectoryListing
Definition: http.h:1897
static const PCaselessString & SetCookieTag()
PBoolean isProxy
Definition: http.h:313
PString m_password
Definition: http.h:651
virtual Comparison Compare(const PObject &other) const
Compare the two objects and return their relative rank.
Comparison
Result of the comparison operation performed by the Compare() function.
Definition: object.h:1184
bool InternalReadContentBody(PMIMEInfo &replyMIME, PAbstractArray *body)
void AddUser(const PString &username, const PString &password)
Get the user name allocated to this simple authorisation.
PHTTPAuthority * authority
Authorisation method for the resource.
Definition: http.h:1513
PHTTPResource * FindResource(const PURL &url)
Locate the resource specified by the URL in the URL name space.
static const PCaselessString & ContentEncodingTag()
virtual PBoolean Validate(const PHTTPRequest &request, const PString &authInfo) const
Validate the user and password provided by the remote HTTP client for the realm specified by the clas...
This class is a variation of a string that ignores case.
Definition: pstring.h:1708
PString string
Definition: http.h:1602
PFile file
Definition: http.h:1725
PMIMEInfo & m_mime
Definition: http.h:336
PString m_userAgentName
Definition: http.h:648
PHTTPSpace & GetURLSpace()
Get the name space being used by the HTTP server socket.
Definition: http.h:793
void EndWrite() const
This function attempts to release the mutex for writing.
Definition: http.h:127
virtual void SetAuthRealm(const PString &r)
Definition: http.h:388
static const PCaselessString & ServerTag()
PBoolean AddResource(PHTTPResource *resource, AddOptions overwrite=ErrorOnExist)
Add a new resource to the URL space.
bool wasPersistent
Definition: http.h:724
virtual PObject * Clone() const
Create a copy of the class on the heap.
bool stale
Definition: http.h:407
Overwrite the existing resource at URL location.
Definition: http.h:69
void StartRead() const
This function attempts to acquire the mutex for reading.
Definition: http.h:112
static const PCaselessString & ProxyAuthorizationTag()
virtual PBoolean LoadHeaders(PHTTPRequest &request)
Get the headers for block of data (eg HTML) that the resource contains.
501 - server does not implement request
Definition: http.h:208
virtual PBoolean IsActive() const
Determine if the authorisation is to be applied.
PString entityBody
original entity body (POST only)
Definition: http.h:987
This object describes a HyperText Transport Protocol resource which is a single file.
Definition: http.h:1614
virtual PString GetAuthRealm() const
Definition: http.h:299
Node * parent
Definition: http.h:143
200 - request has succeeded
Definition: http.h:181
101 - upgrade allowed
Definition: http.h:180
int GetMajorVersion() const
Definition: http.h:684
PHTTPString(const PURL &url)
Contruct a new simple string resource for the HTTP space.
This object describes a HyperText Transport Protocol resource which is a string kept in memory...
Definition: http.h:1525
unsigned persistenceMaximum
Definition: http.h:731
PString fakeIndex
Definition: http.h:1913
PHTTPClientAuthentication * m_authentication
Definition: http.h:652
const PMIMEInfo & GetMIME() const
Definition: http.h:676
PString realm
Definition: http.h:1128
void StartWrite() const
This function attempts to acquire the mutex for writing.
Definition: http.h:122
virtual PBoolean GetExpirationDate(PTime &when)
Get a block of data (eg HTML) that the resource contains.
long GetEntityBodyLength() const
Definition: http.h:687
401 - request requires authentication
Definition: http.h:195
PHTTPDirRequest(const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPResource *resource, PHTTPServer &server)
This object describes a HyperText Transport Protocol resource.
Definition: http.h:1222
PHTTPSimpleAuth(const PString &realm, const PString &username, const PString &password)
PHTTPClientBasicAuthentication()
404 - resource cannot be found
Definition: http.h:198
void SetURLSpace(const PHTTPSpace &space)
Use a new URL name space for this HTTP socket.
virtual Comparison Compare(const PObject &other) const
Compare the two objects and return their relative rank.
PHTTPMultiSimpAuth(const PString &realm)
virtual void RemoveAll()
Remove all of the elements in the collection.
static const PCaselessString & ForwardedTag()
const PString & GetOpaque() const
Definition: http.h:396
virtual PBoolean LoadHeaders(PHTTPRequest &request)
Get the headers for block of data (eg HTML) that the resource contains.
This object describes a HyperText Transport Protocol resource which is a set of files in a directory...
Definition: http.h:1819
A TCP/IP socket for process/application layer high level protocols.
Definition: inetprot.h:62
This class contains a variable length array of arbitrary memory blocks.
Definition: array.h:67
PString GetAuthParam(const PString &auth, const char *name) const
302 - resource moved temporarily: location field has new URL
Definition: http.h:190
ChildList children
Definition: http.h:144
virtual PHTTPRequest * CreateRequest(const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPServer &socket)
Create a new request block for this type of resource.
long entityBodyLength
Definition: http.h:729
bool PutTextDocument(const PURL &url, const PString &document, const PString &contentType=PMIMEInfo::TextPlain())
Put the document specified by the URL.
BOOL PBoolean
Definition: object.h:102
virtual PBoolean LoadHeaders(PHTTPRequest &request)
Get the headers for block of data (eg HTML) that the resource contains.
Class to represent a directory in the operating system file system.
Definition: pdirect.h:182
const PString & GetCommandName() const
Definition: http.h:672
402 - reserved
Definition: http.h:196
bool PostData(const PURL &url, const PStringToString &data)
Post the "application/x-www-form-urlencoded" data specified to the URL.
PHTTPConnectionInfo & GetConnectionInfo()
Get the connection info for this connection.
Definition: http.h:949
PString AsHex(PMessageDigest5::Code &digest) const
static void DecodeBasicAuthority(const PString &authInfo, PString &username, PString &password)
Array of unsigned characters.
Definition: array.h:670
Node(const PString &name, Node *parentNode)
virtual PBoolean OnProxy(const PHTTPConnectionInfo &conInfo)
Handle a proxy command request from a client.
PString password
Definition: http.h:315
PHTTPClientDigestAuthentication()
This class implements an integer that can be atomically incremented and decremented in a thread-safe ...
Definition: critsec.h:171
405 - not allowed on this resource
Definition: http.h:199
410 - resource gone away
Definition: http.h:204
const PURL & url
Universal Resource Locator for document.
Definition: http.h:982
PTimeInterval GetPersistenceTimeout() const
Get the maximum time a persistent connection may persist.
Definition: http.h:691
virtual PBoolean OnGET(PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PHTTPConnectionInfo &conInfo)
Handle the GET command passed from the HTTP socket.
bool DecodeMultipartFormInfo()
Definition: http.h:717
virtual PBoolean OnUnknown(const PCaselessString &command, const PHTTPConnectionInfo &connectInfo)
Handle an unknown command.
virtual PBoolean Parse(const PString &auth, PBoolean proxy)=0
PINDEX contentSize
Size of the body of the resource data.
Definition: http.h:988
int minorVersion
Definition: http.h:727
PHTTPClient(const PString &userAgentName=PString::Empty())
Create a new HTTP client channel.
PIPSocket::Address localAddr
IP address of local interface for request.
Definition: http.h:990
const PString & GetString()
Get the string for this resource.
Definition: http.h:1592
A TCP/IP socket for the HyperText Transfer Protocol version 1.0.
Definition: http.h:436
const PURL & GetURL() const
Get the URL for this resource.
Definition: http.h:1257
PHTTPFile(const PString &filename)
Contruct a new simple file resource for the HTTP space.
static const PCaselessString & UserAgentTag()
PFACTORY_LOAD(PURL_HttpLoader)
static const PCaselessString & FromTag()
PURL baseURL
Base URL for the resource, may accept URLS with a longer hierarchy.
Definition: http.h:1511
204 - no new information
Definition: http.h:185
virtual PString LoadText(PHTTPRequest &request)
Get a block of text data (eg HTML) that the resource contains.
static const PCaselessString & MIMEVersionTag()
PHTTPClientAuthenticator(const PString &cmdName, const PString &uri, PMIMEInfo &mime, const PString &body)
virtual PBoolean Parse(const PString &auth, PBoolean proxy)
virtual PBoolean ProcessCommand()
Process commands, dispatching to the appropriate virtual function.
PBoolean IsCompatible(int major, int minor) const
void AllowDirectories(PBoolean enable=true)
Enable or disable directory listings when a default directory file does not exist.
void ResetMultipartFormInfo()
Definition: http.h:710
PHTTP()
Create a TCP/IP HTTP protocol channel.
bool m_persist
Definition: http.h:649
PHTTPSpace urlSpace
Definition: http.h:954
static const PCaselessString & ChunkedTag()
PString cnonce
Definition: http.h:408
PString authorisationRealm
Definition: http.h:1896
virtual PINDEX ParseResponse(const PString &line)
Parse a response line string into a response code and any extra info on the line. ...
bool AssureConnect(const PURL &url, PMIMEInfo &outMIME)
virtual ~AuthObject()
Definition: http.h:273
PIPSocket::Address origin
IP address of origin host for request.
Definition: http.h:989
PReadWriteMutex * mutex
Definition: http.h:132
void SetPersistenceTimeout(const PTimeInterval &t)
Set the maximum time a persistent connection may persist.
Definition: http.h:695
virtual PBoolean Validate(const PHTTPRequest &request, const PString &authInfo) const =0
Validate the user and password provided by the remote HTTP client for the realm specified by the clas...
void ClearAuthority()
Set the current authority for the resource to unrestricted.
305 - proxy redirect
Definition: http.h:193
PDirectory basePath
Definition: http.h:1895
PString opaque
Definition: http.h:403
PString m_method
Definition: http.h:334
The character string class.
Definition: pstring.h:108
PHTTPConnectionInfo connectInfo
Definition: http.h:955
PAtomicInteger nonceCount
Definition: http.h:409
static const PCaselessString & PragmaTag()
409 - resource conflict on action
Definition: http.h:203
static const PCaselessString & LastModifiedTag()
bool PutDocument(const PURL &url, PMIMEInfo &outMIME, PMIMEInfo &replyMIME)
Put the document specified by the URL.
static PString Empty()
Return an empty string.
PFilePath filePath
Definition: http.h:1709
WORD localPort
Port number of local server for request.
Definition: http.h:991
PTimeInterval persistenceTimeout
Definition: http.h:730
300 - requested resource available elsewehere
Definition: http.h:188
#define PCONTAINERINFO(cls, par)
Macro to declare funtions required in a container.
Definition: contain.h:343
411 - no Content-Length
Definition: http.h:205
virtual PString GetAuthRealm() const
Definition: http.h:387
virtual PBoolean OnPOST(PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PStringToString &data, const PHTTPConnectionInfo &conInfo)
Handle the POST command passed from the HTTP socket.
PHTTPResource(const PURL &url)
304 - document has not been modified
Definition: http.h:192
PString nonce
Definition: http.h:401
PBoolean FindAuthorisations(const PDirectory &dir, PString &realm, PStringToString &authorisations)
PHTTP::StatusCode code
Status code for OnError() reply.
Definition: http.h:985
virtual PString LoadText(PHTTPRequest &request)
Get a block of text data (eg HTML) that the resource contains.
Abstract class to embody the base functionality of a container.
Definition: contain.h:104
virtual PBoolean IsModifiedSince(const PTime &when)
Check to see if the resource has been modified since the date specified.
This class describes the simple authorisation mechanism for a Universal Resource Locator, a fixed realm, multiple usernames and passwords.
Definition: http.h:1140
bool isPersistent
Definition: http.h:723
static const PCaselessString & ContentTypeTag()
Definition: http.h:219
AddOptions
Definition: http.h:67
This class describes a name space that a Universal Resource Locator operates in.
Definition: http.h:58
virtual PBoolean LoadHeaders(PHTTPRequest &request)
Get the headers for block of data (eg HTML) that the resource contains.
void SetPersistent(bool persist=true)
Set persistent connection mode.
Definition: http.h:634
PHTTPTailFile(const PString &filename)
Contruct a new simple file resource for the HTTP space.
virtual PBoolean OnGET(const PURL &url, const PMIMEInfo &info, const PHTTPConnectionInfo &conInfo)
Handle a GET command from a client.
virtual PBoolean OnHEAD(PHTTPServer &server, const PURL &url, const PMIMEInfo &info, const PHTTPConnectionInfo &conInfo)
Handle the HEAD command passed from the HTTP socket.
bool IsPersistent() const
Definition: http.h:681
This class describes a HyperText markup Language string as used by the World Wide Web and the PURL an...
Definition: html.h:49
PMIMEInfo mimeInfo
Definition: http.h:722
virtual PBoolean OnPOSTData(PHTTPRequest &request, const PStringToString &data)
Send the data associated with a POST command.
PHTTPSpace()
Constructor for HTTP URL Name Space.
Template class for generic factories of an abstract class.
Definition: pfactory.h:144
A class describing an IP address.
Definition: ipsock.h:75
PFactory< PHTTPClientAuthentication > PHTTPClientAuthenticationFactory
Definition: http.h:318
bool WriteCommand(Commands cmd, const PString &url, PMIMEInfo &outMIME, const PString &dataBody)
Write a HTTP command to server.
PMultiPartList m_multipartFormInfo
Definition: http.h:732
virtual PHTTPRequest * CreateRequest(const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPServer &socket)
Create a new request block for this type of resource.
bool qopAuthInt
Definition: http.h:406
static const PCaselessString & KeepAliveTag()
void EndWrite()
This function attempts to release the mutex for writing.
int GetMinorVersion() const
Definition: http.h:685
bool GetTextDocument(const PURL &url, PString &document, const PString &contentType=PString::Empty())
Get the document specified by the URL.
virtual PBoolean IsActive() const
Determine if the authirisation is to be applied.
PString m_body
Definition: http.h:337
PHTTPServer & server
Server channel that request initiated on.
Definition: http.h:981
virtual PBoolean OnError(StatusCode code, const PCaselessString &extra, const PHTTPConnectionInfo &connectInfo)
Write an error response for the specified code.
DWORD GetHitCount() const
Get the current hit count for the resource.
Definition: http.h:1290
403 - request is refused due to unsufficient authorisation
Definition: http.h:197
virtual PHTTPRequest * CreateRequest(const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPServer &socket)
Create a new request block for this type of resource.
const PString & GetUserName() const
Get the user name allocated to this simple authorisation.
Definition: http.h:1117
StatusCode
Definition: http.h:178
virtual PBoolean OnGETData(PHTTPServer &server, const PURL &url, const PHTTPConnectionInfo &connectInfo, PHTTPRequest &request)
Send the data associated with a GET command.
static const PCaselessString & ConnectionTag()
PString m_userName
Definition: http.h:650
static const PCaselessString & ProxyAuthenticateTag()
408 - server timeout on request
Definition: http.h:202
406 - encoding not acceptable
Definition: http.h:200
virtual PBoolean LoadData(PHTTPRequest &request, PCharArray &data)
Get a block of data that the resource contains.
PHTTPRequest(const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPResource *resource, PHTTPServer &server)
This class defines a thread synchronisation object.
Definition: syncthrd.h:251
virtual PBoolean LoadData(PHTTPRequest &request, PCharArray &data)
Get a block of data that the resource contains.
PString contentType
MIME content type for the resource.
Definition: http.h:1512
PBoolean DelResource(const PURL &url)
Delete an existing resource to the URL space.
static const PCaselessString & IfModifiedSinceTag()
const PMultiPartList & GetMultipartFormInfo() const
Definition: http.h:707
virtual PBoolean ReadResponse()
Read a response code followed by a text string describing the response to a command.
202 - request accepted, but not yet completed
Definition: http.h:183
const PURL & GetURL() const
Definition: http.h:674
bool isProxyConnection
Definition: http.h:725
static PHTTPClientAuthentication * ParseAuthenticationRequired(bool isProxy, const PMIMEInfo &line, PString &errorMsg)
virtual void SendData(PHTTPRequest &request)
Send the data associated with a command.
virtual PString GetMethod()=0
PURL url
Definition: http.h:721
bool qopAuth
Definition: http.h:405
502 - error whilst acting as gateway
Definition: http.h:209
unsigned GetPersistenceMaximumTransations() const
Get the maximum number of transations (GET/POST etc) for persistent connection.
Definition: http.h:700
PString GetEntityBody() const
Definition: http.h:713
virtual PBoolean Authorise(AuthObject &pdu) const
unsigned transactionCount
Definition: http.h:956
PTimeInterval nextTimeout
Definition: http.h:957
virtual PBoolean Authorise(AuthObject &pdu) const =0
static const PCaselessString & DateTag()
virtual PString GetURI()=0
PString authRealm
Definition: http.h:400
407 - must authenticate with proxy first
Definition: http.h:201
virtual void OnLoadedText(PHTTPRequest &request, PString &text)
This is called after the text has been loaded and may be used to customise or otherwise mangle a load...
PString username
Definition: http.h:314
PMIMEInfo outMIME
MIME information used in reply.
Definition: http.h:986
static const PCaselessString & TextPlain()
A TCP/IP socket for the HyperText Transfer Protocol version 1.0.
Definition: http.h:762
A common base class for TCP/IP socket for the HyperText Transfer Protocol version 1...
Definition: http.h:162
This object describes a HyperText Transport Protocol request.
Definition: http.h:968
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
This object describes the connectiono associated with a HyperText Transport Protocol request...
Definition: http.h:665
206 - partial GET succeeded
Definition: http.h:187
PString realm
Definition: http.h:1211
Commands
Definition: http.h:168
This class describes a Universal Resource Locator.
Definition: url.h:54
100 - Continue
Definition: http.h:179
static const PCaselessString & AllowTag()
virtual PString GetUsername() const
Definition: http.h:297
int majorVersion
Definition: http.h:726
virtual PString GetRealm(const PHTTPRequest &request) const =0
Get the realm or name space for the user authorisation name and password as required by the basic aut...
400 - request malformed or not understood
Definition: http.h:194
PHTTPResource * m_resource
HTTP resource found for the request.
Definition: http.h:992
Algorithm GetAlgorithm() const
Definition: http.h:395
virtual PString LoadText(PHTTPRequest &request)
Get a block of text data (eg HTML) that the resource contains.
PHTTP::Commands GetCommandCode() const
Definition: http.h:671
bool GetStale() const
Definition: http.h:397
Algorithm algorithm
Definition: http.h:402
PHTTPDirectory(const PURL &url, const PDirectory &dir)
virtual PMIMEInfo & GetMIME()
PHTTPClientAuthentication()
virtual PString ReadEntityBody()
Read the entity body associated with a HTTP request, and close the socket if not a persistent connect...
This object describes a HyperText Transport Protocol resource which is a single file.
Definition: http.h:1740
PStringToString users
Definition: http.h:1212
void SetAuthenticationInfo(const PString &userName, const PString &password)
Set authentication paramaters to be use for retreiving documents.
201 - new resource created: entity body contains URL
Definition: http.h:182
const PMIMEInfo & inMIME
Extra MIME information in command.
Definition: http.h:983
virtual void SetAuthRealm(const PString &)
Definition: http.h:303
virtual PBoolean Validate(const PHTTPRequest &request, const PString &authInfo) const
Validate the user and password provided by the remote HTTP client for the realm specified by the clas...
virtual PString GetMethod()
virtual PBoolean LoadHeaders(PHTTPRequest &request)=0
Get the headers for block of data (eg HTML) that the resource contains.
504 - timeout whilst talking to gateway
Definition: http.h:211