Re: dealing with empty field names in query

2009-02-23 Thread Jonathan Vanasco
On Feb 13, 2009, at 5:11 PM, Joe Schaefer wrote: We had to stop using libapreq2 for cookies, because we found out that wordpress (being a shoddy piece of software) was generating invalid cookies at times. when apreq encountered it, it segfaulted. What version of apreq was this? And did yo

Re: dealing with empty field names in query

2009-02-13 Thread Joe Schaefer
- Original Message > From: Jonathan Vanasco > To: modperl > Sent: Friday, February 13, 2009 3:30:20 PM > Subject: Re: dealing with empty field names in query > > > On Feb 6, 2009, at 4:58 PM, Phil Carmody wrote: > > > In those name/value pairs, acc

Re: dealing with empty field names in query

2009-02-13 Thread David Nicol
On Fri, Feb 13, 2009 at 3:03 PM, Jonathan Vanasco wrote: > A simple typo could render your application broken. Or a hostile competitor.

Re: dealing with empty field names in query

2009-02-13 Thread Jonathan Vanasco
On Feb 13, 2009, at 3:38 PM, André Warnier wrote: The management part of me says that if you sell shoddy merchandise to people, they are going to come back and hit you with it. Presumably, if you get such kind of posted data from a form, it is because you sent a shoddy form to the browser, which

Re: dealing with empty field names in query

2009-02-13 Thread André Warnier
Jonathan Vanasco wrote: On Feb 6, 2009, at 4:58 PM, Phil Carmody wrote: In those name/value pairs, according to HTML 4 at least, the names must begin with a letter [A-Za-z]. The empty string does not do so. Garbage in, garbage out. Part of me agrees with that philosophy. Another part of

Re: dealing with empty field names in query

2009-02-13 Thread Jonathan Vanasco
On Feb 6, 2009, at 4:58 PM, Phil Carmody wrote: In those name/value pairs, according to HTML 4 at least, the names must begin with a letter [A-Za-z]. The empty string does not do so. Garbage in, garbage out. Part of me agrees with that philosophy. Another part of me is more practical.

Re: dealing with empty field names in query

2009-02-07 Thread John ORourke
André Warnier wrote: "application/x-www-form-urlencoded" is the default, and it means that you are passing the form data appended at the end of the URL, preceded by a "?" sign, as one long string of the form "name1=value1&name2=value2..." etc.. usually known as "the query string". That is easy

Re: dealing with empty field names in query

2009-02-07 Thread André Warnier
Clinton Gormley wrote: Are you using a different version? Or is it the fact that you're POSTing it? Sorry for the lecture, but I see this so often that it seems it deserves repeating : To send the content of a to a webserver, you can use either a POST or a GET method. You should use a GET

Re: dealing with empty field names in query

2009-02-07 Thread Clinton Gormley
> 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_7acf9602cd6

Re: dealing with empty field names in query

2009-02-07 Thread Phil Carmody
--- On Sat, 2/7/09, John ORourke wrote: > Phil, can you point me to the part of the spec which > specifies that a field name must begin with an ASCII letter? http://www.w3.org/TR/html401/types.html#type-cdata Phil

Re: dealing with empty field names in query

2009-02-06 Thread John ORourke
André Warnier wrote: In those name/value pairs, according to HTML 4 at least, the names must begin with a letter [A-Za-z]. The empty string does not do so. Garbage in, garbage out. +1 + : Above the OP is talking about a request "body". Are we sure that this is really a request body, and n

Re: dealing with empty field names in query

2009-02-06 Thread André Warnier
Phil Carmody wrote: --- On Fri, 2/6/09, John ORourke wrote: We're using more and more javascript to do clever things with forms, Lots of people have said that. Probably a majority were wrong. and I think we broke the Apache2::Request parser, but wanted to check before reporting it as a bug

Re: dealing with empty field names in query

2009-02-06 Thread Phil Carmody
--- On Fri, 2/6/09, John ORourke wrote: > We're using more and more javascript to do clever > things with forms, Lots of people have said that. Probably a majority were wrong. > and I think we broke the Apache2::Request > parser, but wanted to check before reporting it as a bug. > (and tell m

dealing with empty field names in query

2009-02-06 Thread John ORourke
Hi mod_perl list, We're using more and more javascript to do clever things with forms, and I think we broke the Apache2::Request parser, but wanted to check before reporting it as a bug. (and tell me if this should go to the apreq list) With the following request body: i1=drnk4&basket%3A_ne