web - How to pass a webrequest to localhost in PHP? -
i have public facing cgi interface. supports php. (let's say: domain.com/cgi/proxy.php)
then have java process (embedded web server) listens localhost:9090.
is there possibility create php script, routes requests cgi script java process on localhost. proxy in script.
should this: web -> public facing proxy.php -> local java process listening on 9090 -> return
you should use sockets in case. @ php docs:
http://www.php.net/manual/it/book.sockets.php
and here example:
http://www.php.net/manual/it/sockets.examples.php
you should connect localhost on port 9090 (look @ example) , send data want received java listener.
Comments
Post a Comment