Used for fetching remote files and reading local files

Supports HTTP 1.0 via cURL or fsockopen, with spotty HTTP 1.1 support

This class can be overloaded with \SimplePie::set_file_class()

package SimplePie
subpackage HTTP
todo Move to properly supporting RFC2616 (HTTP/1.1)

 Methods

__construct()

__construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false

Parameters

$url

$timeout

$redirects

$headers

$useragent

$force_fsockopen

 Properties

 

$body

$body 

Default

 

$error

$error 

Default

 

$headers

$headers 

Default

array()
 

$method

$method 

Default

SIMPLEPIE_FILE_SOURCE_NONE
 

$redirects

$redirects 

Default

0
 

$status_code

$status_code 

Default

 

$success

$success 

Default

true
 

$url

$url 

Default

 

$useragent

$useragent 

Default