fsNetworkHttpRequestGetHeaderSection issue

I have serious troubles to get any data from the fsNetworkHttpRequestGetHeaderSection() function. I send a valid request ID ( fsNetworkHttpRequestGetData() and fsNetworkHttpRequestGetDataSize() in the same context work just fine) and I tried just about every possible value for the section parameter: empty, “Date”, “Date:”, “Server”, “Server:” etc. etc. but the result of the function call is always NULL. I checked the returned headers with postman and they are correct. The only thing that may be needs to be mentioned is that the header contains three “Set-Cookie” fields.
I still assume that I’ve done something wrong, like that the function is only available in a certain context or the section parameter needs to be in a certain format, but unfortunately, there’s no information, neither in the SDK doc, the samples or in the rest of the internet (fsdeveloper.com etc.). If I’ve done everything right, it would mean that the function is broken.
Any help on this topic would be highly welcome :slight_smile:

Thank you,
Hans

Did you try lowercase keys, e.g. “date” rather than “Date”? That’s the only thing that immediately comes to mind.

1 Like

You are right. That did it. It’s interesting because the actual fields in the header are upper/lower-case.

Thank you so much :slight_smile:

Hans

1 Like