Page 1 of 1

issue in GetPage3 function

Posted: 2015-08-05 15:04:38
by J
hi soulsnake,

after some testing because of problems with the moviemeter.nl script (see forum script area), I found out, that when getpage3 function is called twice (with cookies), from the second time on only one cookie is sent to the server.

Code: Select all

PageText := GetPage3('http://www.moviemeter.nl/film/320','','cok=1;PHPSESSID=12j2h9nan7ckn5a40rnm513mp5;last_visit=1438707334');
  ShowMessage(PageText);
  PageText := GetPage3('http://www.moviemeter.nl/film/99817','','cok=1;PHPSESSID=12j2h9nan7ckn5a40rnm513mp5;last_visit=1438707334');
  ShowMessage(PageText);
Result for first call (film 320): --> All three cookies have been sent.
Result for second call (film 99817): --> Only "last_visit=1438707334" has been sent.

If you call second time with only one cookie "cok=1", result is nevertheless again "last_visit=1438707334" has been sent, which is irritating for me.

Not sure this is intended or an issue, perhaps you can take a look at this.

thanks
J.

Posted: 2015-08-05 18:17:20
by soulsnake
Hi,

I will take a look ;).

Soulsnake.

Posted: 2015-08-09 17:32:56
by soulsnake
Hi,

I found and fix the problem for the next release.
I also add functions for scripting to fully manage cookies ;).
So next time it will be easier to debug and add/modify cookies :D.

Soulsnake.

Posted: 2015-08-10 08:43:26
by J
very good,
guess cookie handling will become more important for the future.

thank you.
J.