LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to login to a webpage and put my username, password and click the login button. Can I do this using labview?

I am using Labview 6.1 with Windows 2000. I want to automate a project where I log in to a webpage but I do not want the manufacturing operators to do this, thus the automation. Can this be done?
0 Kudos
Message 1 of 11
(4,817 Views)
Hello �

From your description I understand that you are publishing a front panel and accessing it remotely but you do not want unauthorized users to be able to view the web page.

There are no easy options in LabVIEW to password protect a remote front panel. However, there are several suitable workarounds. Please follow this link.

If I misunderstood your question, please let me know.

S Vences
Applications Engineer
National Instruments
0 Kudos
Message 2 of 11
(4,817 Views)
Hello. Thank you for your reply.

Actually, I am trying to access a real html web page, and not a remote front panel. I am accessing a webpage from our IT department where I log in and I get several product "keys" which I then use in the manufacturing line. There is a login and password form and a "Submit" button that I need to somehow access using labview. It then in turn gives me "keys" that I need. I can already get the keys using ActiveX DispDocument method. I cant however automate the login proccess. Any help would be greatly appreciated.

Thanks again.

Manny
0 Kudos
Message 3 of 11
(4,817 Views)
Hello �

I am sorry I misunderstood your question.
The good news is that you can do this with LabVIEW. The secret is to insert the user ID and password into the URL before the host name and path.
Take a look at this link.

S Vences
National Instruments
0 Kudos
Message 4 of 11
(4,817 Views)
Hello again and thanks for the quick reply.

This technique works for ftp servers using web browsers (ie ftp://ftpserveraddress) by using the process mentioned in your link (ftp://user:password@ftpserveraddress.com)

Is there a way I can enter my username and password on http web servers (ie http://httpserver.com)? Its pretty much like logging in to the exhange.ni.com forum where I have to enter my email address and password then I have to click the "Continue" button.

Regards,
Manny
0 Kudos
Message 5 of 11
(4,817 Views)
Hello �

The technique works for ftp servers and http web servers where a window pops up, prompting the user for the user ID and password.

If the user ID and password are embedded in the web page (like in exhange.ni.com forum) then you cannot do it from LabVIEW. In these cases, requesting for the user ID and password is hard coded and there is no way we can �get inside the html code� from LabVIEW to provide the required information.

S Vences
National Instruments
0 Kudos
Message 6 of 11
(4,817 Views)

I need to attempt this same action, though this link from years ago is broken. Can anyone help provide me with the structure of the username and password in the URL? I am encountering a popup window, I am just unsure how to pass the parameters to the window from the URL. 

 

Thanks!

0 Kudos
Message 7 of 11
(1,639 Views)

@EBlip wrote:

I need to attempt this same action, though this link from years ago is broken. Can anyone help provide me with the structure of the username and password in the URL? I am encountering a popup window, I am just unsure how to pass the parameters to the window from the URL. 

 

Thanks!


This is quite an old thread, you might have better luck with a new one, but since we're here now, how are you accessing the website?

Probably the tooling available has evolved quite a bit over the last 18 years.

 

If you can provide some details about the way you're accessing the website, and perhaps a (dummy or real) website with the same type of login prompt that'd be great. Obviously don't post your username or password 🙂

 

For FTP, you can access it directly as was written above, but the OP wanted something different (and I think maybe you do too).


GCentral
0 Kudos
Message 8 of 11
(1,617 Views)

Thank you for the response! 

 

So I am attempting to control a device via an intranet http connection. So, access is obtained just through 'http://ip.address'. The problem is when I do this, It prompts me with a username and password in a pop up window. 

 

In LabVIEW I am attempting to make http requests to operate the device, but it cannot execute the commands because it cannot get past the login screen. Once I pass the credentials, I have the code written to manipulate the device, but do not know how to pass credentials through URL. I will attach some pictures of the pop up window below.

 

I am using Microsoft Edge to access the device. Please let me know what other details I can provide!

Download All
0 Kudos
Message 9 of 11
(1,597 Views)

Google: embedded username and password in url

 

George Zou
0 Kudos
Message 10 of 11
(1,590 Views)