cgi.pm

Processing multipart/form-data in Perl invokes Apache-error with Apple-devices, when a form-file-element is empty

萝らか妹 提交于 2019-12-11 09:52:03
问题 My application is written in Perl 5.14.2. I process multipart/form-data with use CGI; $query = new CGI; Since a few weeks this process invokes a timeout at Apache-level on specific Apple-devices: (70007)The timeout specified has expired: Error reading request entity data The apple-devices that invoke the timeout-error all do have Applewebkit/605 in common. This is mostly a Safari browser version 11 on a Mac. The formdata is send through: var fData = new FormData($('#myForm')[0]); jQuery.ajax(

Data posted as “multidimensional array” (read into arrays: PERL)

让人想犯罪 __ 提交于 2019-12-11 09:48:02
问题 I'm using a new payment processor, and their data sheet simply says their information is posted as multidimensional array. To quote just a few of the variables: products[x][prod_number] products[x][prod_name] products[x][prod_type] ** There are ten such arrays I have discovered if the person orders 3 items, there is a variable called "item_count" which means X becomes [0],[1] and [2] But what is the method to read in this POSTed data and separate it. Sure it's gonna be a 'foreach' loop of