login using snoopy class

Help
davidinho
2011-08-31
2013-05-30
  • davidinho
    davidinho
    2011-08-31

    Hi guys, I've a problem:
    How is possible to log on the site http://forum.html.it/ using snoopy?
    i've tried this code:

    $snoopy= new Snoopy;
    $snoopy->pass='password';
    $snoopy->user='davidinho';
    $url='http://forum.html.it/';
    $snoopy->fetch($url);
    echo $snoopy->results;
    

    the result is a page not logged in

    i've tried also using this other code:

    $snoopy= new Snoopy;
    $url='http://forum.html.it/';
    $submit_vars["username"] = 'davidinho';
    $submit_vars["password"] = 'password';
    $submit_vars["action"] = 'login';
    $snoopy->submit($url,$submit_vars);
    $snoopy->fetch($url);
    echo $snoopy->results;
    

    The result is identical to the first case

    have someone any tips?