I'm not a webdev so I'm muddling my way through as...
# ktor
g
I'm not a webdev so I'm muddling my way through as I go, but theres a website I'm interacting with - can someone explain to me the difference of ktor's cookie function to set a cookie when making a request, versus something like header("Cookie",value)? I'm getting a cookie in response to a POST that has an auth token, I'm just confused why manually setting the auth token cookie in the header is working where supplying the actual cookie isn't
a
The
HttpMessageBuilder.cookie
method is just an abstraction above the
headers.append(HttpHeaders.Cookie, renderedCookie)
. You can determine the difference by reading request logs or analyzing the HTTP traffic.