Note that there are some explanatory texts on larger screens.

plurals
  1. POAnalyzing post request
    primarykey
    data
    text
    <p>I'm trying to make post request using c++ Qt. <br> The target site is <a href="http://www.artlebedev.ru/tools/decoder/advanced/" rel="nofollow noreferrer">http://www.artlebedev.ru/tools/decoder/advanced/</a> <br>The site looks so: <img src="https://i.stack.imgur.com/fuvz5.png" alt="enter image description here"></p> <p>I inspected it with browser. <br> And there is one strange thing for me - random number in header. <br> So, I'm not sure whether I send data for post request correctly. <br></p> <p><img src="https://i.stack.imgur.com/d9jUu.png" alt="enter image description here"></p> <p>What have they done it for? I make my request so (as browser does):</p> <pre><code>postdata.append("accept:*/*&amp;"); postdata.append("accept-charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3&amp;"); postdata.append("Accept-Encoding:gzip,deflate,sdch&amp;"); postdata.append("Accept-Language:en-US,en;q=0.8&amp;"); postdata.append("Connection:keep-alive&amp;"); postdata.append("Content-Length:36&amp;"); postdata.append("Content-Type:application/x-www-form-urlencoded&amp;"); postdata.append("Cookie:__utma=1.904416008.1352897318.1352905816.1352909441.3; __utmc=1; __utmz=1.1352897318.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __atuvc=7%7C46&amp;"); postdata.append("Host:www.artlebedev.ru&amp;"); postdata.append("Origin:http://www.artlebedev.ru&amp;"); postdata.append("Referer:http://www.artlebedev.ru/tools/decoder/advanced/&amp;"); postdata.append("User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11&amp;"); postdata.append("X-Requested-With:XMLHttpRequest&amp;"); postdata.append("random:0.9632773566991091&amp;"); // I have no idea about this number postdata.append("Form Dataview URL encoded&amp;"); postdata.append("csin:0&amp;"); postdata.append("csout:0&amp;"); postdata.append("text:fvddas&amp;"); postdata.append("Decode:go"); </code></pre> <p>I get webpage in answer. But that webpage doesn't contain decoded string. Only empty stings.<br> It looks so: <img src="https://i.stack.imgur.com/Tjdtx.png" alt="enter image description here"></p> <p>This is my first attempt to make post request, please help me find a way out. <br></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload