When using "asynchttpPost" the response object type is "hubitat.scheduling.AsyncResponse"
I am trying to get the list of "set-cookie" headers from the http response, but the "AsyncResponse.getHeaders()" method returns a Map<String, String>. Headers can have multiple values, so the return type really needs to be Map<String, List>
I notice that the non-async "httpPost" function returns a "groovyx.net.http.HttpResponseDecorator" which allows full-featured and standard methods for accessing the headers. Does any way exist to get a "groovyx.net.http.HttpResponseDecorator" from a "hubitat.scheduling.AsyncResponse"?
Using async calls, how can I get all values for a multi-value header?
What data is actually in setCookiesHeaderVal in your example? Is it the map represented as a string somehow? The log output would be interesting to see.
Yep, I was hoping that they might be mashed together in a way that you could parse them back out somehow. It seems like you need new/improved functionality from the Hubitat implementation. You'll have to ask someone like @mike.maxwell if there's any existing way to get at the full headers data or to make the request to add one.
You'll have to ask someone like @mike.maxwell if there's any existing way to get at the full headers data or to make the request to add one.
I am new to the board, how would I do this? Does he have an email listed somewhere? I opened a support case with Hubitat Wednesday but I have gotten no reply.