From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 59 With HTTP Client get.vi when recieving invalid http response

I try to communicate with a service which accepts http requests but replies with strings (in particular no http-headers). In Firefox the response upon a GET-request is displayed as

OK

0

while in Edge it will produce the error

ERR_INVALID_HTTP_RESPONSE

 

Is there a way to accept such invalid http responses with the http client get.vi?

0 Kudos
Message 1 of 3
(995 Views)

I would not try to rely on this working on any browser. Trying to do HTTP when the protocol isn't actually HTTP should cause an error and for a change it sounds like Firefox doesn't implement proper error handling and validation which would be a security risk.

 

What you'd need in this case is to write some other software that runs as a server to service requests from the web app, make requests to the 3rd party service but get the data back expecting it to not be properly formatted as HTTP, and return the response as properly formatted HTTP. This could be done with LabVIEW Web Services to handle the requests from the web app, or any other environment where you can do TCP communications.

0 Kudos
Message 2 of 3
(990 Views)

Wait, you posted this in hobbyist forums but it sounds like you're asking about a G Web app?

0 Kudos
Message 3 of 3
(987 Views)