XML-RPC Bridge
Release date = 2005-09-10
perl gus_xml-rpc_bridge.pl
http://127.0.0.1/cgi-bin/gus_xml-rpc_bridge.pl
An XML-RPC CGI bridge for port-forwarding from cgi-bin
in Apache webserver to stand-alone XML-RPC server running on the same PC.
Treat the same as any other CGI script on Apache web server.
Copy this script into thevof your Apache server. Then check its shebang for your own path to Perl, which...unless you run NetBSD OS...may be something other than /usr/pkg/bin/perl
. Lastly perform chmod 755
upon it.
It can be done. That is certain. But this author has not used Apache on Win32 for several years and has forgotten how. Whoever can provide details, please email me.
Install these into Perl via ActiveState PPM, else into NetBSD pkgsrc or CPAN as appropriate for your OS: Frontier::Client
, Frontier::RPC2
, Sys::Hostname::Long
.
Particularly useful together with the companion Perl scripts gus_xml-rpc_server.pl
(running on same PC) and gus_xml-rpc_client_tk.pl
(running on some other network-attached PC). This Perl CGI script will permit the bridging of a firewall by forwarding from port 80 on Apache through to port 8080 on XML-RPC...and back again. Refer to documentation for companion scripts at these URLs: http://starling.us/tet/gus_perl/gus_xml-rpc_pl/gus_xml-rpc_server.html and http://starling.us/tet/gus_perl/gus_xml-rpc_pl/gus_xml-rpc_client_tk.html.
Of course, the bridge, client and server may all be run on a single PC for testing and experimentation.
Gan Uesli Starling <gan@starling.us>
Copyright (c) 2005, Gan Uesli Starling. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Network