How to pass several parameters when uploading image to imgur
<p>I'm trying to make a function that uploads a picture to imgur and the function is working in the form below but differently then I was expecting.</p>

<pre><code>bool ImgurUploader::upload( QImage image )
{
    QByteArray byteArray;
    QBuffer buffer(&amp;byteArray);
    image.save(&amp;buffer, "PNG");    

    QByteArray params;
    params.append(byteArray.toBase64());

    QNetworkRequest request;
    request.setUrl(QUrl("https://api.imgur.com/3/image"));
    request.setRawHeader("Content-Type", "application/application/x-www-form-urlencoded");
    request.setRawHeader("Authorization", "Client-ID 16d41e28a3ba71e");

    mAccessManager-&gt;post(request, params);
}
</code></pre>

<p>I was expecting and trying at first to pass the image param in form like this:</p>

<pre><code>params.append("image=");
params.append(byteArray.toBase64());
</code></pre>

<p>But when I do I get an "400 Bad Request" and the error is "Invalid URL".</p>

<p>How can I send several params? Am I using the wrong approach?</p>