Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Checking of data in array sent via submit()

Help
Kel Regor
2007-11-23
2013-05-30
  • Kel Regor
    Kel Regor
    2007-11-23

    Hi guys,

    I am trying to post some values to a website, for e.g google.com, and return the result for each value been posted. For instance, I have the following values that will be posted:

    $email[0] = "@testthrope.com";
    $email[1] = "testthrope.com@";
    $email[2] = "test@thrope.com";
    $email[3] = "test@thrope";
    $email[4] = "thrope.com";
    $email[5] = "test@@@@thrope.com";

    I want the result for each of the values to be returned individually, for eg. $email[0] returns status 501 and $email[1] returns status 200 etc...Can that be done using Snoopy? If so, how?

    And also, after I submitted the form values using the submit function, when I print the result:

            $snoopy->submit($submit_url,$submit_vars);
        print $snoopy->results;

    Error 501: Not implemented will always be returned and it seems to be happening to any page that I've submitted the data to. Any idea how to resolve this problem?

    Thanks in advance.