Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6160221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:15:47+00:00 2026-05-23T21:15:47+00:00

I am trying to connect my application with a web service and here ,a

  • 0

I am trying to connect my application with a web service and here ,a user suggested to send custom headers back to my application.

I am using this code

void Coonnec::serviceRequestFinished(QNetworkReply *reply)
{
    QByteArray bytes = reply->readAll();

    if (reply->error() != QNetworkReply::NoError) {
        qDebug() << "Reply error: " + reply->errorString();
    }
    else
    {
        qDebug() << "Uploaded: " + QDateTime::currentDateTime().toString();
        qDebug() << reply->rawHeaderList();
    }
    reply->close();
    bytes.clear();
    reply->deleteLater();
}

from php i send this header

header('XAppRequest-Status: complete');

When running the application i can see that i get this header but i can’t take the value of it cause

reply->rawHeader(bytes);

returns nothing.

How can i take the value ‘complete’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:15:48+00:00Added an answer on May 23, 2026 at 9:15 pm

    I suggest to connect a slot to the void QNetworkReply::metaDataChanged () signal of your reply.

    The Qt doc says

    This signal is emitted whenever the metadata in this reply changes.
    metadata is any information that is not the content (data) itself,
    including the network headers. In the majority of cases, the metadata
    will be known fully by the time the first byte of data is received.
    However, it is possible to receive updates of headers or other
    metadata during the processing of the data.

    I do use web-services/client with Qt and I noticed that some header’s information are not available when I expected it to be ! I had to ‘wait’ for this signal to check the header content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to connect to this service from my pc. https://www.epithimies.gr/Consumers/Registration/Proximity.Pulse.Consumers.Registration/Application/WebServiceDescriptors/Registration/GreeceSecured.xml using the
I'am trying to use web-service from a desktop-application I used the Tutorials in here
I am trying to connect to ldap with a php web application. If the
I'm trying to connect my stock standard, default ASP.NET MVC (web) application to the
I'm trying to connect a C# application (using Visual C# 2008 Express Edition) to
I'm building a web-service for an Android application that needs to connect to a
I am trying to connect to a gateway service: The Service says this when
I am trying to call a web service in rhosync application.rb, I see a
I am trying to connect to a network location through my ASP.NET web application
I'm trying to connect a Zend application to an SME server running LDAP with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.