title: Convert Record to Serialized Form Data for sending via HTTP
body: <p>Is there a way to convert this Record</p>
  
  <pre class="lang-default prettyprint-override"><code>TError = record
    code: Word;
    message: String;
  end;
  
  TState = record
    caption: String;
    address: Cardinal;
    counters: TArray&lt;Word&gt;;
    errors: TArray&lt;TError&gt;;
  end;
  </code></pre>
  
  <p>to serialized Form Data string (<code>Content-Type: application/x-www-form-urlencoded</code>) like</p>
  
  <pre class="lang-none prettyprint-override"><code>caption=Foo&amp;
  address=175896&amp;
  counters[]=2&amp;
  counters[]=2&amp;
  errors[0][code]=52&amp;
  errors[0][message]=ERR_NOT_AVAILABLE
  </code></pre>
  
  <p>for sending via HTTP?</p>
  
  <p>Maybe there is some function similar to <a href="http://api.jquery.com/jQuery.param/" rel="nofollow">JQuery.param()</a>?</p>