submitForm

inline suspend fun HttpClient.submitForm(formParameters: Parameters = Parameters.Empty, encodeInQuery: Boolean = false, block: HttpRequestBuilder.() -> Unit = {}): HttpResponse

Submit formParameters request.

If encodeInQuery specified encode formParameters in url parameters and use HttpMethod.Get for the request. Otherwise send HttpMethod.Post request with formParameters encoded in body.

formParameters encoded using application/x-www-form-urlencoded format.


suspend fun HttpClient.submitForm(url: String, formParameters: Parameters = Parameters.Empty, encodeInQuery: Boolean = false, block: HttpRequestBuilder.() -> Unit = {}): HttpResponse

Submit formParameters request.

If encodeInQuery specified encode formParameters in url parameters and use HttpMethod.Get for the request. Otherwise send HttpMethod.Post request with formParameters encoded in body.

url destination formParameters encoded using application/x-www-form-urlencoded format.