UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

getResponseHeader Syntax getResponseHeader(request_handle, header_name, header_value) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description This function gets a specific response header value from response headers returned by submitRequest(). It can be used to query if a specific header, for example, Content-encoding, is present in the response. Parameters The following table describes each parameter of the syntax. Parameter Description The following table describes the status of each return code. 1-306 UniBasic Commands Reference request_handle The handle to the request. header_name A string containing a response header name. header_value The value of the header, if present. Otherwise, an empty string. getResponseHeader Parameters Return Code Status 0 Success. 1 Invalid request handle. 2 Header not found. get ResponseHeader Return Code

getSocketInformation Syntax getSocketInformation(socket_handle, self_ or_ peer, socket_info) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description Use the getSocketInformation function to obtain information about a socket connection. Parameters The following table describes each parameter of the syntax. Parameter Description socket_handle The handle to the open socket. self_ or_ peer Get information on the self end or the peer end of the socket. Specify 0 to return information from the peer end and non-zero for information from the self end. socket_info Dynamic Array containing information about the socket connection. For information about the elements of this dynamic array, see the following table. getSocketInformation Parameters 1-307

getSocketInformation<br />

Syntax<br />

getSocketInformation(socket_handle, self_ or_ peer, socket_info)<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 />

Use the getSocketInformation function to obtain information about a socket<br />

connection.<br />

Parameters<br />

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

Parameter Description<br />

socket_handle The handle to the open socket.<br />

self_ or_ peer Get information on the self end or the peer end of the socket. Specify 0<br />

to return information from the peer end and non-zero for information<br />

from the self end.<br />

socket_info Dynamic Array containing information about the socket connection.<br />

For information about the elements of this dynamic array, see the<br />

following table.<br />

getSocketInformation Parameters<br />

1-307

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

Saved successfully!

Ooh no, something went wrong!