Community discussions

MikroTik App
 
stejjh
just joined
Topic Author
Posts: 6
Joined: Sat Apr 07, 2018 6:16 pm

fetch http response and headers

Tue Jul 23, 2019 2:53 pm

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
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1071
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: fetch http response and headers

Tue Jul 23, 2019 11:04 pm

You can access "data", "downloaded", "duration", "status" and "total". Looks like your requested information is not available.
 
stejjh
just joined
Topic Author
Posts: 6
Joined: Sat Apr 07, 2018 6:16 pm

Re: fetch http response and headers

Wed Jul 24, 2019 8:19 pm

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

Who is online

Users browsing this forum: No registered users and 70 guests