Update Client-Protocol version

thanks to goodmorning @ MDL
This commit is contained in:
abbodi1406 2021-10-08 20:57:13 +03:00 committed by GitHub
parent 852a5d7d85
commit 91da4e492b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ function sendWuPostRequest($url, $postData) {
curl_setopt($req, CURLOPT_POSTFIELDS, $postData); curl_setopt($req, CURLOPT_POSTFIELDS, $postData);
curl_setopt($req, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($req, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($req, CURLOPT_HTTPHEADER, array( curl_setopt($req, CURLOPT_HTTPHEADER, array(
'User-Agent: Windows-Update-Agent/10.0.10011.16384 Client-Protocol/1.70', 'User-Agent: Windows-Update-Agent/10.0.10011.16384 Client-Protocol/2.50',
'Content-Type: application/soap+xml; charset=utf-8', 'Content-Type: application/soap+xml; charset=utf-8',
)); ));