Class: HTTP

Source Location: /HTTP.class.php

Class Overview [line 18]


Hlavní třída HTTP

Author(s):

Version:

  • 1.0

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

Hlavní třída HTTP

Tags:

[ 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 ]


Class Methods


Documentation generated on Thu, 12 Apr 2007 20:30:26 +0200 by phpDocumentor 1.3.0RC3