Please note: CPAINT nor this website is under active development. |
Proxy Utility
Also see
cpaint proxy script
Author(s)
» Paul Sullivan <wiley14|at|gmail.com>
» Dominique Stender <dstender|at|st-webdevelopment.de>
Information Tags
» Version: 2.1.0
» Copyright: Copyright (c) 2005-2006 Paul Sullivan, Dominique Stender - http://sf.net/projects/cpaint
» License: released under the terms of the GPL.
Description
Modern browsers prevent JavaScript to do HTTP requests to remote servers. Only the server where the JavaScript itself and the embedding webpage come from can be queried.
While this is good for security - think cross-site scripting - we think this is limiting.
That's why CPAINT comes with proxy scripts on the backend - one script for each language supported by CPAINT. What a proxy script does is to act as HTTP proxy for the CPAINT frontend.
The proxy script takes the arguments passed to it by the frontend call() method and forwards them to a remote URL. The response from the remote URL will then be forwarded back to the CPAINT frontend.
Please note that you should be extra careful not to open the doors for cross-site scripting with this.
Note: Starting in v2.0.2, the proxy utility has been secured. Please see the security page for additional information.