hi,
I'm trying to get the sessionId from a browser cookie, but headers seem to be missing when POSTing via the multipartserver. The header values are retrievable using http.headers with GET and POST with the httpserver.
P.S. I added content-length to both POST servers initialization and it exhibited the same behavior. i.e it is available with httpserver POST, but not multipartserver POST.
hi, I'm trying to get the sessionId from a browser cookie, but headers seem to be missing when POSTing via the
multipartserver
. The header values are retrievable usinghttp.headers
with GET and POST with thehttpserver
.With
multipartserver
:echo http.headers.getOrDefault("cookie")
is emptyecho http.headers
outputs:{: , content-length: , content-type: , content-disposition: form-data; name="alt_txt", referer: , cookie: }
alt_txt
is the last input in the form, not that that is relevant.the servers are initialized thusly:
The multipartserver docs page says:
but maybe i'm doing it wrong?
P.S. I added
content-length
to both POST servers initialization and it exhibited the same behavior. i.e it is available withhttpserver
POST, but notmultipartserver
POST.Thanks