After the response comes in is it possible to get all of the headers in one variable?
E.g. for the set-cookie header it's only possible to get the first header when there's 2 set cookie headers.
If anyone has this problem add a HTTP client reset at the beginning of your script. HTTP client seems to get clogged at a certain point. Issue resolved.