Archive: inetc::get bug?


inetc::get bug?
I do next call
inetc::get "www.somesite.com/File.txt" $TEMP\File.txt

in case File.txt exists in $TEMP folder it's rewritten BUT
only the part of data not more then in file on server actually rewritten.

Example:
File.txt in $TEMP
AAAAAAAAAAAAAAAAAAA
File.txt on www.somesite.com
BBBBBBB

Acctual Result:
File.txt in $TEMP after call mentioned above:
BBBBBBBAAAAAAAAAAAA

Expected result:
BBBBBBB


Is it bug?


Looks like the plugin is using append mode. For now you should delete the file first.

Stu


yes, you can always create a new temp file at runtime and place your contents in that.


How could I report it? Do we have any bug tracking system?


Yes, this is a bug, I'll fix it soon. If you can rebuild dll, it should be (inetc.cpp line 587 ?)

if((localFile = CreateFile(fn, fput ? GENERIC_READ : GENERIC_WRITE, FILE_SHARE_READ,
NULL, fput ? OPEN_EXISTING : CREATE_ALWAYS, 0, NULL)) != NULL)
I had im mind direct download (not to tmp file). New tmp file should work as well. BTW inetc deletes local file if download failed.
Thanks.