You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-commits@perl.apache.org by pg...@apache.org on 2006/09/01 10:06:43 UTC
svn commit: r439226 - in /perl/Apache-Test/trunk: Changes
lib/Apache/TestClient.pm
Author: pgollucci
Date: Fri Sep 1 01:06:43 2006
New Revision: 439226
URL: http://svn.apache.org/viewvc?rev=439226&view=rev
Log:
Teach Apache::TestClient to encode spaces(' ') in query string of URLs
as %20. This is not a full mapping of ASCII to URL encoding.
If you need this, install LWP -- then Apache-Test will use
LWP -- which does this for you.
Modified:
perl/Apache-Test/trunk/Changes
perl/Apache-Test/trunk/lib/Apache/TestClient.pm
Modified: perl/Apache-Test/trunk/Changes
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/Changes?rev=439226&r1=439225&r2=439226&view=diff
==============================================================================
--- perl/Apache-Test/trunk/Changes (original)
+++ perl/Apache-Test/trunk/Changes Fri Sep 1 01:06:43 2006
@@ -8,6 +8,12 @@
=item 1.29-dev
+Teach Apache::TestClient to encode spaces(' ') in query string of URLs
+as %20. This is not a full mapping of ASCII to URL encoding.
+If you need this, install LWP -- then Apache-Test will use
+LWP -- which does this for you.
+[Philip M. Gollucci]
+
Allow Apache::TestClient which is used when LWP is not installed
to accept mutiple headers of the same name.
[Philip M. Gollucci]
Modified: perl/Apache-Test/trunk/lib/Apache/TestClient.pm
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/lib/Apache/TestClient.pm?rev=439226&r1=439225&r2=439226&view=diff
==============================================================================
--- perl/Apache-Test/trunk/lib/Apache/TestClient.pm (original)
+++ perl/Apache-Test/trunk/lib/Apache/TestClient.pm Fri Sep 1 01:06:43 2006
@@ -32,6 +32,12 @@
sub request {
my($method, $url, @headers) = @_;
+ ## XXX:
+ ## This is not a FULL URL encode mapping
+ ## space ' '; however is very common, so this
+ ## is useful to convert
+ $url =~ s/ /%20/g;
+
my $config = Apache::Test::config();
$method ||= 'GET';