0% found this document useful (0 votes)
13 views2 pages

Sense Printing

This document provides instructions on setting up a proxy for the hidden Chromium browser used in the Qlik Sense printing service. It details the supported proxy settings, including options for no proxy, autodetect, and specific proxy servers, as well as guidelines for using PAC files. The document concludes with steps to modify the printing configuration and restart the service to apply the changes.

Uploaded by

tt3795721
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Sense Printing

This document provides instructions on setting up a proxy for the hidden Chromium browser used in the Qlik Sense printing service. It details the supported proxy settings, including options for no proxy, autodetect, and specific proxy servers, as well as guidelines for using PAC files. The document concludes with steps to modify the printing configuration and restart the service to apply the changes.

Uploaded by

tt3795721
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

6/3/2021 sense-printing/08_sense_printing_proxy.

md at master · qlik-trial/sense-printing

qlik-trial / sense-printing Private

Code Issues 1 Pull requests 1 Actions Projects Wiki Securi

master

sense-printing / docs / 08_sense_printing_proxy.md

enrico-mezzato-qlik Update 08_sense_printing_proxy.md History

1 contributor

53 lines (35 sloc) 2.82 KB

How to set up a proxy for the hidden


Chromium browser used to render images
If after increasing the logging level to TRACE some HTTP responses are empty, the reason
may be an internal proxy blocking outbound requests.

Which proxy settings are supported


The proxy settings are set as command line arguments of the renderer and they are passed
as is to the hidden Chromium. If a proxy needs setting add (or append the string to
webrender-args) a valid setting to the value string in the printing.config file:

<add key="webrenderer-args" value="..." />

Inside the value string all the Chromium proxy settings specified at
https://www.chromium.org/developers/design-documents/network-settings can be used.
The main use cases are:

1. no proxy: <add key="webrenderer-no-proxy-server" value="false" />

2. autodetect: <add key="webrenderer-args" value="--proxy-auto-detect" />


https://github.com/qlik-trial/sense-printing/blob/master/docs/08_sense_printing_proxy.md 1/2
6/3/2021 sense-printing/08_sense_printing_proxy.md at master · qlik-trial/sense-printing

3. proxy server: <add key="webrenderer-args" value="--proxy-server=&quot;[<proxy-


scheme>://]<proxy-host>[:<proxy-port>]&quot;" />

Specify the HTTP/SOCKS4/SOCKS5 proxy server to use for requests. An individual


proxy server is specified using the format: [<proxy-scheme>://]<proxy-host>[:<proxy-
port>] , example: socks5://127.0.0.1:8888 default: empty

For instance for myproxy listening on port 8888, scheme HTTP, use:

<add key="webrenderer-args" value="--proxy-server=&quot;http://myproxy:8888&quot

4. In case a script is dynamically blocking HTTP requests based on certain rules. Make
sure the internal proxy script adheres to the Chromium pac proxy settings standards.
A valid pac file can also be generated through the chrome Proxy SwitchyOmega
extension. If the current script is compliant this is not needed.

The pac specifications are at: https://developer.mozilla.org/en-


US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-
Configuration_(PAC)_file

If a new pac file is required alongside an existing proxy script this can be deployed to
an internal proxy website next to the current script. For the sake of example let us call
this file printing_proxy.pac,it must be reachable at eg:
http://myproxy:8080/printing_proxy.pac

<add key="webrenderer-args" value="--proxy-pac-url=http://myproxy:8080/printing_

Change the config file and restart the printing service


1. Stop the printing service

2. Change the printing config file to use one of the settings of the previous section:

<add key="webrenderer-args" value="..." />

3. Restart the printing service

https://github.com/qlik-trial/sense-printing/blob/master/docs/08_sense_printing_proxy.md 2/2

You might also like