title: converting a curl call to a faraday request
body: <p>I have the following curl request - </p>
  
  <pre><code>`curl --socks5 #{proxy} --connect-timeout 10 -H "Accept: application/json" #{url}`
  </code></pre>
  
  <p>I want to write a faraday request instead of a curl call. I am doing this -</p>
  
  <pre><code>faraday =  Faraday.new("#{url}", ssl:{verify: false} do |f|
      f.proxy "#{proxy}"
  end
  faraday.get
  </code></pre>
  
  <p>I am getting a reponse but the response has no body or headers. Following is the response - </p>
  
  <pre><code>#&lt;Faraday::Response:0x0056075d353ad0 @on_complete_callbacks=[], @env=#&lt;Faraday::Env @method=:get @url=#&lt;URI::HTTP:0x0056075d358328 URL:main_url&gt; @request=#&lt;Faraday::RequestOptions proxy=#&lt;Faraday::ProxyOptions uri=#&lt;URI::HTTP:0x0056075dce69d0 URL:proxy_url&gt;&gt;&gt; @request_headers={"User-Agent"=&gt;"Faraday v0.9.2"} @ssl=#&lt;Faraday::SSLOptions (empty)&gt; @response=#&lt;Faraday::Response:0x0056075d353ad0 ...&gt;&gt;&gt;
  </code></pre>
  
  <p>What am I doing wrong here?</p>