https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

Nikolai

12/11/2018, 1:35 PM
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.
g

gildor

12/11/2018, 1:49 PM
with GET method
But your request is POST. Or I misunderstood your message
d

Dico

12/11/2018, 1:52 PM
Yeah, of looks line you're setting it to post manually, instead of get
n

Nikolai

12/11/2018, 2:13 PM
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