[Isis-users] ABCD and Z3950 behind a proxy
Guilda Ascencio
gascencio at msinfo.info
Tue Dec 7 15:14:42 CET 2010
The script dataentry/z3950-01.php is in charge of establishing the
connection with the Z39.50 server.
In that script there is a command $id = yaz_connect($host[$i]);
that does the z59.50 connection. The yaz_connect commad has the syntax: *
yaz_connect* ( string $zurl [,
mixed<http://www.php.net/manual/en/language.pseudo-types.php#language.types.mixed>
$options ] ) (http://php.net/manual/en/function.yaz-connect.php)
that means that some options can be attached to the commad. One of the
options is the proxy server.
I thing that if the script dataentry/z3950-01.php es modified in this way:
if ($fullquery!="" && $expr_isbn!=""){
$fullquery="@or ".$expr_isbn ." " .$fullquery;
}else{
if ($expr_isbn!="") $fullquery=$expr_isbn;
}*
** $options=array("proxy"=>"your_proxy");** //line added*
for ($reintentar=0;$reintentar<=$intentos;$reintentar++){
for ($i = 0; $i < $num_hosts; $i++) {
* $id = yaz_connect($host[$i],$options);** // line modified*
$ids[$i] = $id;
It could work.
Please let me know the results because the next step will be to add the
proxy server as a parameter in the z3950 configuration module
Regards,
Guilda
2010/12/7 MEGNIGBETO Eustache (RELEX-COTONOU) <
Eustache.MEGNIGBETO at ec.europa.eu>
> Hello,
>
>
>
> I'm using ABCD on a local server that requires proxy identification before
> connecting to Internet. So I have problem when I try to use the Z39.50
> functions. ABCD has never succeeded in connecting to Z39.50 server where as
> on other installation without proxy, there is no problem.
>
> Does anybody already encounter such a problem? And how has it be managed?
>
>
>
> Thank you.
>
> *-----------------------------------------------------------------------*
> *Eustache MEGNIGBETO*
> *01 BP 910 Cotonou - BENIN*
> *Tél: +229 21 31 26 17 / Fax: +229 21 31 53 28*
>
>
>
> _______________________________________________
> isis-users mailing list
> isis-users at iccisis.org
> http://lists.iccisis.org/listinfo/isis-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20101207/dba34a79/attachment-0001.htm>
More information about the isis-users
mailing list