In my PHP Guzzle client code, I have something like
$c = new Client(\'http://test.com/api/1.0/function\'); $request = $c->get(\'?f=4&l=2&p=3&
You can:
$c = new Client('http://test.com/api/1.0/function'); $request = $c->get(); $q = $request->getQuery(); $q->set('f', 4); $q->set('l', 2); $q->set('p', 3); $q->set('u', 5);