04-20-2010
03:17 AM
- last edited on
09-10-2025
09:04 AM
by
Content Cleaner
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:
https://forums.ni.com/t5/NI-Labs-Toolkits/LabVIEW-HTTP-Client/ta-p/3500778
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
04-29-2010 05:12 AM
Hi Lode
If the webserver uses generic HTTP authentication, you can use the following code:
You can find some extra information on http authentication on wikipedia:
http://en.wikipedia.org/wiki/Basic_access_authentication