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.

Method Description<br />

TRACE The TRACE method is used to invoke a remote, application-layer<br />

loop- back of the request message. HTTP 1.1 and later.<br />

PUT The PUT method requests that the enclosed entity be stored under<br />

the supplied Request-URI. HTTP 1.1 and later but not supported.<br />

CONNECT /* HTTP/1.1 and later but not supported */<br />

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

Return<br />

Code Status<br />

0 Success.<br />

createRequest Methods (continued)<br />

1 Invalid URL (Syntactically).<br />

2 Invalid method (For HTTP 1.0, only GET/POST/HEAD)<br />

Return Code Status<br />

Note: If URL does include a searchpart, it must be in its encoded format (space is<br />

converted into +, and other non-alphanumeric characters are converted into %HH<br />

format. See addRequestParameter() for more details). However, host and path are<br />

allowed to have these “unsafe” characters. <strong>UniBasic</strong> will encode them before<br />

communicating with the web server.<br />

This function can also be used later to support other protocols (like FTP, in which<br />

case the URL supplied would be in the form of:<br />

ftp://:@:/cwd1/.../cwdN>/;type= . The http_method option would be ignored for an FTP request.<br />

createRequest 1-182

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

Saved successfully!

Ooh no, something went wrong!