I haven't used it myself, but I'm pretty sure that Greg Pendlebury
contributed the functionality you need. There is an option to set proxy host
and port in the trunk config.ini since about SVN r1353.
Here is an email Greg sent to the list in August:
I've finally got around to doing the work I've been wanting on the
proxyserver settings. It's r1290 and r1308 in the USQ branch at the
anyone would like to vet the content before I move to trunk please let me
Web requests using fopen() and file_get_contents() were easy, there's simple
proxy settings in index.php and bookcover.php that cover them picking up
proxy settings from the config file (r1290). Use of HTTP_Request was more
annoying because you have to put in the proxy settings every time it's used
in between the object creation and the sendRequest() call.
In r1290 I was finding places in the code where HTTP_Request is used and
adding them manually, but stopped after finding several thinking there must
be a better way. So r1308 has a new 'sys/Proxy_Request.php' object that
simply extends HTTP_Request and I've pointed all the old calls at that.
You can expressly disable/enable the proxy after creating the object,
although I haven't found a need to. When you do the final sendRequest() the
request object will:
1) As a priority obey any express instructions it's been given regarding
2) In the absence of express instruction, it will default to no proxy for
'localhost' traffic, and default to using the proxy for everything else.
This isn't hard to extend (eg. I was thinking of including in the config
file : *dont_proxy = localhost, usq.edu.au*)
3) Check the config file for proxy settings and use if it's been instructed
to (and they exist of course).
Areas I found using the HTTP_Request (and changed):
Drivers : Innovative, NCIP, Voyager
Bookcovers : Google (directly), Amazon (via sub-class)
Wikipedia : Author screen (classic skin)
Record Screen : Ajax SFX, Excerpt, Export, Reviews
Sys : SRU (Worldcat?), Solr/Zebra indexes
Things like the solr index call *probably* will never need to be proxied,
that's why the turn on/off calls are there and obviously the default to not
proxying for localhost traffic.
Many of those areas above I don't even know how to test, but I also can't
see them breaking for such a simple change.
2009/11/25 Cornelison, Lee - 1150 - MITLL <cornelison@...>
> I have bibliographic searches working, and circulation retrieval working
> through the Lehigh U. Sirsi ILS connector.
> There are several huge performance issues to deal with next; I can complete
> only 1 search, before the VuFind install has to be re-started.
> The most immediate problem seems to be that any searches hang up on
> retrieving book cover images.
> All HTTP traffic here goes through an HTTP proxy firewall, and so the
> graphic file requests never get satisfied.
> Each image request gets blocked from all of the retrieval options, hanging
> up on each in turn, until the final timeout threshold is reached.
> This means that each results page takes about 3-5 minutes to finish all
> loading activity.
> Is there a means to turn on HTTP proxy awareness for VuFind -- either via a
> global config, or some method specifically for the bookcover.php script?
> Do I need to try adding some PHP module for proxy activities ( I am a Perl
> guy, and am thinking of a PHP equivalent to the Perl LWP modules' library
> Lee Cornelison
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> Vufind-tech mailing list