title: How to get POST data as array with C#
body: <p>I'm developing an ASP.NET handler with C# that receives an array of data posted from an external Flash program. How can I use the data as array? It seems the HTTP Context used in ASP.NET automatically html-decodes the post data so that it comes out as a simple string. The separator in this case is comma (could be it's always a comma, never worked with this before).</p>
  
  <p>Seems I need either of two things:</p>
  
  <p>1) A way to get to the data in its html-encoded form, where the comma used as a separator for the arrays can ONLY represent real arrays instead of customer form input (the customer input comma would remain encoded at this point).</p>
  
  <p>2) A way to simulate the PHP <code>print_r()</code>, <code>var_dump()</code> function (don't know PHP myself, but I'm told that does the trick there) to dump the variable into an array.</p>
  
  <p>So any help on how to do either would be appreciated. Thanks in advance!</p>
  
  <p><b>Edit 1:</b> The data being posted can be for example a bunch of addresses, postalcodes and optional extra info. Such as <code>address=testroad%5F5,another%5Ftestroad%5F6&amp;postalcode=12345,56789&amp;extrainfo=,firstwasempty</code>. In that example, there were two addresses (<code>%5F</code> equals whitespace), two postalcodes, but only the second address contained <code>extrainfo</code> as the space before the comma was empty. Now once more, as English isn't my mothertongue, the problem was that possible customer-written comma gets mixed with the actual array-splitting comma after decoding.</p>