CPAINT :: Cross-Platform Asynchronous INterface Toolkit

Please note: CPAINT nor this website is under active development.

Frontend: cpaint.set_proxy_url()

cpaint Method Summary

void set_debug()
void set_proxy_url()
void set_transfer_mode()
void set_async()
void set_response_type()
void set_persistent_connection()
void set_use_cpaint_api()
void set_auth_user()
void set_auth_pass()
void call()

cpaint Property Summary

boolean capable

void set_proxy_url ( string proxy_url )

defines the URL of the proxy script

Class

cpaint

Parameters

» string proxy_urlURL to the CPAINT proxy file

Return Value

» void

API Tags

» Access: public

Default Value

» null(none)

Description

Assigns the URL to the CPAINT proxy script on your local server.

When CPAINT is querying remote backends you must use the CPAINT proxy script to communicate with the remote backend. Modern browsers do not allow remote calls by JavaScript to prevent cross-site scripting attacks.