Hi everybody,
I have been trying something for days and did not manage. We have a remote server whose administrator cannot be reached at the present time. We need the files that are on this server. There several tousands. The problem is that for security purpose, to get a file, you need to login with user name, password and capcha. I figure that a cookie is then set on my pc. Next, you type in your file name the file coming from some unknown directory is downloaded.
I can do that from my browser without problem, meaning connect and download on my pc. I even put up a script popping up windows, downloading and closing the window. However, the memory of the pc gets filled up and the pc crashes (too many windows opened and closed).
Do you know of any way to connect using loggin/capcha from our hosting server (we need to do that only once), save the cookie somewhere and have a direct download from server to server without having to go through a browser????
I really would be grateful as I tried for days !!!!
Here is my script :
[code=php]<?php
for ($idfs = 1 ; $idfs <= 5000 ; $idfs++) {
$add=’http://www.remoteserver.net/file’.$pieces[$idfs]’;
echo ‘<script>var winPop’.$idfs.’ = window.open(”.$add.”); </script>’;
echo ‘<script>setTimeout(‘winPop’.$idfs.’.close ()’,15000);</script>’;
}
?>