Jump to content

InetGetSize Windows 7 0 Bytes


Recommended Posts

#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
 

Link to comment
Share on other sites

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 by Zedna
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...