guzzle/guzzle — Issue #21: Request parameters names containing dots get converted to underscores
Author: jhigman
Created: 2012-02-13 12:34:02+00:00
State: open

Request parameter names can legally contain dots - but they get converted to underscores by the query string processing.

Example:

$client = new \Guzzle\Http\Client();
$request = $client->get("http://example.com/search?q=blah&facet.field=class");

will actually send a request like this:

GET http://example.com/search?q=blah&facet_field=class

where "facet_field" should be "facet.field".

The problem may be caused by the use of the "parse_str" function in Url.php, which will convert spaces and dots into underscores.