You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
APIs may use HTTP response codes to distinguish errors with the request. Currently, the caller of CPLHTTPFetch (and similar) is unable to retrieve the HTTP response code. I would request that a field for the response code is added to CPLHTTPResult.
Additional context
I could work on this if the feature is acceptable
The text was updated successfully, but these errors were encountered:
With configuration option --config cpl_curl_verbose on much more info about the http traffic is shown. So perhaps the information that you want is already available, but in some other way.
I would request that a field for the response code is added to CPLHTTPResult.
That would indeed make sense to have a nHTTPResponseCode member in CPLHTTPResult. Contribution welcome.
Even more welcome, if you could at the same time clean up a few drivers that happen to parse the current error message to extract the error code from it, to update them to use the new member:
Feature description
APIs may use HTTP response codes to distinguish errors with the request. Currently, the caller of
CPLHTTPFetch
(and similar) is unable to retrieve the HTTP response code. I would request that a field for the response code is added toCPLHTTPResult
.Additional context
I could work on this if the feature is acceptable
The text was updated successfully, but these errors were encountered: