title: Reading HTTP headers
body: <p>I am trying to connect my application with a web service and <a href="https://stackoverflow.com/questions/6774200/connecting-a-desktop-application-with-a-website">here</a> ,a user suggested to send custom headers back to my application.</p>
  
  <p>I am using this code</p>
  
  <pre><code>void Coonnec::serviceRequestFinished(QNetworkReply *reply)
  {
      QByteArray bytes = reply-&gt;readAll();
  
      if (reply-&gt;error() != QNetworkReply::NoError) {
          qDebug() &lt;&lt; "Reply error: " + reply-&gt;errorString();
      }
      else
      {
          qDebug() &lt;&lt; "Uploaded: " + QDateTime::currentDateTime().toString();
          qDebug() &lt;&lt; reply-&gt;rawHeaderList();
      }
      reply-&gt;close();
      bytes.clear();
      reply-&gt;deleteLater();
  }
  </code></pre>
  
  <p>from php i send this header</p>
  
  <pre><code>header('XAppRequest-Status: complete');
  </code></pre>
  
  <p>When running the application i can see that i get this header but i can't take the value of it cause</p>
  
  <pre><code>reply-&gt;rawHeader(bytes);
  </code></pre>
  
  <p>returns nothing.</p>
  
  <p>How can i take the value 'complete'?</p>