How to retrieve filesize of a remote (http) file?
BlitzMax Forums/BlitzMax Programming/How to retrieve filesize of a remote (http) file?
| ||
I found some PureBasic code, which I converted perfectly into BlitzMax, but unfortunately, I then discovered that the Purebasic code doesn't work. Well maybe it works on some machines, but it doesn't work on mine. So I'm now looking for alternative methods. My not-entirely-working method was to use HttpSendRequest and HttpQueryInfo from WinInet but HttpSendRequest errors with an Error Code 12152 which I cannot resolve. |
| ||
havent tried it yet, but i found this while searching for functions for one of my projects: HTTP FileSize() and more |
| ||
Ooh perfect. Thanks for that. I was only looking in the codearchive yesterday and I never noticed. Works perfectly too. |
| ||
np :) thx for letting me know it works! hopefully ill be getting to use it the next few weeks. a big thx to MelvinTheMysticMonk for throwing it out there :) |