note 102051 added to book.curl

From: Date: Tue, 25 Jan 2011 10:21:38 +0000
Subject: note 102051 added to book.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-176278@lists.php.net to get a copy of this message
a small example for getting information by using curl // initialise curl $var = curl_init(); // set URL $url="http://localhost/dataservice.php"; // set the GET options curl_setopt($var, CURLOPT_URL, $url); curl_setopt($var, CURLOPT_RETURNTRANSFER, true); curl_setopt($var, CURLOPT_HTTPGET, true); // execute response $response = curl_exec($var); // close curl curl_close($var); ---- Server IP: 85.214.154.209 Probable Submitter: 109.192.165.246 ---- Manual Page -- http://www.php.net/manual/en/book.curl.php Edit -- https://master.php.net/note/edit/102051 Del: integrated -- https://master.php.net/note/delete/102051/integrated Del: useless -- https://master.php.net/note/delete/102051/useless Del: bad code -- https://master.php.net/note/delete/102051/bad+code Del: spam -- https://master.php.net/note/delete/102051/spam Del: non-english -- https://master.php.net/note/delete/102051/non-english Del: in docs -- https://master.php.net/note/delete/102051/in+docs Del: other reasons-- https://master.php.net/note/delete/102051 Reject -- https://master.php.net/note/reject/102051 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176278) next »