cookies array ready for the next request // Note: This currently ignores the cookie path (and time) completely. Time is not important, // but path could possibly lead to security problems. var $persist_referers = true; // For each request, sends path of last request as referer var $debug = false; var $handle_redire..
HttpClient Examples HttpClient Home | Download HttpClient (txt) | HttpClient Manual | HttpClient Demo Grabbing an HTML page (static method)$pageContents = HttpClient::quickGet('http://example.com/'); Posting a form and grabbing the response (static method)$pageContents = HttpClient::quickPost('http://example.com/someForm', array( 'name' => 'Some Name', 'email' => 'email@example.com' )); The stat..
This demo (which may take a few seconds to load) attempts to retrieves the front page of Amazon.com and reports its size in bytes. Debug mode is switched on to show what the script is doing. This demonstrates the script automatically following redirections and maintaining cookies and referrers between sessions.$client = new HttpClient('www.amazon.com'); $client->setDebug(true); if (!$client->get..
Only methods that are intended to be called from outside the script are described. For details of internal methods, Use The Source :) HttpClient($host, $port = 80) Constructor. Takes the web server host (for example, 'scripts.incutio.com') and an optional port. bool get($path, $data = false) Executes a GET request for the specified path. If $data is specified, appends it to a query string as par..
- Total
- Today
- Yesterday