11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

setHTTPDefault<br />

Syntax<br />

setHTTPDefault(option, 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 setHTTPDefault function configures the default HTTP settings, including<br />

proxy server and port, buffer size, authentication credential, HTTP version, and<br />

request header values. <strong>UniBasic</strong> uses these settings with every HTTP request that<br />

follows.<br />

If you require all outgoing network traffic to go through a proxy server, you should<br />

call setHTTPDefault() with value containing the proxy server name or IP address as<br />

well as the port (if other than the default of 80).<br />

Parameters<br />

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

Parameter Description<br />

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

option A string containing an option name. See the table below for the options<br />

currently defined.<br />

value A string containing the appropriate option value.<br />

setHTTPDefault Parameters

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

Saved successfully!

Ooh no, something went wrong!