Difference between revisions of "Proxy settings"

From ArchWiki
Jump to: navigation, search
(About libproxy: added reference to Midori browser)
(Environment variables)
Line 7: Line 7:
 
Below is an example on how to set these variables in a shell:
 
Below is an example on how to set these variables in a shell:
 
<pre><nowiki>
 
<pre><nowiki>
  http_proxy=http://10.203.0.1:5187/
+
  export http_proxy=http://10.203.0.1:5187/
export http_proxy
+
 
</nowiki></pre>
 
</nowiki></pre>
  

Revision as of 10:36, 1 October 2009

Introduction

A proxy is "an interface for a service, especially for one that is remote, resource-intensive, or otherwise difficult to use directly". Source: Proxy - Wiktionary.

Environment variables

Some programs (like wget) use environment variables of the form "protocol_proxy" to determine the proxy for a given protocol (e.g. HTTP, FTP, ...).

Below is an example on how to set these variables in a shell:

 export http_proxy=http://10.203.0.1:5187/

Automation with network managers

About libproxy

libproxy (which is available in the extra repository) is an abstraction library which should be used by all applications that want to access a network resource. It still is in development but could lead to a unified and automated handling of proxies in GNU/Linux if widely adopted.

The role of libproxy is to read the proxy settings form different sources and make them available to applications which use the library. The interesting part with libproxy is that it offers an implementation of the Web Proxy Autodiscovery Protocol and an implementation of Proxy Auto-Config that goes with it.

The Template:Codeline binary takes URL(s) as argument(s) and returns the proxy/proxies that could be used to fetch this/these network resource(s).

Note: the 0.2.3-1 version doesn't work for me.

As of 06/04/2009 libproxy is required by libsoup. It is then indirectly used by the Midori browser.