Table of Contents |
---|
$t→fetch()
Given a URL and post data, the fetch function makes a HTTP request and sets $t->result to be the resulting source code.
...
Return Values | |
---|---|
| A String. Returns the last requested source into $t->result |
...
$t->submitForm( )
Often known as a "PassThru"... On occasions when you are retrieving a page source into an Interaction you may require authorisation from a login form.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
$t->fetch("[http://support.blinkmobile.com.au/");] $t->submitForm( 0, array( 'username'=>'YourUserName', 'passwd'=>'YourPassword' ) ); return $t->result; // Page source returned here for additional processing |
$t→fetch_info[]
Provides access to the cURL info about the most recent $t->fetch()
that was performed. See http://php.net/manual/en/function.curl-getinfo.php
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
$t->fetch('http://www.google.com');echo $t->fetch_info['http_code']; // returns '200' |
Using DOMDocument To Display For Fetch Results
...