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.

createRequest<br />

Syntax<br />

createRequest(URL, http_method, request_handle)<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 createRequest function creates an HTTP request and returns a handle to the<br />

request.<br />

Parameters<br />

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

Parameter Option<br />

URL A string containing the URL for a resource on a web server. An<br />

accepted URL must follow the specified syntax defined in RFC 1738.<br />

The general format is: http://:/?.<br />

The host can be either a name string or IP address. The port is the port<br />

number to which you want to connect, which usually defaults to 80 and<br />

is often omitted, along with the preceding colon. The path tells the web<br />

server which file you want, and, if omitted, means “home page” for the<br />

system. The searchpart can be used to send additional information to a<br />

web server.<br />

http_method A string which indicates the method to be performed on the resource.<br />

See the table below for the available (case-sensitive) methods.<br />

request_handle A handle to the request object.<br />

createRequest Parameters<br />

createRequest 1-180

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

Saved successfully!

Ooh no, something went wrong!