Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Is it possible to generate complete url from http response header
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Is it possible to generate complete url from http response header

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adnan
    wrote on last edited by
    #1

    I wish to get the complete url of file being sent by server through its http-header(reply). I am doing some sort of packet filtering. Is it possible to generate complete url from http response header.
    Actually, QNetworkReply has a method url() which returns the url from response, and some say that it's not possible. You need the actual HTTP request. Then how does QNetworkReply gets the url.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      The QNetworkReply object is created at the moment you do the request. It will only be filled with data as the request progresses and data is returned by the server. You pass a QNetworkRequest to a QNetworkAccessManager, and it returns a QNetworkReply for you to watch and use.

      This setup makes it easy to associate information from the request with the reply that it triggered.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved