0

I want to remote login to www.kicktipp.de and I used this source code. First I successfully tried it out for a login page from another webpage of mine, but when I try to login to kicktipp.de it fails. When I use this line:

$postdata = "kennung=" . $myusername . "&passwort=" . $mypassword . "&submitbutton=1";

only my username is inserted, but not the password. Why doesn't it work here?

Community
  • 1
  • 1
Munchkin
  • 4,528
  • 7
  • 45
  • 93

1 Answers1

1

Please verify these details:

  1. The POST should be maked to http://www.kicktipp.de/info/profil/loginaction.
  2. The hidden-value charset is empty and should be included.
  3. The hidden-value kt_page with "/profil/loginaction" should be included.
  4. The value of the button "submitbutton" is "Anmelden".

I think one of this things should be the solution.


Folgende Dinge bitte beachten:

  1. Der POST muss an http://www.kicktipp.de/info/profil/loginaction erfolgen.
  2. Das hidden-value charset sollte auch leer übergeben werden.
  3. Das hidden-value kt_page "/profil/loginaction" sollte übergeben werden.
  4. Eventuell auch noch beim submitbutton "Anmelden" übergeben.

Ich denke, an einer Sache davon wird es liegen.

Richard
  • 2,840
  • 3
  • 25
  • 37
  • edit: thank you, it works! But I had to add `curl_setopt ($ch, CURLOPT_COOKIE, "kennung=" . $username . ";passwort=" . $password);` – Munchkin May 05 '15 at 19:34
  • With this, you set a cookie ;-) Then you probably does not need to login dedicated. – Richard May 05 '15 at 19:47
  • Well, goal is to get the html-content of `http://www.kicktipp.de/info/profil/meinetipprunden` from the user who logged in. So what would be the simplest solution? – Munchkin May 05 '15 at 19:56
  • You can try to get the profile without logging in before but simply setting the cookie value. – Richard May 05 '15 at 19:59