Suma Reports With HTTP Proxy

12 views
Skip to first unread message

Gavin Spomer

unread,
Jan 12, 2024, 2:56:21 PM1/12/24
to Suma: mobile library assessment toolkit
I'm posting this to (hopefully) help other people who are running Suma behind their institution's proxy.

If you get a "cURL error 56" when running a report 

   curl_error.png

A workaround fix would be to edit this file:

   [suma_directory]/analysis/reports/lib/php/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php 

After this line (currently line 210) 

   CURLOPT_CUSTOMREQUEST  => $easy->request->getMethod(),

add a line like this 

   CURLOPT_PROXY => 'http://proxy_host:3128',

Replace proxy_host with the hostname of your institution's http proxy server.

Is this something worth adding to service/config/config.yaml for future versions of Suma? Using an http proxy is fairly common practice, I think.

 - Gavin 
Reply all
Reply to author
Forward
0 new messages