That error would typically be coming from the serv...
# ktor
p
That error would typically be coming from the server you are calling. It is completely within it’s rights to return a 411 response
1
r
But when I make postman request it works fine. So I assume it's sth related to Ktor, not some issue with the server I'm calling,
r
Yeah I read that. So I tried adding Content-Length: 0 to my header, then it returned message saying I shouldn't manually set the length. If I don't add it to header it returned 411. The only way to make it work is to add something to the body. Below is my code:
Untitled.txt
p
You could try switching to okhttp
r
Great now it works! Thanks for your help! Should the team record it as a bug for future fix?
p
It already is