<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to do “curl -X PUT -d someASCII  192.168.1.1:80”]]></title><description><![CDATA[<p dir="auto">Hello All,</p>
<p dir="auto">I am stuck programming something that does the same as “curl -X PUT -d someASCII  192.168.1.1:80”. This is the code, it open the connections but my data “someASCII” is not coming:</p>
<pre><code>QUrl url("http://192.168.1.1:80");
QNetworkRequest request(url);
request.setHeader(QNetworkRequest::ContentTypeHeader,"application/x-www-form-urlencoded");
QNetworkAccessManager qnam;
qnam.put(request,”someASCII”);
</code></pre>
<p dir="auto">This is what gets you the other side of the connection. The content length is right but I get no content:</p>
<pre><code>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
Host: 192.168.1.1:80
</code></pre>
<p dir="auto">Any suggestions?</p>
<p dir="auto">Thanks<br />
Markus</p>
]]></description><link>https://forum.qt.io/topic/80181/how-to-do-curl-x-put-d-someascii-192-168-1-1-80</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 03:11:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/80181.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jun 2017 22:46:43 GMT</pubDate><ttl>60</ttl></channel></rss>