PHP Class Networkfile_get_contents

Inheritance: implements iNetwork
Afficher le fichier Open project: zblogcn/zblogphp

Méthodes publiques

Méthode Description
__get ( $property_name ) : mixed
__set ( $property_name, $value )
abort ( )
addBinary ( string $name, string $entity, $filename = null, $mime = '' ) : mixed
addText ( string $name, string $entity ) : mixed
enableGzip ( ) 启用Gzip
getAllResponseHeaders ( ) : string
getResponseHeader ( $bstrHeader ) : string
open ( $bstrMethod, $bstrUrl, boolean $varAsync = true, string $bstrUser = '', string $bstrPassword = '' ) : boolean
send ( string $varBody = '' )
setMaxRedirs ( integer $n )
setRequestHeader ( $bstrHeader, $bstrValue, boolean $append = false ) : boolean
setTimeOuts ( $resolveTimeout, $connectTimeout, $sendTimeout, $receiveTimeout )

Private Methods

Méthode Description
__buildBoundary ( ) Build Boundary
__buildPostData ( ) : string
add_postdata ( $bstrItem, $bstrValue )
reinit ( )

Method Details

__get() public méthode

public __get ( $property_name ) : mixed
$property_name
Résultat mixed

__set() public méthode

public __set ( $property_name, $value )
$property_name
$value

abort() public méthode

public abort ( )

addBinary() public méthode

public addBinary ( string $name, string $entity, $filename = null, $mime = '' ) : mixed
$name string
$entity string
Résultat mixed

addText() public méthode

public addText ( string $name, string $entity ) : mixed
$name string
$entity string
Résultat mixed

enableGzip() public méthode

启用Gzip
public enableGzip ( )

getAllResponseHeaders() public méthode

public getAllResponseHeaders ( ) : string
Résultat string

getResponseHeader() public méthode

public getResponseHeader ( $bstrHeader ) : string
$bstrHeader
Résultat string

open() public méthode

public open ( $bstrMethod, $bstrUrl, boolean $varAsync = true, string $bstrUser = '', string $bstrPassword = '' ) : boolean
$bstrMethod
$bstrUrl
$varAsync boolean
$bstrUser string
$bstrPassword string
Résultat boolean

send() public méthode

public send ( string $varBody = '' )
$varBody string

setMaxRedirs() public méthode

public setMaxRedirs ( integer $n )
$n integer

setRequestHeader() public méthode

public setRequestHeader ( $bstrHeader, $bstrValue, boolean $append = false ) : boolean
$bstrHeader
$bstrValue
$append boolean
Résultat boolean

setTimeOuts() public méthode

public setTimeOuts ( $resolveTimeout, $connectTimeout, $sendTimeout, $receiveTimeout )
$resolveTimeout
$connectTimeout
$sendTimeout
$receiveTimeout