Moviemeter.nl problem
Hi J,
I have changed the lines but the result is the same as before.
Ant movie Catalog does find the movie every time, but after that it will not load the results in the program fields.
If I push the button "Show me the page" it shows the page on the website "moviemeter"
The first time you push the button "Show me the page" I have to accept the cookies. After that not anymore
Hopefully is this helpfull
Greetings
Wim
I have changed the lines but the result is the same as before.
Ant movie Catalog does find the movie every time, but after that it will not load the results in the program fields.
If I push the button "Show me the page" it shows the page on the website "moviemeter"
The first time you push the button "Show me the page" I have to accept the cookies. After that not anymore
Hopefully is this helpfull
Greetings
Wim
hi,
yes the problem is, that the second+ time the getpage function is called in the script, the cookie error page is returned.
The script normaly first uses getpage for the list to choose a movie (works fine so far) and then a second time to get the page for the selected movie (which contains the infos) - at this point the cookie error page is returned instead of the movie page.
If a direct link is set in the URL field, you can use it with the batch option and you'll then get the right movie page.
I have tested a little, but was not sucessfull. You need the "cok=" cookie as confirmation that you have pressed the button once. There are two other cookies, one is a sessionID, perhaps it is needed to send it for the second call, but I don't know how to get the value. As far as I could test it in the browser only the "cok=" is needed, the value is unimportant.
sorry, no clue so far, perhaps a second start of the script will help, but that's some kind of awfull programming.
yes the problem is, that the second+ time the getpage function is called in the script, the cookie error page is returned.
The script normaly first uses getpage for the list to choose a movie (works fine so far) and then a second time to get the page for the selected movie (which contains the infos) - at this point the cookie error page is returned instead of the movie page.
If a direct link is set in the URL field, you can use it with the batch option and you'll then get the right movie page.
I have tested a little, but was not sucessfull. You need the "cok=" cookie as confirmation that you have pressed the button once. There are two other cookies, one is a sessionID, perhaps it is needed to send it for the second call, but I don't know how to get the value. As far as I could test it in the browser only the "cok=" is needed, the value is unimportant.
sorry, no clue so far, perhaps a second start of the script will help, but that's some kind of awfull programming.
-
- Posts: 863
- Joined: 2006-08-31 23:58:18
for testing I called getpage3 twice with all three cookies.
A little peek into the protocol with wireshark tells me, that for the first call all three cookies have been sent, for the second call only the "last_visit"-cookie was sent.
Because of my lack of knowledge about TCP, I cannot say that this is the problem, but for the missing "cok="-cookie in the second call the error makes some sense to me.
Is there a special reason for this behaviour in the getpage function?
A little peek into the protocol with wireshark tells me, that for the first call all three cookies have been sent, for the second call only the "last_visit"-cookie was sent.
Because of my lack of knowledge about TCP, I cannot say that this is the problem, but for the missing "cok="-cookie in the second call the error makes some sense to me.
Is there a special reason for this behaviour in the getpage function?
Hello Jo, Raoul and Soulsnake,
Finally I got time to test it!!
It works fine when I use the BETA version of AMC!!
Thanks very much
Resume for other dutch users:
1. Use AMC 4.2.1 (BETA)
2. change
Code:
PageText := GetPage(Address);
to
Code:
PageText := GetPage3(Address,'','cok=1');
and
Code:
Page.Text := GetPage('http://www.moviemeter.nl/film/search/'+ ... e(Address));
to
Code:
Page.Text := GetPage3('http://www.moviemeter.nl/film/search/'+ ... ,'','cok=1');
3. Tab "preferences - scenario", turn on the checkmark at "limited to HTTP 1.0"
Finally I got time to test it!!
It works fine when I use the BETA version of AMC!!
Thanks very much
Resume for other dutch users:
1. Use AMC 4.2.1 (BETA)
2. change
Code:
PageText := GetPage(Address);
to
Code:
PageText := GetPage3(Address,'','cok=1');
and
Code:
Page.Text := GetPage('http://www.moviemeter.nl/film/search/'+ ... e(Address));
to
Code:
Page.Text := GetPage3('http://www.moviemeter.nl/film/search/'+ ... ,'','cok=1');
3. Tab "preferences - scenario", turn on the checkmark at "limited to HTTP 1.0"
-
- Posts: 863
- Joined: 2006-08-31 23:58:18