How to do “curl -X PUT -d someASCII”

  • Hello All,

    I am stuck programming something that does the same as “curl -X PUT -d someASCII”. This is the code, it open the connections but my data “someASCII” is not coming:

    QUrl url("");
    QNetworkRequest request(url);
    QNetworkAccessManager qnam;

    This is what gets you the other side of the connection. The content length is right but I get no content:

    client received: PUT / HTTP/1.1
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 9
    Connection: Keep-Alive
    Accept-Encoding: gzip, deflate
    Accept-Language: en-US,*
    User-Agent: Mozilla/5.0

    Any suggestions?


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.