English > Talk
curl - solution for https
VVV_Easy_Programing:
I think that the problem it that you program path have spaces and the 'del' command don't be able to erase 'downpage.htm' (it tries, wait 1 seg and tries, tries ...)
Perhaps curl may the same problem.
This afternoon I shall try something with inverted commas but ¿may you do a try with a copy of PVdB in a folder without spaces, for instance: C:\Users\Ivo\Documents\PersonalVideoDB\?
Ivek23:
--- Quote from: VVV_Easy_Programing on November 08, 2016, 01:23:32 pm ---This afternoon I shall try something with inverted commas but ¿may you do a try with a copy of PVdB in a folder without spaces, for instance: C:\Users\Ivo\Documents\PersonalVideoDB\?
--- End quote ---
Yes, I made a change in the way as mentioned above. Unfortunately, the result is still the same as before.
VVV_Easy_Programing:
I made and attach the next version:
VERSION: 0.3.1.0 (06/11/2016) -> VVV: Use quotation marks for the paths.
but I see some things bizarre in you log file:
--- Quote ---(8.11.2016 8:46:09) PVD Version: 0.9.9.21
--- End quote ---
¿why you don't use the latest version 1.0.2.7?
--- Quote ---(8.11.2016 8:46:37) UpdateToolbar: 4
(8.11.2016 8:46:45) GET: http://www.videodb.info/upload/check.php
(8.11.2016 8:46:47) Update error: Socket Error # 10061
Connection refused.
(8.11.2016 8:46:52) UpdateToolbar: 5
--- End quote ---
It seems that your copy of PVdB have problems even with the http pages ¿are you sure that you haven't a proxy, firewall or antivirus with your PVdB? It's very rare that curl works out of PVdB and not in ¿are you sure that Proxomitron is not active?.
¿Can you test it in a clean downloaded 1.0.2.7 version? You can use a portable one decompressing:
http://www.videodb.info/bin/pvd1.zip
in C:\Users\Ivo\Documents\PersonalVideoDB\ and adding the three needed curl files.
Perhaps other people can help us trying the script.
BTW:
The biggest solved of script is synchronize PVdB and the curl download and be sure when you parse that 'downpage.htm' is fresh and completed. So I do two steeps:
1) First the script delete the saved 'downpage.htm'.
--- Quote --- //Delete the ancient dowloaded page file. Needed for wait to curl download.
While FileExists(ScriptPath+BASE_DOWNLOAD_FILE) do begin
FileExecute('cmd.exe', '/C del '+ScriptPath+BASE_DOWNLOAD_FILE);
LogMessage(' Waiting 1s for delete:'+ScriptPath+BASE_DOWNLOAD_FILE);
wait (1000);
end;
--- End quote ---
2) After curl call it waits to detected the 'downpage.htm'
--- Quote --- //Wait curl finish and exist the downloaded page
While Not(FileExists(ScriptPath+BASE_DOWNLOAD_FILE)) do begin
LogMessage(' Waiting 2s for exists of:'+ScriptPath+BASE_DOWNLOAD_FILE);
wait (2000);
end;
--- End quote ---
So in your first log, the script has problems to delete 'downpage.htm', it tries and wait, tries and wait:
--- Quote ---(8.11.2016 8:47:03) Waiting 1s for delete:C:\Program Files\Personal Video Database\Scripts\downpage.htm
(8.11.2016 8:47:04) Waiting 1s for delete:C:\Program Files\Personal Video Database\Scripts\downpage.htm
(8.11.2016 8:47:05) Waiting 1s for delete:C:\Program Files\Personal Video Database\Scripts\downpage.htm
--- End quote ---
When you block this part of code it detects that something goes wrong:
--- Quote ---(8.11.2016 8:54:58) Global Var-ScriptPath|C:\Program Files\Personal Video Database\Scripts\|
(8.11.2016 8:54:58) Some error deleting: C:\Program Files\Personal Video Database\Scripts\downpage.htm
--- End quote ---
Ivek23:
--- Quote ---
--- Quote ---(8.11.2016 8:46:09) PVD Version: 0.9.9.21
--- End quote ---
¿why you don't use the latest version 1.0.2.7?
--- End quote ---
I am also used, but as the basis I have loaded on the PC version 0.9.9.21. A big reason why is basically not used primarily this that once with this version use a particular database, the latter version rearranges and is no longer usable with old 0.9.9.21 version or the old. 0.9.9.21 version can no longer open. For certain things when using a larger number of databases (at least for me so) old 0.9.9.21 version is better, easier to edit certain things rather than the latest version.
--- Quote ---
--- Quote ---(8.11.2016 8:46:37) UpdateToolbar: 4
(8.11.2016 8:46:45) GET: http://www.videodb.info/upload/check.php
(8.11.2016 8:46:47) Update error: Socket Error # 10061
Connection refused.
(8.11.2016 8:46:52) UpdateToolbar: 5
--- End quote ---
It seems that your copy of PVdB have problems even with the http pages ¿are you sure that you haven't a proxy, firewall or antivirus with your PVdB?
--- End quote ---
My bad, I forgot to change the proxy settings, and then it was the same.
--- Quote ---It's very rare that curl works out of PVdB and not in ¿are you sure that Proxomitron is not active?.
--- End quote ---
Definitely he was not in that the time in use.
--- Quote ---¿Can you test it in a clean downloaded 1.0.2.7 version? You can use a portable one decompressing:
http://www.videodb.info/bin/pvd1.zip
in C:\Users\Ivo\Documents\PersonalVideoDB\ and adding the three needed curl files.
--- End quote ---
I did it and it works perfectly. Even in the old 0.9.9.21. version now works perfectly.
A big thank you for your efforts, which was made in the script, it is now again usable. It will be as already mentioned:
--- Quote from: VVV_Easy_Programing on November 06, 2016, 08:34:08 pm ---Finally, it's not difficult to adapt this script to another HTTPS page. All people are free to use it.
--- End quote ---
This script will be a good basis for writing the scripts for the site, which also use a secure https connection and this is not an option the use of Proxomitron.
Once again many thanks for the help that has been a problem with RottenTomatoes script successfully solved. Your help and expertise is welcome in the future in solving similar problems.
Thank you very much.
--- Quote ---Perhaps other people can help us trying the script.
--- End quote ---
I hope so.
VVV_Easy_Programing:
:D ;D :D ;D :D ;D
If you arrive, in this script or in other, to need download pictures from a HTTPS link (so binary download), tell me because I think that it will be necessary make some code.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version