I try this code:
And when I execute, get a Salesforce.com Login, I put my login and when back to my computer (a localhost), get this error:
https://login.salesforce.com/services/oauth2/token failed with status 0
Anyone can explain whats append?!!!