[ Index ] |
|
Code source de DokuWiki 2006-11-06 |
[Code source] [Imprimer] [Statistiques]
HTTP Client
Author: | Andreas Goetz <cpuidle@gmx.de> |
License: | GPL 2 (http://www.gnu.org/licenses/gpl.html) |
Poids: | 435 lignes (14 kb) |
Inclus ou requis: | 3 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
DokuHTTPClient:: (1 méthode):
DokuHTTPClient()
HTTPClient:: (9 méthodes):
HTTPClient()
get()
post()
sendRequest()
_debug()
_parseHeaders()
_buildHeaders()
_getCookies()
_postEncode()
Classe: DokuHTTPClient - X-Ref
Adds DokuWiki specific configs to the HTTP clientDokuHTTPClient() X-Ref |
Constructor. author: Andreas Gohr <andi@splitbrain.org> |
Classe: HTTPClient - X-Ref
This class implements a basic HTTP clientHTTPClient() X-Ref |
Constructor. author: Andreas Gohr <andi@splitbrain.org> |
get($url,$sloppy304=false) X-Ref |
Simple function to do a GET request Returns the wanted page or false on an error; author: Andreas Gohr <andi@splitbrain.org> param: string $url The URL to fetch param: bool $sloppy304 Return body on 304 not modified |
post($url,$data) X-Ref |
Simple function to do a POST request Returns the resulting page or false on an error; author: Andreas Gohr <andi@splitbrain.org> |
sendRequest($url,$data=array() X-Ref |
Do an HTTP request author: Andreas Goetz <cpuidle@gmx.de> author: Andreas Gohr <andi@splitbrain.org> |
_debug($info,$var) X-Ref |
print debug info author: Andreas Gohr <andi@splitbrain.org> |
_parseHeaders($string) X-Ref |
convert given header string to Header array All Keys are lowercased. author: Andreas Gohr <andi@splitbrain.org> |
_buildHeaders($headers) X-Ref |
convert given header array to header string author: Andreas Gohr <andi@splitbrain.org> |
_getCookies() X-Ref |
get cookies as http header string author: Andreas Goetz <cpuidle@gmx.de> |
_postEncode($data) X-Ref |
Encode data for posting author: Andreas Gohr <andi@splitbrain.org> |
Généré le : Tue Apr 3 20:47:31 2007 | par Balluche grâce à PHPXref 0.7 |