Hi, everyone How can I perform an http request (po...
# ktor
n
Hi, everyone How can I perform an http request (post/get) from ktor server to another server api? A short example will be perfect.
n
It is possible to do it on server side?
👌 2
v
You can even use okhttp if you’re working in the JVM/Android world. The docs explain this pretty well https://ktor.io/clients/http-client/engines.html
n
Ok, sorry used ktor on client side but though that for server side will another way.
Thank you
s
I’m not sure if I understand you correctly but to be clear, you can just instantiate a Ktor HttpClient within your Ktor server and use it normally
n
Yes, you understood everything right. Thanks
👍 1