LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 4 条)
3,142 次查看
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 项奖励
2 条消息(共 4 条)
3,141 次查看
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 项奖励
3 条消息(共 4 条)
3,141 次查看

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 项奖励
4 条消息(共 4 条)
3,026 次查看