Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115132

provide access to the parsed HTTP header 'Date'

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.4
    • Network: HTTP
    • None
    • All

    Description

      Accessing and parsing the datetime contained in an HTTP header of a QNetworkReply is difficult. It is done automatically for the cooked headers LastModifiedHeader and IfModifiedSinceHeader using the hidden implementation in the method fromHttpDate() of the private class QNetworkHeadersPrivate. But for headers that are not part of the set of known headers, like Date, all we get is access to the values' byte arrays. Since the aforementioned function is not part of the public API, I may not use it and would have to reimplement/copy it to get robust access to the value of the header.

      Please provide either a cooked version of the Date HTTP header or a way to use QNetworkHeadersPrivate::fromHttpDate(), for example by adding a function QNetworkReply::datetimeHeader() or something along those lines.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            hagen.moebius Hagen Möbius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes