CPAINT :: Cross-Platform Asynchronous INterface Toolkit

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

Frontend: cpaint.set_transfer_mode()

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_transfer_mode ( string transfer_mode )

Sets the HTTP transfer mode.

Class

cpaint

Parameters

» string transfer_modeHTTP transfer mode (GET|POST)

Return Value

» void

API Tags

» Access: public

Default Value

» GET

Description

Defines whether CPAINT arguments are passed to the backend via HTTP GET or HTTP POST.

Please note: For some reason unknown to the public the Opera browser does not support POST. There is nothing we can do about it, sorry. If the data you need to send from the frontend to the backend does not exceed a certain (browser-dependant) range, you are fine with using GET though.

Here are some rough estimates about accepted querystring lengths:
Opera:~4050 characters
IE4+:2083 characters
Netscape 3 - 4.78:8192 characters
Netscape 6+:~2000 characters