kitetail / zttp

A developer-experience focused HTTP client, optimized for most common use cases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preventing encoding of a query

mooseh opened this issue · comments

using Guzzle works like so
$response = $client->get('http://localhost:8002/monitoring/stats?mount=/test.mp3', [ 'auth' => ['blah', $this->pass], ]);

using Zttp fails with "The specified mount is invalid"
and the url looks like this http://localhost:8002/monitoring/stats?mount=%2Ftest.mp3
with the code:

$response = Zttp::timeout(2)->withBasicAuth("blah", $this->pass)->get("http://localhost:8002/monitoring/stats?mount=/test.mp3");

so how can i send the mount as /test.mp3 not %2Ftest.mp3