FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Navigate an url passing as parameters user_id and password
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Navigate an url passing as parameters user_id and password
Posted: Mon Oct 11, 2010 09:35 AM
Hi,
when I run this code

#include "fivewin.ch"

FUNCTION MAIN( )
LOCAL oIe

oIe = CREATEOBJECT( "InternetExplorer.Application" )

oIe:Navigate( "http://172.28.2.240" )

oIe:Visible = .T.

RETURN NIL
this dialog appears



The questions are:
is it possible to automatically to send user_id and password?
is it possible to connect my software to an Url without the usage of Internet Explorer?

Thanks
Marco
Marco Boschi
info@marcoboschi.it
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Navigate an url passing as parameters user_id and password
Posted: Mon Oct 11, 2010 10:52 AM

Marco,

Please check this way:

viewtopic.php?f=3t=12514start=0hilit=https+patrick

&&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Navigate an url passing as parameters user_id and password
Posted: Mon Oct 11, 2010 12:11 PM
Antonio,
I do not know what is the name of this dialog


But probably the solution is not this one:

#include "FiveWin.ch"

PROCEDURE Main()

LOCAL oIE

oIE := CreateObject( "InternetExplorer.Application" )
oIE:Navigate( "http://172.28.2.161/!mod cmd PHONE DIR local-dir erase-imported" )
oIE:Visible := .T.

WHILE oIE:Busy
SecondsSleep( 1 )
END

oIE:Forms["LogIn"]:Elements[ "UserName" ]:Value := "admin"
oIE:Forms["LogIn"]:Elements[ "Password" ]:Value := "ip110"
oIE:Forms["LogIn"]:Submit()

RETURN
Marco Boschi
info@marcoboschi.it

Continue the discussion