LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle html password panel using datasockets

I am using datasockets to process html from my device.

DS_Open("http://mydeciceipaddress//", ......);

The latest version of the my device firmware supports basic security so
now it will ask for username & passowrd. When I use std. browser, it
pops up a panel for me to enter my username/pwd and things are ok.

How can do handle this case using datasockets?


vishi
0 Kudos
Message 1 of 4
(3,029 Views)
Hello Vishi,

I'm definitely no web programming expert, but I believe you can accomplish this by writing to the server the right commands. Basically when you type the name and password and submit the data, you are writing this to the web server. The main challenge here is to find the right format in which the name and password has to be written.

One possible option is to get one of those pieces of software that allows you to monitor whatever is going through an Ethernet port; then monitor the response that the browser sends when the name and password are submitted. Of course the best option is to find out on the web how to submit names and passwords.

Just my 2 cents!

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 4
(3,028 Views)
Thanks Juan,

I did find something more, the HHTP has something called basic
authentication where you send login name, a colon, and the password, and
all these are concatenated after being encoded in base64. Need to find
how to do it in my CVI program.

I was hoping something ran into into similar problems.


vishi

JuanCarlos wrote:
> Hello Vishi,
>
> I'm definitely no web programming expert, but I believe you can
> accomplish this by writing to the server the right commands. Basically
> when you type the name and password and submit the data, you are
> writing this to the web server. The main challenge here is to find the
> right format in which the name and password has to be written.
>
> One possible option is to get one of those pieces of software
that
> allows you to monitor whatever is going through an Ethernet port; then
> monitor the response that the browser sends when the name and password
> are submitted. Of course the best option is to find out on the web how
> to submit names and passwords.
>
> Just my 2 cents!
>
> Regards,
>
> Juan Carlos
> N.I.
0 Kudos
Message 3 of 4
(3,028 Views)

Vishi,

How did you land up doing it? I am trying to do the same thing using Internet Explorer active X controls and am running into a roadblock with the basic authentication part.

 

 

0 Kudos
Message 4 of 4
(2,913 Views)