fetch http response and headers

Hi,

How do I retrieve the http response headers from a fetch call please?

The result->”data” element appears to only contain the body of the response and not the http header - not a lot of use as I need to extract the HTTP response code and Set-Cookie fields for the script I am developing.

Thanks

J

You can access “data”, “downloaded”, “duration”, “status” and “total”. Looks like your requested information is not available.

Thanks for the reply; sounds like a “fetch” feature request unfortunately.

This is pretty fundamental functionality; does anyone know of a workaround in the meantime please?

Thanks

J