Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Configuring HTTP Headers, Streaming, and Buffering (Real-Time, Windows)

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

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.

Streaming Data

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.

Use the Set HTTP Response Code VI and the Set HTTP Response MIME Type VI to customize the response code and MIME type of the data stream.

Buffering Streaming Data

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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit