TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Peter2 on January 13, 2017, 06:11:05 AM

Title: Does vla-getremotefile use a TLS-encryption? No repeated download ...
Post by: Peter2 on January 13, 2017, 06:11:05 AM
I changed my download-code from
- "MSXML2.XMLHTTP" /  http://www.cadtutor.net/forum/archive/index.php/t-38453.html to
- vla-getremotefile / https://www.theswamp.org/index.php?topic=13

The first solution was really slow (the write-to-file section), but could be repeated again and again.
The second code is very fast, but after second download the server blocks all requests to the same file. I can reach the file with Browser and FTP and TotalCommander (FTP too), but vla-getremotefile is blocked for a while.

It happens also with the original code with the original test-link to the swamp.
Attention: when you test the script, take care to delete the downloaded file from IE-cache after first test. Otherwise it will copy the cached file again and again.

Our provider says that "a TLS-encrypted request causes a timeout" and I should use SFTP.

I have no idea about it - anyone else who has problems with blocked requests?

EDIT:
After every reboot of my PC I can download the file again; but without a reboot the file stays locked. Maybe the IP is locked?
Title: Re: Does vla-getremotefile use a TLS-encryption? No repeated download ...
Post by: VovKa on January 13, 2017, 09:00:19 AM
you can try this https://www.theswamp.org/index.php?topic=33750.msg391249#msg391249
Title: Re: Does vla-getremotefile use a TLS-encryption? No repeated download ...
Post by: Peter2 on January 13, 2017, 11:56:28 AM
you can try this https://www.theswamp.org/index.php?topic=33750.msg391249#msg391249
Great, thanks - it is fast and not blocking the server (I hope tomorrow too ...).