Personal Video Database

English => Development => Topic started by: geggi on January 14, 2011, 04:31:28 pm

Title: GetLoginInfo
Post by: geggi on January 14, 2011, 04:31:28 pm
I'm currently working on a new script for moviepilot.de.
It works fine for data I can parse without being logged in, yet I want to log in to access my personal rating of the movies.

I failed to use the GetLoginInfo(URL, params) function. What is the syntax of the params string?

Assuming my username and password are myusername and mypassword. The login form at http://www.moviepilot.de/login requires "username" and "password".
What params string must I use? Setting 'params := "username=myusername&password=mypassword"; ' did not work.


geggi
Title: Re: GetLoginInfo
Post by: nostra on January 14, 2011, 08:02:07 pm
What did you set for URL?
Title: Re: GetLoginInfo
Post by: geggi on January 15, 2011, 11:26:10 pm
BASE_URL = 'http://www.moviepilot.de';
 
  URL := BASE_URL + '/login';
Title: Re: GetLoginInfo
Post by: nostra on January 16, 2011, 01:24:44 am
Try adding a slash to URL, like this:
Code: [Select]
URL := BASE_URL + '/login/';
or

Adding ? before params, like this:
Code: [Select]
?username=myusername&password=mypassword