-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofil.php
58 lines (27 loc) · 1.45 KB
/
profil.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/*session_start();
$msisdn = $_SESSION['msisdn'];
$sessionId = $_SESSION['sessionId'];
$ch = curl_init();
$url = "https://my.xl.co.id/pre/GetRemainingAllowanceDiameterWebInfoRq";
$header =array('Host: my.xl.co.id',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0',
'Accept: application/json, text/plain,
'Accept-Language: en-US,en;q=0.5',
'Accept-Encoding: gzip, deflate, br',
'Referer: http://my.xl.co.id/pre/index1.html',
'Content-Type: application/json'
);
$payload = array("Header"=>null,"Body"=>["Header"=>["ReqID"=>"20190705195908","IMEI"=>1695480090],"GetRemainingAllowanceDiameterWebInfoRq"=>["msisdn"=>"$msisdn","channel"=>"WebInfo","service_type"=>"UMBALL"]],"sessionId"=>"$sessionId","serviceId"=>"","packageAmt"=>"","reloadType"=>"","reloadAmt"=>"","packageRegUnreg"=>"","platform"=>"04","appVersion"=>"3.8.2","sourceName"=>"Firefox","sourceVersion"=>"","msisdn_Type"=>"P","screenName"=>"home.dashboard","mbb_category"=>"");
$body = json_encode($payload);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
$result = curl_exec($ch);
print_r($result);
*/
$params = json_encode($test);
echo $params->SOAP-ENV:Envelope;
?>