#include <_HttpRequest.au3>
Local $php = ''
$php &= '<?php' & @CRLF
$php &= 'if($_GET) $_POST = $_GET;'
$php &= 'function sign_creator(&$data){'
$php &= ' $sig = "";'
$php &= ' foreach($data as $key => $value){$sig .= "$key=$value";}'
$php &= ' $sig .= ''c1e620fa708a1d5696fb991c1bde5662'';'
$php &= ' $sig = md5($sig);'
$php &= ' return $data[''sig''] = $sig;'
$php &= ' }'
$php &= '$data = array('
$php &= ' "api_key" => "3e7c78e35a76a9299309885393b02d97",'
$php &= ' "email" => "abc",'
$php &= ' "format" => "JSON",'
$php &= ' "locale" => "vi_vn",'
$php &= ' "method" => "auth.login",'
$php &= ' "password" => "123",'
$php &= ' "return_ssl_resources" => "0",'
$php &= ' "v" => "1.0"'
$php &= ' );'
$php &= 'sign_creator($data);'
$php &= '$KetQua = http_build_query($data);'
MsgBox(4096, 'Kết quả', _PHP_Execute($php, 'KetQua'))
|