12-29-2021 07:43 PM
Using labview as a web server, there is no problem when there are few requests. But when the request parameter is too long, the service will not respond. Where can I configure the length limit of the request parameter.
12-29-2021 09:29 PM
Hi friend,is the request type you are using GET?GET has a length limit for 1024 characters.You can use POST which has no length limit.
My English is not very good,welcome to correct my mistakes.
Thanks.
12-30-2021 12:53 AM
Thank you, but POST is also restricted. How can I modify this restriction?
12-30-2021 04:03 AM
There are multiple ways of changing the URL length limit depending on how you are using your web service. If you are publishing the web service using the Application Web Server then modify "C:\Program Files (x86)\National Instruments\Shared\NI WebServer\NIWebAppServer.conf" and add "LimitUri 4096" to the end of the file without the quotes.
If you are running the Debug Web Server by just clicking start on the web service then modify "C:\Program Files (x86)\National Instruments\LabVIEW\resource\webserver\niwsdebugserver.conf" and add "LimitUri 4096" to the end of the file without the quotes.