Removing suppressed error and making it robust

Removing suppressed error and making it robust for POST data.
Wrong file commit

Updated the file with original code.  Wrong file committed.
Merge pull request #3 from ishan576/master

Updates