Added post method for HttpConnection.