note 102054 added to function.curl-init

From: Date: Tue, 25 Jan 2011 10:52:32 +0000
Subject: note 102054 added to function.curl-init
Groups: php.notes 
Request: Send a blank email to php-notes+get-176281@lists.php.net to get a copy of this message
a small example for getting information by initialising/using curl // initialsie curl $var = curl_init(); //set URL $url = "http://localhost/service.php"; // set 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/function.curl-init.php Edit -- https://master.php.net/note/edit/102054 Del: integrated -- https://master.php.net/note/delete/102054/integrated Del: useless -- https://master.php.net/note/delete/102054/useless Del: bad code -- https://master.php.net/note/delete/102054/bad+code Del: spam -- https://master.php.net/note/delete/102054/spam Del: non-english -- https://master.php.net/note/delete/102054/non-english Del: in docs -- https://master.php.net/note/delete/102054/in+docs Del: other reasons-- https://master.php.net/note/delete/102054 Reject -- https://master.php.net/note/reject/102054 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176281) next »