Query parameters with POST

Report a typo

We send the following POST request:

request settings with two parameters: name=Kevin and name=Sam

In the page handler we output the name parameter to the POST console:

post("/page") {
    val formParameters = call.receiveParameters()
    println(formParameters["name"])
}

Which name will be displayed in the console?

Try running this code in the IDE and look at the console output.

Select one or more options from the list
___

Create a free account to access the full topic