https://kotlinlang.org logo
#ktor
Title
# ktor
a

addamsson

04/28/2020, 9:50 AM
Hi there! I'm trying to submit a form with the Ktor HttpClient but I get
RedirectResponseException: Unhandled redirect: <http://127.0.0.1:9000/login>. Status: 302 Found
This is nice because there is supposed to be a redirect but I can't figure out how to fix this. I'd like to check that the user was redirected to
/
after login.
s

SerVB

04/28/2020, 2:25 PM
There is something about followRedirects in https://ktor.io/clients/http-client/engines.html#apache . Maybe it can help
a

addamsson

05/01/2020, 12:17 PM
thanks
2 Views