Author Topic: GetLoginInfo  (Read 8919 times)

0 Members and 1 Guest are viewing this topic.

Offline geggi

  • Member
  • *
  • Posts: 2
    • View Profile
GetLoginInfo
« 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

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: GetLoginInfo
« Reply #1 on: January 14, 2011, 08:02:07 pm »
What did you set for URL?
Gentlemen, you can’t fight in here! This is the War Room!

Offline geggi

  • Member
  • *
  • Posts: 2
    • View Profile
Re: GetLoginInfo
« Reply #2 on: January 15, 2011, 11:26:10 pm »
BASE_URL = 'http://www.moviepilot.de';
 
  URL := BASE_URL + '/login';

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: GetLoginInfo
« Reply #3 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
Gentlemen, you can’t fight in here! This is the War Room!

 

anything