To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows a quick way to filter IPs in the LabVIEW web service.
Description
The Read Request Variable VI allows us to retrieve specific information about the HTTP request to our LabVIEW Web Service. This specific example retrieves the WS Requestor's IP Address and matches it to an array of allowable IPs. If in the list, the VI is able to reverse an input string.
The URL format of the web service method is: http://<IP Address>:<Web Server Port (8080)>/filter/reverse/:data where :data is the string that is to be reversed.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.