base class for servers
| package |
jelix |
|---|
__construct(string $documentRoot = null, string $scriptName = null)
stringthe path of the document root of the site
stringthe PHP script name: path in the url from the domain name to the script itself
setDefaultServer()
setHttpRequest(string $url, string $method = 'get', string|array $body = '', $bodyContentType = 'application/x-www-form-urlencoded')
string
stringthe http method (get, post...)
string|arraythe content of the request for http method that need it it can be an array
documentRoot :
scriptName :