[Koha-bugs] [Bug 12620] Proxy Add-on for Koha z39.50/SRU servers
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 8 08:18:09 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12620
--- Comment #11 from David Cook <dcook at prosentient.com.au> ---
Adam inspired me to test this, and I got a proof-of-concept working in Docker
using a Squid proxy.
Here are the steps if someone wants to reproduce my efforts:
Windows:
1. docker pull sameersbn/squid:3.5.27-2
2. docker run --name squid --publish 3128:3128 sameersbn/squid:3.5.27-2
3. docker cp squid:/etc/squid/squid.conf ./squid.conf.default
4. cp ./squid.conf.default ./squid.conf
5. sed -i 's/http_access deny all/http_access allow all/' ./squid.conf
6. sed -i 's/http_access deny CONNECT/http_access allow CONNECT/'
./squid.conf
7. docker stop squid
8. docker rm squid
9. docker run --name squid --publish 3128:3128 --volume
"/$(PWD)/squid.conf:/etc/squid/squid.conf" --net koha_kohanet
sameersbn/squid:3.5.27-2
Koha container:
1. http_proxy=squid:3128 curl -v https://www.google.com
2a. yaz-client connect:squid:3128,tcp:lx2.loc.gov:210
2b. base LCDB
2c. find test
2d. show 1
3a. Use ZOOM in a Perl script to connect to Squid proxy
3b. This works (shows 10000 results connecting to LOC LCDB database and
searching for as title of ‘test’)
3c. Script included below*
*
#!/usr/bin/perl
use ZOOM;
my $conn = new ZOOM::Connection('connect:squid:3128,tcp:lx2.loc.gov:210');
$conn->option( databaseName => 'LCDB' );
my $rs = $conn->search_pqf('@attr 1=4 test');
my $n = $rs->size();
warn $n;
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list