consoleninja Posted February 23, 2024 Posted February 23, 2024 #include <MsgBoxConstants.au3> Example() Func Example() ; Retrieve the size of the file. The option of 'get the file from the local cache' has been selected. Local $iSize = InetGetSize("https://pc.ps5.update.playstation.net/update/ps5/official/tJMRE80IbXnE9YuG0jzTXgKEjIMoabr6/image/2024_0118/sys_c80ae46b7aa2e7bb5d4bc46bab95479bf4da11f3ad5c6ace50b239cf243861a2/PS5UPDATE.PUP") MsgBox($MB_SYSTEMMODAL, "", "The size of the file: " & $iSize) EndFunc ;==>Example this gives me 0 for windows 7 any ideas? works fine on Windows 11
rudi Posted February 23, 2024 Posted February 23, 2024 Your code works fine from my Windows 7 machine: Earth is flat, pigs can fly, and Nuclear Power is SAFE!
Zedna Posted February 23, 2024 Posted February 23, 2024 (edited) Just for info. I realized in my private AU3 projects that on Win7 doesn't work HTTP communication with some (HTTPS) web servers using (previously non-problematic) COM object "winhttp.winhttprequest.5.1". On Win7 it works again after changing/replacing to compatible COM object "Msxml2.XMLHTTP.6.0". Change must be done just in ObjCreate(), other properties and methods of that COM object are the same/compatible. Reason why it now doesn't work is due to newer version of used TLS encryption (used by some web servers) which is in some cases implicitly disabled on Win7 and can be enabled by registry hacks or by installing Win KB fixes. In some cases even these hacks doesn't help on some stations as far as I know ... Edited February 23, 2024 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
consoleninja Posted February 23, 2024 Author Posted February 23, 2024 5 hours ago, Zedna said: Just for info. I realized in my private AU3 projects that on Win7 doesn't work HTTP communication with some (HTTPS) web servers using (previously non-problematic) COM object "winhttp.winhttprequest.5.1". On Win7 it works again after changing/replacing to compatible COM object "Msxml2.XMLHTTP.6.0". Change must be done just in ObjCreate(), other properties and methods of that COM object are the same/compatible. Reason why it now doesn't work is due to newer version of used TLS encryption (used by some web servers) which is in some cases implicitly disabled on Win7 and can be enabled by registry hacks or by installing Win KB fixes. In some cases even these hacks doesn't help on some stations as far as I know ... Does this mean it wont work on windows 7 unless is http:// not https:// If does can you provide an example for me please. Thanks, Keith
Confuzzled Posted May 23, 2024 Posted May 23, 2024 What is the return code for the non-working InetGetSize call? Have you considered testing for a non-zero one each and every time you call it?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now