ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Http communication problem (GET / POST)

I am developing a LabVIEW program that communicates with a webserver via http protocol. I'm using  "URL Get HTTP Document " vi (part of LabVIEW Internet Toolkit) to make it possible. This vi gives support only to "GET method", in wich the message is sent in the URL. This method has a maximum size of 1024 characters, compelling me to truncate some messages (this limitation is imposed by a lot of popular servers, like Tomcat). I know it's possible to modify the vis in the toolkit. However, I don't want to make this because it may cause a lot of  "collateral effects" in the future.  Http specification could be read at http://www.faqs.org/rfcs/rfc2616.html
I think National could modify this vi to include support to "POST method" (without maximum size). What do you think about it? Does anyone have some idea of a workaround?

Best regards,
Vinicius Falseth
0 Kudos
Message 1 of 3
(3,405 Views)

Vinicius,

The URL Get HTTP Document VI does not seem to have an inherent maximum size restriction -- I was just able to use to it to get a 174,752 character response. Perhaps this is just a limit imposed by certain servers. At any rate, the easiest solution would just be to modify the VI and save it under a different name. As long as you save it under a different name, what future "collateral effects" would you need to worry about?
 
Kind Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,396 Views)

Hi All,

 

I'm also sending long string via url using Web Service and GET method. It's realy impossible to send string longer then a 1024 characters. 

 

If anyone know workaround please reply.

 

 

Thanks,

Alexander

0 Kudos
Message 3 of 3
(3,121 Views)