protected function httpRequest($url, $resource = '/', $content = null, $headers = [], $method = 'GET')
    {
        $request = new HttpRequest($method, $resource, $url);
        $response = new HttpResponse();

        $headers = array_merge(['User-Agent: WobbleCodeUserBundle'], $headers);

        $request->setHeaders($headers);
        $request->setContent($content);

        $client = new BuzzCUrl();
        $browser = new BuzzBrowser($client);

        $browser->send($request, $response);

        return $response;
    }