title: Setting http get request parameters using Qt
body: <p>I'm developing a basic application in Qt that retrieves data from Parse.com using the REST API. I went through some class references and the cURL manual but it's still not clear how you set the request parameters. For example, I'd like to authenticate a user. Here's the curl example provided by Parse:</p>
  
  <pre><code>curl -X GET \
  -H "X-Parse-Application-Id: myappid" \
  -H "X-Parse-REST-API-Key: myapikey" \
  -G \
  --data-urlencode 'username=test' \
  --data-urlencode 'password=test' \
  https://api.parse.com/1/login
  </code></pre>
  
  <p>I set the url and the headers like this </p>
  
  <pre><code>QUrl url("https://api.parse.com/1/login");
  QNetworkRequest request(url);
  
  request.setRawHeader("X-Parse-Application-Id", "myappid");
  request.setRawHeader("X-Parse-REST-API-Key", "myapikey");
  
  nam-&gt;get(request);
  </code></pre>
  
  <p>which worked fine when there were no parameters, but what should I use to achieve the same as curl does with the --data-urlencode switch?</p>
  
  <p>Thanks for your time</p>