util::http::append_to_payload (private)

 util::http::append_to_payload [ -content content ] [ -file file ] \
    [ -base64 ] encoding max_size payload spool_file wfd

Defined in packages/acs-tcl/tcl/http-client-procs.tcl

Appends content to a POST payload making sure this doesn't exceed given max size. When this happens, proc creates a spool file and writes there the content.

Switches:
-content (optional)
-file (optional)
-base64 (optional, boolean)
Parameters:
encoding (required)
max_size (required)
payload (required)
spool_file (required)
wfd (required)
Returns:
a list in the format {total_payload spooling_file spooling_file_handle}

Partial Call Graph (max 5 caller/called nodes):
%3 util::http::post_payload util::http::post_payload (public) util::http::append_to_payload util::http::append_to_payload util::http::post_payload->util::http::append_to_payload ad_file ad_file (public) util::http::append_to_payload->ad_file ad_opentmpfile ad_opentmpfile (public) util::http::append_to_payload->ad_opentmpfile

Testcases:
No testcase defined.
[ show source ]
Show another procedure: