11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

setRequestHeader<br />

Syntax<br />

setRequestHeader(request_handle, header_name, header_value)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

The setRequestHeader function allows the user to set additional headers for a<br />

request.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

The following table describes the status of each return code.<br />

1-734 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

request_handle The handle to the request returned by createRequest().<br />

header_name The name of the header.<br />

header_value The value of the header.<br />

setRequestHeader Parameters<br />

Return Code Status<br />

0 Success.<br />

1 Invalid request handle.<br />

2 Invalid header (Incompatible with method).<br />

3 Invalid header value.<br />

setRequetHeader Return Codes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!