LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP communication to a pasword protected webserver

Hello,

 

I have a question about how to establish a HTTP session to post data to a password protected webserver.

 

At this moment I have a simple test program up and running (see picture below), but to establish a connection I have to go via a webbrowser (Firefox) to the webserver and manual log in, and use that cookie that Firefox creates. But this cookie is only valid for 5 minutes, so I have to login manually every 5 minutes.

 

Now want to remove the cookie and implement a tool so that I can create a cookie with LabVIEW. Does anybody has an idea how I can solve this problem?

 

 

To establish a connection I used following tool:

http://decibel.ni.com/content/docs/DOC-6252

 

The webserver is:

http://www.digi.com/products/embeddedsolutions/digiconnectem.jsp#overview

 

Does somebody has an idea how I can solve this problem?

 

Thanks in advance,

Lode

 

Example.png

 

 

0 Kudos
Message 1 of 2
(2,595 Views)

Hi Lode

 

If the webserver uses generic HTTP authentication, you can use the following code:

 

HTTP Authentication.png

 

You can find some extra information on http authentication on wikipedia:

 

http://en.wikipedia.org/wiki/Basic_access_authentication

 

Best Regards

Michiel
Applications Engineer
NI Belgium
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,531 Views)