Inherited Variables
Inherited Constants
Inherited Methods
Class Details
Hlavní třída HTTP
Tags:
- version - 1.0
- author - Vojtěch Schlesinger <pif@broskev.cz>
[ Top ]
Class Variables
$http_version = HTTP_V11
[line 46]
Verze HTTP protokolu, zadána konstantou, buď HTTP_V10, nebo HTTP_V11
Tags:
- access - public
Type: string
Overrides:
[ Top ]
$port = 80
[line 39]
port dotazu
Tags:
- access - public
Type: int
Overrides:
[ Top ]
$request_type = 'get'
[line 25]
Typ požadavku
Tags:
- access - public
Type: string
Overrides:
[ Top ]
$show_body = true
[line 53]
Zda se má zobrazit i tělo odpovědi
Tags:
- access - public
Type: boolean
Overrides:
[ Top ]
$user_agent = USER_AGENT
[line 32]
Hlavička user-agent
Tags:
- access - public
Type: string
Overrides:
[ Top ]
Class Methods
__construct
HTTP __construct(
)
[line 63]
Tags:
- access - public
Parameters:
[ Top ]
doRequest
string doRequest(
string
$url)
[line 98]
Provede samotný dotaz na zadanou adresu podle nastavených parametrů
Tags:
- return - Vrátí tělo odpovědi
- access - public
Parameters:
- string $url - adresa na kterou se má poslat požadavek
[ Top ]
getDebugString
string getDebugString(
)
[line 149]
Vrátí debug string
Tags:
- access - public
Parameters:
[ Top ]
getHost
string getHost(
string
$url)
[line 86]
Zjistí čistě hosta (např. seznam.cz) z URL (např. http://seznam.cz/xy)
Tags:
- return - URL adresy
- static -
- access - public
Parameters:
- string $url - adresa začínající na http
[ Top ]
getResponseBody
string getResponseBody(
)
[line 140]
Vrátí tělo odpovědi
Tags:
- access - public
Parameters:
[ Top ]
getURI
string getURI(
string
$url)
[line 73]
Zjistí čistě URI (např. /xy) z URL (např. http://seznam.cz/xy)
Tags:
- return - URI adresy
- static -
- access - public
Parameters:
- string $url - adresa začínající na http
[ Top ]