Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 82412
Status: open
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: EDAVIS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.60
Fixed in: (no value)



Subject: $DEFAULT_QUERY_FORM_DELIMITER should not affect POST requests
Download (untitled) / with headers
text/plain 745b
Most web servers nowadays accept 'new-style URIs' where parameters are separated by ; instead of &. You can get these by setting $URI::DEFAULT_QUERY_FORM_DELIMITER = ';'. However, for POST requests, usually the ; separator is not valid. Data encoded as application/x-www-form-urlencoded must have & separating parameters, as far as I can tell from <http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1>. This also appears to be the case in practice. I suggest changing the behaviour so that this variable affects only GET requests, with POST still using & as before. If that is too great a change, please introduce separate variables so that the query form delimiter can be set differently for GET and POST (and PUT, etc) requests.
Download (untitled) / with headers
text/plain 124b
The bug tracker mangled the link I included, here it is again: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
Download (untitled) / with headers
text/plain 279b
I should add that the feature of setting the default delimiter is one which I requested and which gnuruandstuff@yahoo.co.uk implemented, see #31273. It works great for GET requests - thank you - but leads to puzzling failures with POST forms until you realize what is happening.
This bug was probably misfiled; a replacement bug has been filed against LWP as #84850.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.