Subject: | search method does not correctly handle strings with spaces |
Date: | Thu, 22 May 2014 11:23:49 -0400 |
To: | bug-WWW-Wikipedia [...] rt.cpan.org |
From: | Hugh Heldenbrand <hheldenbrand [...] gmail.com> |
I passed the string "Aminocaproic Acid" to the search method, and no result
was returned, even though there is a wikipedia page for that term.
I printed the $src variable within the search method and found that it was
generating this set of parameters to Wikipedia's index.php:
http://en.wikipedia.org/w/index.php?title=Aminocaproic%20Acid&action=raw
This is the correct set of parameters to get that page:
http://en.wikipedia.org/w/index.php?title=Aminocaproic_acid&action=raw