Created
October 23, 2009 09:42
-
-
Save legendar/216779 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* получаем HTML по ссылке */ | |
include('softenCurl.php'); | |
$curlObject = new softenCurl(); | |
$contents = $curlObject->get('http://google.com'); | |
// в $contents будет HTML-код страницы | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* получаем HTML по ссылке с отправкой формы */ | |
include('softenCurl.php'); | |
$curlObject = new softenCurl(); | |
$contents = $curlObject->sendForm('http://google.com', array( | |
'id' => 123, | |
'name' => 'xxx', | |
)); | |
// в $contents будет HTML-код страницы | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* отправляем форму по ссылке */ | |
include('softenCurl.php'); | |
$curlObject = new softenCurl(); | |
$curlObject->sendForm('http://google.com', array( | |
'id' => 123, | |
'name' => 'xxx', | |
)); | |
// отправляет POST-методом | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment