We need a PHP script that posts status updates to http://corank.com
The input parameters should be:
The script should:
(1) Log into the site
(2) Submit a story - http://your-username.corank.com/tech/submit/
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 to submit story
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.