pyicap
pyicap copied to clipboard
reqmod_location.py is not working on ssl_bump mode
Hello,
I am trying to integrate the reqmod_location.py script with a squid through sl_bump mode. When I am using HTTP request it works, but when I try HTTPS request I get an error.
https://yahoo.com/ GET HTTP/1.1 503 Service Unavailable Host: yahoo.com User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:58.0) Gecko/20100101 Firefox/58.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br DNT: 1 Connection: keep-alive Upgrade-Insecure-Requests: 1
Server: squid/3.5.19 Mime-Version: 1.0 Date: Wed, 01 Aug 2018 18:51:04 GMT Content-Type: text/html;charset=utf-8 Content-Length: 3684 X-Squid-Error: ERR_DNS_FAIL 0 Vary: Accept-Language Content-Language: en X-Cache: MISS from mydlp01 X-Cache-Lookup: NONE from mydlp01:3128 Via: 1.1 mydlp01 (squid/3.5.19) Connection: close
On the browser, I get the following message:
The following error was encountered while trying to retrieve the URL: https://http/* Unable to determine IP address from host name "http" The DNS server returned: Server Failure: The name server was unable to process this query. This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.