tagada Posted June 19, 2007 Share Posted June 19, 2007 Hello !I would like to know if InetGetSize has limits...Because this test code works well with files smallest than 10Mo (roughly)The first one : ~5.4Mo (function works)The seconde : ~23.3Mo (function returns 0)CODEMsgBox (0, "TEST" , InetGetSize("http://cdrom.wip.digitalriver.com/pub/bws/bws_49/spf.msi"))MsgBox (0, "TEST" , InetGetSize("http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.1/fra/AdbeRdr810_fr_FR.exe"))There is this remark in the help file :Not all servers will correctly give the file size, especially when using a proxy server.So i did some test with my ftp...It's works with small files only too...Thank you Link to comment Share on other sites More sharing options...
poisonkiller Posted June 19, 2007 Share Posted June 19, 2007 (edited) I tested it with one FTP file (it was ~80MB big) and it worked fine, maybe there's something wrong with that URL, like some redirecting or sth? EDIT: No, there's nothing wrong with that URL, InetGet worked fine. Edited June 19, 2007 by poisonkiller Link to comment Share on other sites More sharing options...
/dev/null Posted June 19, 2007 Share Posted June 19, 2007 (edited) Hi, this seems to be a bug of InetGetSize, as both servers return the "Content-Length" Header AND I do also get 0 for the Acrobat download. AutoIT 3.2.4.9. You should post this in the Bugs forum (add my network dump!) expandcollapse popuphttp://cdrom.wip.digitalriver.com/pub/bws/bws_49/spf.msi 0000: 48 54 54 50 2F 31 2E 31 20 32 30 30 20 4F 4B 0D HTTP/1.1 200 OK. 0010: 0A 44 61 74 65 3A 20 54 75 65 2C 20 31 39 20 4A .Date: Tue, 19 J 0020: 75 6E 20 32 30 30 37 20 31 34 3A 35 38 3A 34 35 un 2007 14:58:45 0030: 20 47 4D 54 0D 0A 53 65 72 76 65 72 3A 20 41 70 GMT..Server: Ap 0040: 61 63 68 65 2F 32 2E 32 2E 30 20 28 55 6E 69 78 ache/2.2.0 (Unix 0050: 29 0D 0A 4C 61 73 74 2D 4D 6F 64 69 66 69 65 64 )..Last-Modified 0060: 3A 20 54 68 75 2C 20 32 38 20 4F 63 74 20 32 30 : Thu, 28 Oct 20 0070: 30 34 20 32 32 3A 33 36 3A 31 39 20 47 4D 54 0D 04 22:36:19 GMT. 0080: 0A 45 54 61 67 3A 20 22 35 36 35 63 30 30 2D 39 .ETag: "565c00-9 0090: 32 32 62 39 65 63 30 22 0D 0A 41 63 63 65 70 74 22b9ec0"..Accept 00A0: 2D 52 61 6E 67 65 73 3A 20 62 79 74 65 73 0D 0A -Ranges: bytes.. 00B0: 43 6F 6E 74 65 6E 74 2D 4C 65 6E 67 74 68 3A 20 Content-Length: 00C0: 35 36 35 39 36 34 38 0D 0A 43 61 63 68 65 2D 43 5659648..Cache-C 00D0: 6F 6E 74 72 6F 6C 3A 20 6D 61 78 2D 61 67 65 3D ontrol: max-age= 00E0: 2D 38 33 32 36 32 31 34 35 0D 0A 45 78 70 69 72 -83262145..Expir 00F0: 65 73 3A 20 54 68 75 2C 20 32 38 20 4F 63 74 20 es: Thu, 28 Oct 0100: 32 30 30 34 20 32 32 3A 33 36 3A 32 30 20 47 4D 2004 22:36:20 GM 0110: 54 0D 0A 58 2D 53 65 72 76 65 72 2D 4E 61 6D 65 T..X-Server-Name 0120: 3A 20 64 63 32 77 63 61 72 63 68 69 76 65 30 31 : dc2wcarchive01 0130: 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C ..Connection: cl 0140: 6F 73 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 ose..Content-Typ 0150: 65 3A 20 74 65 78 74 2F 70 6C 61 69 6E 0D 0A 0D e: text/plain... 0160: 0A . http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.1/fra/AdbeRdr810_fr_FR.exe 0000: 48 54 54 50 2F 31 2E 31 20 32 30 30 20 4F 4B 0D HTTP/1.1 200 OK. 0010: 0A 53 65 72 76 65 72 3A 20 41 70 61 63 68 65 0D .Server: Apache. 0020: 0A 4C 61 73 74 2D 4D 6F 64 69 66 69 65 64 3A 20 .Last-Modified: 0030: 46 72 69 2C 20 31 31 20 4D 61 79 20 32 30 30 37 Fri, 11 May 2007 0040: 20 31 31 3A 34 31 3A 33 38 20 47 4D 54 0D 0A 45 11:41:38 GMT..E 0050: 54 61 67 3A 20 22 35 33 32 34 33 35 2D 31 37 36 Tag: "532435-176 0060: 36 36 32 30 2D 34 36 34 34 35 36 37 32 22 0D 0A 6620-46445672".. 0070: 41 63 63 65 70 74 2D 52 61 6E 67 65 73 3A 20 62 Accept-Ranges: b 0080: 79 74 65 73 0D 0A 43 6F 6E 74 65 6E 74 2D 4C 65 ytes..Content-Le 0090: 6E 67 74 68 3A 20 32 34 35 33 36 36 30 38 0D 0A ngth: 24536608.. 00A0: 43 6F 6E 74 65 6E 74 2D 54 79 70 65 3A 20 61 70 Content-Type: ap 00B0: 70 6C 69 63 61 74 69 6F 6E 2F 6F 63 74 65 74 2D plication/octet- 00C0: 73 74 72 65 61 6D 0D 0A 44 61 74 65 3A 20 54 75 stream..Date: Tu 00D0: 65 2C 20 31 39 20 4A 75 6E 20 32 30 30 37 20 31 e, 19 Jun 2007 1 00E0: 34 3A 35 38 3A 34 33 20 47 4D 54 0D 0A 43 6F 6E 4:58:43 GMT..Con 00F0: 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 2D 61 6C nection: keep-al 0100: 69 76 65 0D 0A 0D 0A 4D 5A 3C 00 01 00 00 00 02 ive....MZ<...... Edited June 19, 2007 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
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