LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I incoporate an online web id verification into my cvi program?

I've got a cvi program and I must incorporate a login system.  This login system however exists on a webpage.  I basically need cvi to call up this webpage where the user enters their id and password.  If the website verifies this as correct the CVI program can then proceed.  Is this possible? Thanks.
0 Kudos
Message 1 of 4
(3,246 Views)
Hello hillb,

Could you provide some more information about your program and web application?

Achieving the exact functionality you've described could be done but it would require a good amount of programming. You could set up your program to pop up a form in which the user enters his/her login id and password, then behind the scenes you could set up the program to pass the login id and password to the web application and verify that the login was successful. Again, this option is not going to be easy to program.

The other option you have varies slightly from the functionality you've described. This option involves setting up the web application to run the program after a user has logged in successfully. There would be no communication between CVI and the web application, simply the web application will call the program to run.

It's difficult to provide the best option with the limited information provided.
Manooch H.
National Instruments
0 Kudos
Message 2 of 4
(3,220 Views)
Thanks for the reply Manooch.  The second option you describe isn't an option for me since the web application isn't mine and I can't really deploy my own web server and build a wrapper for it.

The first option you suggest is exactly what I was trying to find more information on. 

I think the question essentially is how from CVI can I pass a login and password to a webpage that has a form on it.  Perhaps this question is even less about cvi right now then it is about posting data to a web form directly. 
0 Kudos
Message 3 of 4
(3,217 Views)

Hello hillb,

 

I think the best option would probably be to pop up a user interface in CVI that prompts the user for their login and password. Then use an HTTP SSL encrypted Post to the Web Server with the login and password. You would then have to parse through the Web Server response to verify whether the login was successful or not. A Google search should provide some insight on HTTP Post requests.

Manooch H.
National Instruments
0 Kudos
Message 4 of 4
(3,174 Views)