title: Sending an HTTP request using QNetworkAccessManager
body: <p>I've got a problem trying to send a request using QNetworkAccessManager from a QObject derived class.</p>
  
  <p>Firstly in my constructor I do the following:</p>
  
  <pre><code>QObject::connect( &amp;mAccessManager, SIGNAL( finished( QNetworkReply* ) ), this, SLOT( requestFinished( QNetworkReply* ) ) );
  </code></pre>
  
  <p>Then when I wish to send the request I do the following:</p>
  
  <pre><code>QNetworkRequest checkLogin( QUrl( address ) );
  checkLogin.setHeader( QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded" );
  
  mByteArray  = QByteArray( "POST \"client\" : oxres" );
  QNetworkReply* pReply   = mAccessManager.post( checkLogin, mByteArray );
  </code></pre>
  
  <p>Now at this point I expect to wait around for a few seconds and then receive a response to my class's slot requestFinished.  It doesn't however get called.</p>
  
  <p>I'm at a loss as to what I'm doing wrong.  Anyone got any ideas? (I'm sure its something stupidly simple). </p>
  
  <p><strong>Edit</strong>: Ok this is very weird.  I have wireshark collecting packets in the background and when i generate that post request I see nothing happening in wireshark.  So why isn't it sending?? </p>
  
  <p><strong>Edit 2</strong>: Hmm it seems that the problem lies with me sending a request to an https:// address ... why would that be??</p>