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 each parameter of the syntax.<br />

Parameter Description<br />

Note: If the URL you define contains a searchpart, you must define it in its encoded<br />

format. For example, a space is converted to +, and other nonalphanumeric<br />

characters are converted to %HH format.<br />

You do not need to specify the host and path parameters in their encoded formats.<br />

UniVerse BASIC encodes these parameters prior to communicating with the web<br />

server.<br />

Return Code<br />

The return code indicating success or failure. The following table describes the value<br />

of each return code.<br />

You can also use the UniVerse BASIC STATUS() function to obtain the return status<br />

from the function.<br />

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

host Either a name string or an IP address of the host system.<br />

port The port number to which you want to connect. If you do not specify<br />

port, UniVerse defaults to 80. Omit the preceding colon if you do not<br />

specify this parameter.<br />

path Defines the file you want to retrieve on the web server. If you do not<br />

specify path, UniVerse defaults to the home page.<br />

searchpart Use searchpart to send additional information to a web server.<br />

URL Parameters<br />

Return Code Description<br />

0 Function complete successfully.<br />

1 Invalid URL syntax.<br />

2 Invalid HTTP method (indicates the POST method is not supported by the<br />

HTTP server).<br />

101 Invalid security context handle.<br />

SOAPCreateSecureRequest Return Codes

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

Saved successfully!

Ooh no, something went wrong!