Hi Samuele and All,

From our Invenio server we can only access the Internet via a http proxy.
For most purposes this can be done using environment variables http_proxy,
HTTP_PROXY, ...
However, for OAI Harvest this seems not to work. Looking into oai_harvest_getter.py I found that there httplib is used in the function OAI_Request(). And searching a bit for use of proxies together with httplib I found that httplib does not respect the environment variables like http_proxy (as opposed to urllib). Is this true?

The way to use a proxy with httplib seems to be:
conn = httplib.HTTPConnection("my.proxy.host", "proxy_port")
conn.request("GET", "http://OAI.source.host:port/path";)
instead of
conn = httplib.HTTPConnection("OAI.source.host", "port")
conn.request("GET", "/path")

Do you know an easy way to get OAI Harvest to work behind a proxy, i.e. without hacking oai_harvest_getter.py?

Best wishes,
Stefan

--
Stefan Hesselbach
Digital Library & Content Management
Informationstechnologie

Tel.:   +49-6159-71-1787
E-Mail: [email protected]

GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
Planckstr. 1
D-64291 Darmstadt
www.gsi.de

Gesellschaft mit beschraenkter Haftung
Sitz der Gesellschaft: Darmstadt
Handelsregister: Amtsgericht Darmstadt, HRB 1528

Geschaeftsfuehrung: Professor Dr. Dr. h.c. mult. Horst Stoecker,
Peter Hassenbach, Dr. Hartmut Eickhoff

Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt

Reply via email to