PHP Class Networkfsockopen

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 ( )
getAllResponseHeaders ( ) : string
getResponseHeader ( $bstrHeader ) : string
open ( $bstrMethod, $bstrUrl, boolean $varAsync = true, string $bstrUser = '', string $bstrPassword = '' ) : boolean
send ( string $varBody = '' ) : mixed | void
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 )
gzdecode ( $string ) : string
http_chunked_decode ( $chunk ) : null | string
is_hex ( string $hex ) : boolean determine if a string can represent a number in hexadecimal
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

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 = '' ) : mixed | void
$varBody string
return mixed | void

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