perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Gormley <cl...@traveljury.com >
Subject Re: dealing with empty field names in query
Date Sat, 07 Feb 2009 12:15:47 GMT

> With the following request body:
> 
> i1=drnk4&basket%3A_new_de9a792da0f5127d72d7c6a5f6b2d4c5%3Aquan
> tity=1&basket%3A_new_de9a792da0f5127d72d7c6a5f6b2d4c5%3Aid=de9a792da0f5127d72d7c6a5f
> 6b2d4c5&i2=clth12&basket%3A_new_7acf9602cd6ab0ee86f77efeaaffefff%3Aquantity=1&basket
> %3A_new_7acf9602cd6ab0ee86f77efeaaffefff%3Aid=7acf9602cd6ab0ee86f77efeaaffefff&i3=&=
> &=&i4=&=&=&i5=&=&=&i6=&=&=&action=insert&x=46&y=17

When I pass the above as a query string to my site, Apache2::Request
(from libapreq2-2.08) parses it as follows:

----------------------------------------------------------------------
$APR_Request_Param_Table1 = bless( {
      "="          => '',
      "="          => '',
      "="          => '',
      "="          => '',
      "="          => '',
      "="          => '',
      "="          => '',
      "="          => '',
      action       => 'insert',
      "basket:_new_7acf9602cd6ab0ee86f77efeaaffefff:id"
                   => '7acf9602cd6ab0ee86f77efeaaffefff',
      "basket:_new_7acf9602cd6ab0ee86f77efeaaffefff:quantity"
                   => 1,
      "basket:_new_de9a792da0f5127d72d7c6a5f6b2d4c5:id"
                   => 'de9a792da0f5127d72d7c6a5f6b2d4c5',
      "basket:_new_de9a792da0f5127d72d7c6a5f6b2d4c5:quantity"
                   => 1,
      i1           => 'drnk4',
      i2           => 'clth12',
      i3           => '',
      i4           => '',
      i5           => '',
      i6           => '',
      x            => 46,
      y            => 17
    }, 'APR::Request::Param::Table' );
----------------------------------------------------------------------


Are you using a different version?  Or is it the fact that you're
POSTing it?

Clint


Mime
View raw message