forked from uup-dump/api
Rewrite WU requests and cookie handling
This commit is contained in:
12
get.php
12
get.php
@ -395,8 +395,16 @@ function uupGetOnlineFiles($updateId, $rev, $info, $cacheRequests, $type) {
|
||||
} else {
|
||||
$fetchTime = time();
|
||||
consoleLogger('Fetching information from the server...');
|
||||
$postData = composeFileGetRequest($updateId, uupDevice(), $info, $rev, $type);
|
||||
$out = sendWuPostRequest('https://fe3cr.delivery.mp.microsoft.com/ClientWebService/client.asmx/secured', $postData);
|
||||
|
||||
$composerArgs = [$updateId, $info, $rev, $type];
|
||||
$out = sendWuPostRequestHelper('clientSecured', 'composeFileGetRequest', $composerArgs);
|
||||
|
||||
if($out['error'] != 200) {
|
||||
consoleLogger('The request has failed');
|
||||
return array('error' => 'WU_REQUEST_FAILED');
|
||||
}
|
||||
|
||||
$out = $out['out'];
|
||||
consoleLogger('Information has been successfully fetched.');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user