title: HTTP Request for get page with Special:Export
body: <p>How i can use Special:Export for my purposes. I send next header from my app:</p>
  
  <pre><code>string request = "POST en.wikipedia.org/w/index.php?title=Special:Export&amp;action=submit HTTP/1.1\r\n"
                   "Host: en.wikipedia.org\r\n"
                   "Content-Length: 32\r\n"
                   "Content-Type: application/x-www-form-urlencoded\r\n"
                   "Connection: close\r\n\r\n"
                   "catname=&amp;pages=ukraine&amp;curonly=1";
  </code></pre>
  
  <p>but it render to me page about error:</p>
  
  <blockquote>
    <p>HTTP/1.0 400 Bad Request Server: squid/2.7.STABLE9 Date: Mon, 23 Apr
    2012 14:45:12 GMT Content-Type: text/html Content-Length: 3111
    X-Squid-Error: ERR_INVALID_URL 0 X-Cache: MISS from
    amssq46.esams.wikimedia.org X-Cache-Lookup: NONE from
    amssq46.esams.wikimedia.org:80 Connection: close</p>
  </blockquote>
  
  <p>I need to create tools to replace inwiki links to help in translation. I'm sure what some such tool already exist, but i want to do it myself.</p>
  
  <p>EDITED: I use c++ and sockets.</p>
  
  <p>EDITED: new request:</p>
  
  <pre><code>string request = "POST https://en.wikipedia.org/w/index.php?title=Special:Export&amp;action=submit HTTP/1.1\r\n"
  //string request = "GET https://en.wikipedia.org/w/index.php?title=Special:Export&amp;pages=ukraine&amp;curonly=1\r\n"
                   "Host: en.wikipedia.org\r\n"
                   "User-Agent: MyCoolTool\r\n"
                   "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"
                   "Accept-Language: en-us,en;q=0.5\r\n"
                   "Accept-Encoding: gzip, deflate\r\n"
                   "Content-Length: 32\r\n"
                   "Content-Type: application/x-www-form-urlencoded\r\n"
                   "Connection: close\r\n\r\n"
                   "catname=&amp;pages=Ukraine&amp;curonly=1";
  </code></pre>
  
  <p>When i try to get just page</p>
  
  <pre><code>string request = "GET http://en.wikipedia.org/wiki/Ukraine\r\n" ...
                   "User-Agent: YolaTool/0.1\r\n" ...
  </code></pre>
  
  <p>i have</p>
  
  <blockquote>
    <p>Scripts should use an informative User-Agent string with contact
    information, or they may be IP-blocked without notice.</p>
  </blockquote>