[#217] Fix POST method

* call getInputStream() before getStatusCode()