Kodi Community Forum
Retrieving HTTP headers/status for non successful requests - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: Retrieving HTTP headers/status for non successful requests (/showthread.php?tid=330423)



Retrieving HTTP headers/status for non successful requests - manĂ¼l - 2018-04-02

For unsuccessful HTTP requests the DVB Viewer PVRs backend sends status codes according to the standard. e.g. 401 for wrong/missing credentials. 410 for already deleted recording, etc..

Right now it seems impossible to retrieve the HTTP status code/line using GetFilePropertyValue as CFile closes the underlying file implementation on failure. Error responses seems to be treated as failure. Is there a way to workaround this or can we add a new flag to signal that the file should not be closed?