22.12.2013 Views

Roku Object Reference - imaginArt

Roku Object Reference - imaginArt

Roku Object Reference - imaginArt

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.

oUrlEvent ()<br />

• GetInt() As Integer<br />

o Returns the type of event. The following event types are currently defined:<br />

• 1 – transfer complete<br />

• 2 – transfer started. Headers are available for suitable protocols. (Not currently<br />

implemented)<br />

• GetResponseCode() As Integer<br />

o Returns the protocol response code associated with this event. For a successful HTTP request<br />

this will be the HTTP status code 200.<br />

o For unexpected errors the return value is negative. There are lots of possible negative errors<br />

from the CURL library but it's often best just to look at the text version<br />

via GetFailureReason().<br />

Here are some potential errors. Not all of them can be generated by BrightSign:<br />

Status Name Description<br />

-1 CURLE_UNSUPPORTED_PROTOCOL<br />

-2 CURLE_FAILED_INIT<br />

-3 CURLE_URL_MALFORMAT<br />

-5 CURLE_COULDNT_RESOLVE_PROXY<br />

-6 CURLE_COULDNT_RESOLVE_HOST<br />

-7 CURLE_COULDNT_CONNECT<br />

-8 CURLE_FTP_WEIRD_SERVER_REPLY<br />

-9 CURLE_REMOTE_ACCESS_DENIED<br />

-11 CURLE_FTP_WEIRD_PASS_REPLY<br />

-13 CURLE_FTP_WEIRD_PASV_REPLY<br />

-14 CURLE_FTP_WEIRD_227_FORMAT<br />

-15 CURLE_FTP_CANT_GET_HOST<br />

-17 CURLE_FTP_COULDNT_SET_TYPE<br />

-18 CURLE_PARTIAL_FILE<br />

-19 CURLE_FTP_COULDNT_RETR_FILE<br />

-21 CURLE_QUOTE_ERROR quote command failure<br />

-22 CURLE_HTTP_RETURNED_ERROR<br />

-23 CURLE_WRITE_ERROR<br />

-25 CURLE_UPLOAD_FAILED failed upload "command"<br />

-26 CURLE_READ_ERROR could open/read from file<br />

-27 CURLE_OUT_OF_MEMORY<br />

a service was denied by the server due to lack of access<br />

- when login fails this is not returned.<br />

-28 CURLE_OPERATION_TIMEDOUT the timeout time was reached<br />

-30 CURLE_FTP_PORT_FAILED FTP PORT operation failed<br />

51

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

Saved successfully!

Ooh no, something went wrong!