PHP HTTP Forwarding / Port Translation

From: Date: Tue, 12 Nov 2002 22:00:45 +0000
Subject: PHP HTTP Forwarding / Port Translation
Groups: php.general 
Request: Send a blank email to php-general+get-124073@lists.php.net to get a copy of this message
Hi People ! (Diagram below in text) I'm interested in thoughts on how to effect the equivalent of Router Network Address Translation for a PHP page. The feature that are important are: o Can process forms o Can pass images o Can manage relative HREFs o Least invasive to the end user I've tried PHP Proxy and it works fine for basic pages but Scott thinks that it needs work to do forms. Along with this I'm just wondering if we can intercept the header at a low level and just simply rewrite the port -- or is this dumb thinking? I'd be very grateful for any thoughts or references. There's a piccie of what I have in mind below -- needs monospaced fonts before it will make any sense Thanks in advance Mike Please view in a fixed-width font such as Courier. +----------------+ | | | PHP Referrer | | (Proxy) | | | --------80----| Passes distant | Firewall / | pages back to | +-+ / | requestor | |-| / | | |-| / | Passes form | |-| / | processes forward |-| / +----------------+ ------Normal HTTP Ports / | |-| | |-| +--------+ Distant URL |-| | |-| | http://distant.com/Dir |-| | +---------------+ |-| | |Target Page | +-+ | |Images / forms | | | | +-3000--> | | | | | | | | | | +----| | | / | | / +----------+/

« previous php.general (#124073) next »