note 107395 deleted from function.curl-setopt by tularis
| From: | tularis@php.net | Date: | Wed, 08 Feb 2012 17:31:08 +0000 |
| Subject: | note 107395 deleted from function.curl-setopt by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185923@lists.php.net to get a copy of this message | ||
Note Submitter: jaymore at ppp dot com
----
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.