post

abstract fun post(url: String, data: String): HttpResponse

Sends a POST request to url with data as payload and returns the response.

May throw exception on transport errors.

Return

the http response code and the response body as a string