Convert array syntax to PHP 5.3 compatible syntax.
Add ability to set request method using a "method" query parameter.