This file contains 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
$.ajax({ | |
type: "GET", | |
url: "/ajax.php", | |
data: "token=" + token + "&" + | |
"u_login=" + login + "&" + | |
"u_password=" + password, | |
success: function(req){ | |
console.log(req); | |
} | |
}); |
This file contains 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_once ("http_request.php"); | |
$data = $_GET; | |
print_r( http_request(array( | |
'url'=>"https://pddimp.yandex.ru/reg_user_token.xml?". | |
"token=" . $data['token'] . "&" . | |
"u_login=" . $data['u_login'] . "&" . | |
"u_password=" . $data['u_password'] |
This file contains 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 | |
/** | |
* HTTP Request v1.0 by Denik | |
* Parametres: | |
* - (string) or (array)[url] - site url | |
* - [method] - POST | GET | |
* - [data] - array of post data | |
* - [port] - connection port | |
* - [timeout] - timeout connection | |
* - [redirect] - true, allow redirects in headers |