note 107395 added to function.curl-setopt

From: Date: Mon, 06 Feb 2012 15:29:17 +0000
Subject: note 107395 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-185874@lists.php.net to get a copy of this message
If you want to acces an AJAX server side page in PHH, by using cURL, you can use the following PHP code <?php curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-Requested-With: XMLHttpRequest', 'X-Prototype-Version: 1.7')); ?> before calling the curl_exec() function. ---- Server IP: 89.31.146.176 Probable Submitter: 194.250.98.243 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/107395 Del: integrated -- https://master.php.net/note/delete/107395/integrated Del: useless -- https://master.php.net/note/delete/107395/useless Del: bad code -- https://master.php.net/note/delete/107395/bad+code Del: spam -- https://master.php.net/note/delete/107395/spam Del: non-english -- https://master.php.net/note/delete/107395/non-english Del: in docs -- https://master.php.net/note/delete/107395/in+docs Del: other reasons-- https://master.php.net/note/delete/107395 Reject -- https://master.php.net/note/reject/107395 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185874) next »