English > Talk
curl - solution for https
Ivek23:
Thank you for your efforts.
This for me still does not operate as it should be. I changed the PVD path address for program in the script but there is no effect (there is no data transmission or web page to a search movie). It does not automatically create and, consequently, it does not find the 'downpage.htm' file. However, if you create a single, but there is no data in it, the file is empty.
VVV_Easy_Programing:
Well, nobody say it was be easy. We can begin the "debug":
1) ¿Do you have this (Script_Folder.jpg) in your PVdB Scripts Folder?
2) ¿Do you change
PVdB_SCRIPTS_PATH_FOLDER = 'C:\Users\Public\Portables\PersonalVideoDB\Scripts\'; //The PVdB scripts path folder
to your own script folder (don't forget the last '\')
3) Try with an movie example with his BASE_URL not httpS (Capture2.jpg)
and Import with Rottentomatoes_[HTTPS].psf in debug mode. ¿can you see in the Log Windows, something like this (LogWindow.jpg)?
If not ¿can you attach your Log window?
Ivek23:
--- Quote ---1) ¿Do you have this (Script_Folder.jpg) in your PVdB Scripts Folder?
--- End quote ---
Yes
--- Quote ---2) ¿Do you change
PVdB_SCRIPTS_PATH_FOLDER = 'C:\Users\Public\Portables\PersonalVideoDB\Scripts\'; //The PVdB scripts path folder
to your own script folder (don't forget the last '\')
--- End quote ---
Yes
--- Quote ---3) Try with an movie example with his BASE_URL not httpS (Capture2.jpg)
--- End quote ---
Yes
--- Quote ---If not ¿can you attach your Log window?
--- End quote ---
Log window
--- Code: ---(3.11.2016 6:54:23) Compiling script: Rottentomatoes_[HTTPS].psf
(3.11.2016 6:54:23) Script compiled successfully: Rottentomatoes_[HTTPS].psf
(3.11.2016 6:54:23) Executing script binary
(3.11.2016 6:54:23) Logging in...
(3.11.2016 6:54:23) Function GetDownloadURL|
(3.11.2016 6:54:23) Global Var-Mode|0|
(3.11.2016 6:54:23) Dowloand with curl in C:\Program Files\Personal Video Database\Scripts\downpage.htm the information of:|https://www.rottentomatoes.com/m/godfather||
(3.11.2016 6:54:25) Parse stored information of:|https://www.rottentomatoes.com/m/godfather||
(3.11.2016 6:54:25) Searching movie information for: Godfather
(3.11.2016 6:54:39) Function ParsePage|
(3.11.2016 6:54:39) Global Var-Mode|1|
(3.11.2016 6:54:39) Local Var-URL||
(3.11.2016 6:54:39) Local Var-HTML.Begin||End
--- End code ---
VVV_Easy_Programing:
Bad news.
I don't see an special authorization for curl in my windows firewall.
My firewall is windows ¿Do you have a firewall different that windows standard?
I have Firefox installed ¿Do you have it?
My antivirus is avast ¿do you have a especial antivirus?
¿What it is the content of your downloaded file? ¿Some like this or nothing at all?
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
¿Can you try this commands in DOS Windows in the script folder?
1)Download a httpS in file not silent
curl.exe -o downpage_try.htm https://www.rottentomatoes.com/m/godfather
I get the page and curl shows
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 222k 100 222k 0 0 87034 0 0:00:02 0:00:02 --:--:-- 87034
2)Download a http in file not silent
curl.exe -o downpage_try.htm http://www.imdb.com/title/tt0068646/?ref_=fn_al_tt_7
I get the page and curl shows
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 197k 0 197k 0 0 214k 0 --:--:-- --:--:-- --:--:-- 214k
3)Download a http in file not silent with identificated agent:
curl -A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)" -o downpage_try.htm http://www.filmaffinity.com/es/film809297.html
I get the page and curl shows
% Total % Received % Xferd Average Speed Time Time Time Curren
Dload Upload Total Spent Left Speed
100 48198 0 48198 0 0 336k 0 --:--:-- --:--:-- --:--:-- 336k
4)If it fail try (verbose, for know if curl says something):
curl.exe -v -o downpage_try.htm http://www.imdb.com/title/tt0068646/?ref_=fn_al_tt_7
Ivek23:
--- Quote --- My firewall is windows ¿Do you have a firewall different that windows standard?
--- End quote ---
Yes
--- Quote --- I have Firefox installed ¿Do you have it?
--- End quote ---
Yes
--- Quote --- My antivirus is avast ¿do you have a especial antivirus?
--- End quote ---
NOD32
--- Quote ---¿What it is the content of your downloaded file? ¿Some like this or nothing at all?
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
--- End quote ---
Nothing at all
--- Quote ---¿Can you try this commands in DOS Windows in the script folder?
1)Download a httpS in file not silent
curl.exe -o downpage_try.htm https://www.rottentomatoes.com/m/godfather
I get the page and curl shows
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 222k 100 222k 0 0 87034 0 0:00:02 0:00:02 --:--:-- 87034
--- End quote ---
Could not resolve host: Files\Personal
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version