Re: [gdal-dev] Expiring token during paging on the WFS

2024-03-28 Thread Even Rouault via gdal-dev
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


Re: [gdal-dev] Expiring token during paging on the WFS

2024-03-28 Thread Andrew C Aitchison via gdal-dev

On Thu, 28 Mar 2024, Michael Otto via gdal-dev wrote:


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).


Is this for one WFS service, or many ?
Assuming you are consuming the data promptly and aren't overloaded,
I would discuss this with the WFS service; you probably aren't
the only one having this issue. If sending the data takes longer
than the life of the token, they need longer-lived tokens.

Sorry I can't help with your actual questions.


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)
).



--
Andrew C. Aitchison  Kendal, UK
   and...@aitchison.me.uk
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Expiring token during paging on the WFS

2024-03-28 Thread Michael Otto via gdal-dev
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