Parent Topic: Developing HTTP Method VIs
You can customize the HTML headers of the response from an HTTP method VI to a web client. Use the Set HTTP Header VI and the Set HTTP Redirect VI to customize HTML headers for HTTP method VIs using streaming. For example, you can create a custom header that refreshes the web page displayed in a web browser every two seconds. If you do not customize the HTTP headers of the HTTP method VI, the HTTP method VI uses default headers for the response stream.
|Note For more information about concepts in this topic, refer to the Web services introduction and tutorial. LabVIEW Web services are available only in the LabVIEW Full Development System and the LabVIEW Professional Development System.|
You can stream data to a client from an HTTP method VI. Use streaming data to return data from an HTTP method VI in a customized format. You must configure the HTTP method VI to use stream output type on the HTTP Method VI Settings page of the Web Service Properties dialog box.
To create the response stream from an HTTP method VI, use the Write Response VI to create the streaming output, such as a customized HTML page or image data. You also can use ESP scripting to stream customized output to the client.
You can configure an HTTP method VI to buffer the data stream of streaming output data. Use the Write Response VI to create either buffered or unbuffered streaming output. Use the HTTP Method VI Settings page of the Web Service Properties dialog box to configure an HTTP method VI to buffer the streaming responses.