Just added in https://github.com/OSGeo/gdal/commit/a6c3b0450994028a60cef854fbe6304910c7e277 : "The content of the file is not cached, and thus it is read again before issuing each HTTP request."

Le 28/03/2024 à 10:26, Michael Otto via gdal-dev a écrit :
Hello,

I have an important question about the use of a 'GDAL_HTTP_HEADER_FILE'.

If I request a WFS with "OGR_WFS_PAGING_ALLOWED=ON" and use a header file for authentication, will the header file be read with every new page?

I am wondering how I should deal with an expiring bearer token (validity 5min) with a very long lasting query (>5min).

Questions:
Does ogr2ogr query the header file again for each new page?
Can I possibly set the authentication for every single requested page?
Is there another way to deal with expiring tokens?

Michael

PS:
I use Java and start the apps via the ProcessBuilder.
If the header file is re-read for each page, I could update it accordingly (preferably without conflicts due to simultaneous reading and writing ;o) ).

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to