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.

The following table describes the available options for setHTTPDefault.<br />

Option Description<br />

PROXY_NAME Name or IP address of the proxy server.<br />

PROXY_PORT The port number to be used on the proxy server. This only needs<br />

to be specified if the port is other than the default of 80.<br />

VERSION The version of HTTP to be used. The default version is 1.0, but<br />

it can be set to 1.1 for web servers that understand the newer<br />

protocol. The string should be ”1.0” or “1.1”.<br />

BUFSIZE The size of the buffer for HTTP data transfer between UniData<br />

and the web server. The default is 4096 however, the buffer size<br />

can be increased to improve performance. It should be entered<br />

as an integer greater than or equal to 4096.<br />

AUTHENTICATE The user name and password to gain access. The string should<br />

be “user-name:password”. Default Basic authentication can<br />

also be set. If a request is denied (HTTP staus 401/407),<br />

<strong>UniBasic</strong> will search for the default credential to automatically<br />

re-submit the request.<br />

HEADERS The header to be sent with the HTTP request. If default_headers<br />

contains an empty string, then any current user-specified default<br />

header will be cleared. Currently, the only default header<br />

<strong>UniBasic</strong> sets automatically is “User-Agent” UniData 6.0.” If<br />

you do not want to send out this header you should overwrite it<br />

with setHTTPDefault(). Per RFC 2616, for “net politeness,”an<br />

HTTP client should always send out this header. <strong>UniBasic</strong> will<br />

also send a date/time stamp with every HTTP request.<br />

According to RFC 2616, the stamp will represent time in<br />

Universal Time (UT) format. A header should be entered as a<br />

dynamic array in the form of<br />

@VM@Fm@VM.<br />

setHTTPDefault Options<br />

setHTTPDefault 1-723

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

Saved successfully!

Ooh no, something went wrong!