PHP And CURL
<?
$cURL = curl_init();
curl_setopt($cURL, CURLOPT_URL,”http://www.hiddenbrains.com”);
curl_setopt($cURL, CURLOPT_POST, 1);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL, CURLOPT_POSTFIELDS, “foo=1&bar=2″);
$strPage = curl_exec($cURL);
curl_close($cURL);
// Output page
die($strPage);
//echo $strPage;
?>
Advertisement
No comments yet.
Leave a Reply
-
Recent
- Photolisting Logic In PHP
- IMP Javascripts Functions
- PHP And CURL
- Javascripts : get mouse position
- List Of good Site Name
- Multi Select Box to MySql DB Table
- php ini settings
- PHP – Make URLs clickable (And short down)
- List files in dir
- Tiny PHP Uploader
- Multi Select Box to MySql DB Table
- List files in dir
-
Links
-
Archives
- December 2007 (1)
- August 2007 (12)
-
Categories
-
RSS
Entries RSS
Comments RSS