GeoHealthCheck icon indicating copy to clipboard operation
GeoHealthCheck copied to clipboard

allow setting headers on probe request

Open MarcoDuiker opened this issue 7 years ago • 5 comments

In my experience it is often needed to set specific headers on a request (eg. WFS GET or POST). I ran into such an issue right now.

It would be nice (necessary?) if the option to add headers to a request would be added to the relevant probes.

MarcoDuiker avatar Jan 03 '18 12:01 MarcoDuiker

Good point. I need this as well. Some Probes e.g. WFS and HTTP have aREQUEST_HEADERS param, but only for content-type. Need to think how to add in a generic fashion. You have suggestions?

justb4 avatar Mar 03 '18 10:03 justb4

Just (no pun intended) add the possibility to add an arbitrary number of arbitrary key-value pairs to send as headers. That should suffice.

MarcoDuiker avatar Mar 03 '18 17:03 MarcoDuiker

@MarcoDuiker was your use case related to Authentication? Then you may try latest master version or via https://demo.geohealthcheck.org, via #9 and #259 per-Resource authentication via Authorization HTTP header has been implemented.

But we keep this issue as there may be other use cases off course.

justb4 avatar Jul 03 '19 15:07 justb4

Nope, not related to authentication. Indeed another use case.

MarcoDuiker avatar Jul 04 '19 13:07 MarcoDuiker

This would indeed be a welcomed feature. We need custom headers like "api-key", as some serviced are authenticated in this fashion.

So a list with key-value pairs as @MarcoDuiker suggested would be the definitive solution.

tobias-brunner avatar Sep 25 '23 06:09 tobias-brunner