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

Add method to fet domain from a QUrl object

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.2.1
    • Core: URL Handling
    • None

    Description

      I could not find a way to get the domain part of a URL.

      Lets say the given URL ist "http://www1.example.com/dir/index.html". I can easily get e.g. the TLD part (".com") and I can get the host ("www1.example.com"). However I need to find out which domain is used ("example.com").

      Please add a method domain() to QUrl.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            silicomancer Bernhard Lindner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes