beautypg.com

Rohttpserver.addposttoformdata – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 201

background image

193

AddGetFromEvent(parameters As roAssociativeArray) As Boolean: Requests that an event of type
roHttpEvent be sent to the configured message port. This occurs when an HTTP GET request is made for the
specified URL path.

AddPostToString(parameters As roAssociativeArray) As Boolean: Requests that an event of type
roHttpEvent be sent to the configured message port. This occurs when an HTTP POST request is made for the
specified URL path. Use the roHttpEvent.GetRequestBodyString() method to retrieve the posted body.

AddPostToFile(parameters As roAssociativeArray) As Boolean: Requests that, when an HTTP
POST request is made to the specified URL path, the request body be stored in a temporary file according to the
parameters["destination_directory"] value in the associative array. When this request is complete, an
roHttpEvent event is sent to the configured message port. Use the roHttpEvent.GetRequestBodyFile() method to
retrieve the name of the temporary file. If the file still exists at the time the response is sent, it will be automatically
deleted.

AddPostToFormData(parameters As roAssociativeArray) As Boolean: Requests that, when an
HTTP POST request is made to the specified URL path, an attempt be made to store form data (passed as
application/x-www-form-urlencoded or multipart/form-data) in an associative array that can be
retrieved by calling the roHttpEvent.GetFormData() method.

AddMethodFromEvent(parameters As roAssociativeArray) As Boolean: Requests that an event of
type roHttpEvent be sent to the configured message port. Unlike

AddGetFromEvent(), this method can support

arbitrary HTTP methods. The HTTP method is specified using the

method member in the associative array.

AddMethodToFile(parameters As roAssociativeArray) As Boolean: Requests that, when an
arbitrary HTTP request is made to the specified URL path, the request body be stored in a temporary file according
to the

parameters["destination_directory"] value in the associative array. The HTTP method is specified

using the

method member in the associative array. When the request is complete, an roHttpEvent event is sent to

the configured message port. Use the roHttpEvent.GetRequestBodyFile() method to retrieve the name of the
temporary file. If the file still exists at the time the response is sent, it will be automatically deleted.

AddMethodToString(parameters As roAssociativeArray) As Boolean: Attempts to support an
arbitrary HTTP method. The request body is placed in a string and an event is raised. This makes the request body