[squid-users] Fwd: Encrypted browser-squid connection
Alex Rousskov
rousskov at measurement-factory.com
Mon Nov 12 19:01:21 UTC 2018
On 11/12/18 12:52 AM, Alex Crow wrote:
>
> On 12/11/2018 02:45, supraja sridhar wrote:
>> Hi,
>> When I try out the encrypted browser-squid connection, no URL loads. I
>> get the following error message in the squid access log.
>>
>> 1541989360.999 0 XXX.XX.XXX.XX NONE/000 0 NONE
>> error:transaction-end-before-headers - HIER_NONE/- -
>>
>>
>> I have Firefox-59.0.1 running on Ubuntu loaded with the following pac
>> file
>>
>> function FindProxyForURL(url, host)
>>
>> {
>>
>> return "HTTPS XXX.XX.XXX.XXX:3129"
>>
>> }
> Should be
>
> return "PROXY XXX.XXX.XXX.XXX:3129;"
Two problems with this suggestion:
* Major: "PROXY" is the wrong keyword for "Encrypted browser-squid
connection". OP's "HTTPS" was as correct as the email subject. See
https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_(PAC)_file#Return_value_format
* Minor: Semicolons inside FindProxyForURL() return values are used to
delimit blocks. In this case, there is only one block so I would not add
a semicolon before the closing quote. Adding a semicolon at the end of
the return statement (i.e. _after_ the closing quote) may be a good idea
even though it is not required in this specific context IIRC.
Alex.
More information about the squid-users
mailing list