Hi all!
I've got a script that should download a .zip file approx. 150Mb long from an URL. The URL itself redirects to the file in maven repository in local network.
If downloaded using IE or FF, it works well. But I try to make it independent of browsers and to omit these savedialogs too.
If I use InetGet():
1) InetGetInfo() returns:
Bytes read: 162843648 (e.g.)
Size: 162843736 (e.g.)
Complete - yes
Successful - no
@error: 32
@extended: 12002
the last one is windows's ERROR_WINHTTP_TIMEOUT
2) Comparing the files got through a browser and InetRead shows that the latter one lacks around 100 bytes at the end of file.
The solution with named pipes fails exactly the same way.
There are other .zip files, larger and smaller than this one, some are always downloaded correctly both via browsers and InetGet(), some are never. It appears that in this case the size really doesn't matter.
I googled hard but was unable to find the answer. Your help (or a workaround without involving browsers) would be appreciated
I've got a script that should download a .zip file approx. 150Mb long from an URL. The URL itself redirects to the file in maven repository in local network.
If downloaded using IE or FF, it works well. But I try to make it independent of browsers and to omit these savedialogs too.
If I use InetGet():
$inetinfo=InetGet($path_to_our_file, $path_to_save_file, 1, 0)the file seems to be downloaded normally, but:
1) InetGetInfo() returns:
Bytes read: 162843648 (e.g.)
Size: 162843736 (e.g.)
Complete - yes
Successful - no
@error: 32
@extended: 12002
the last one is windows's ERROR_WINHTTP_TIMEOUT
2) Comparing the files got through a browser and InetRead shows that the latter one lacks around 100 bytes at the end of file.
The solution with named pipes fails exactly the same way.
There are other .zip files, larger and smaller than this one, some are always downloaded correctly both via browsers and InetGet(), some are never. It appears that in this case the size really doesn't matter.
I googled hard but was unable to find the answer. Your help (or a workaround without involving browsers) would be appreciated
![:)](http://aut1.autoit-cdn.com/forum/public/style_emoticons/autoit/smile.gif)