Wednesday 15 May 2013

How to get POST data as array with C# -


I am developing an ASP.NET handler with C # that receives data posted by external flash program is. How can I use data as an array? It appears that the HTTP context used in ASP.Net automatically decodes the post data HTML so that it can be removed as a simple string. In this case the separator is a comma (maybe it is always a comma, this has never been worked before).

I need one of two things:

1) For data in your HTML-encoded form, where arrays can be used as a separator for arrays Only customers can represent real arrays instead of input of input (customer input comma will remain encoded at this point). 2) PHP print_r () , a way to emulate the var_dump () function (does not know PHP itself, but I have been told That's the move there) dump the variable to an array.

So any help would be appreciated in advance thanks!

Edit 1: The data being posted can be for a group of examples, postcode and optional additional information. Such as address = testroad% 5F5, second% 5thterthreads% 5F6 and postal code = 12345,56789 and extrainfo =, firstfix . In that example, two addresses (% 5F equals each) were two postal codes, but only in the second address was the space before the comma was empty as extrainfo . Now once again, as English is not my motherhood, the problem was that the prospective customer-written comma is mixed with the actual array-split comma after decoding. Public Void Process Requests ({HTTP Context References}} ({var reader = new streamReader}


No comments:

Post a Comment