We need a PHP script that submits bookmarks to http://www.social-bookmarking.net
The input parameters should be:
The script should:
(1) Log into the site
(2) Attempt to submit a bookmark
(3) If the bookmark already exists, vote it up
The script should return an array:
 = 1 (success)
 = 2 (failure known),  = "custom failure message"
 = 3 (failure unknown),  = "HTML content of last page"
The following validations must be included:
- Invalid username/password
- Unable to login
- Failure submitted bookmark (including which step)
- Failure to vote
We'd prefer if you used PHP curl rather than other methods to accomplish this script.
If applying, please include examples of similar scripts you've done.