Thread
#multiplatform
    n

    Nikolai

    3 years ago
    Hello, everyone I am continuing my work using .ktor, but I faced problem again. Maybe it is wrong thread, but because I am developing multiplatform, I posting here. Correct me if I wrong. So, I am creating request to server, with GET methods, here is the code (I know it's not optimal but it's because I changed it trying to find an error). I setting HttpRequestBuilder
    method
    property and using client.get method and when I trace those properties - all good. But in the Charles proxy tool is displayed like POST request and on server side I got wrong request exception because of that. Did I missed something? I need to set/change something else to make request GET? P.S Screenshot inside conversation.
    gildor

    gildor

    3 years ago
    with GET method
    But your request is POST. Or I misunderstood your message
    Dico

    Dico

    3 years ago
    Yeah, of looks line you're setting it to post manually, instead of get
    n

    Nikolai

    3 years ago
    Sorry, I will check again, looks like I screened wrong code
    @gildor, @Dico Thank you for pointing to that mistake. Here is correct one.
    Ok, I didn't fix the problem, but at least found the way to do what I need. Just changed code and it worked.
    Thanks everyone