PHP Class Networkfile_get_contents

Inheritance: implements iNetwork
Mostra file Open project: zblogcn/zblogphp

Public Methods

Method 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

Method Description
__buildBoundary ( ) Build Boundary
__buildPostData ( ) : string
add_postdata ( $bstrItem, $bstrValue )
reinit ( )

Method Details

__get() public method

public __get ( $property_name ) : mixed
$property_name
return mixed

__set() public method

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

abort() public method

public abort ( )

addBinary() public method

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

addText() public method

public addText ( string $name, string $entity ) : mixed
$name string
$entity string
return mixed

enableGzip() public method

启用Gzip
public enableGzip ( )

getAllResponseHeaders() public method

public getAllResponseHeaders ( ) : string
return string

getResponseHeader() public method

public getResponseHeader ( $bstrHeader ) : string
$bstrHeader
return string

open() public method

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

send() public method

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

setMaxRedirs() public method

public setMaxRedirs ( integer $n )
$n integer

setRequestHeader() public method

public setRequestHeader ( $bstrHeader, $bstrValue, boolean $append = false ) : boolean
$bstrHeader
$bstrValue
$append boolean
return boolean

setTimeOuts() public method

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