Methods Summary | ||
---|---|---|
public
|
#
__construct( array $options = array ( ), int $max_redirect = 3 )
Start the curl object
- allow for user override values
|
|
public
|
#
get_url_data( string $url , array $post_data = array ( ) )
Main calling function,
- will request the page data from a given $url
- optionally will post data to the page form if post data is supplied
- passed arrays will be converted to a post string joined with &'s
- calls set_options to set the curl opts array values based on the defaults and user input
|
|
public
|
||
public
|
#
result_raw( string $response_number = '' )
Will return all results from all loops (redirects)
- Can be called as ->result_raw(x) where x is a specific loop results.
- Call as ->result_raw() for everything.
|
Properties Summary | ||
---|---|---|
public
int
|
$max_redirect
|
#
NULL
|
public
array
|
$user_options
|
#
array (
)
|
public
string
|
$post_data
|
#
NULL
|
public
array
|
$options
|
#
NULL
|
public
int
|
$current_redirect
|
#
NULL
|
public
array
|
$response
|
#
array (
)
|
public
string
|
$headers
|
#
NULL
|