Re: Open browser and post to https page
- From: "Desertphile" <desertphile@xxxxxxxxxxx>
- Date: 27 Jan 2006 19:16:36 -0800
John Burns wrote:
> Desertphile wrote:
> > is not clear enough to answer. Are you asking how to send the user ID
> > and password to a server via HTTPS?
> Sorry, for a bit more clarity.
> I have a web based service that a user logs into to issue documentation
> to do with the insurance of exported goods.
> A third party software package deals with the export documentation for
> exported goods. A lot of my customers using my web service use
> software application for the export documentation - About 99% of the
> information is currently entered twice, once into the windows
> application and once into my website.
>
> I want to know if it is possible for the windows application, once the
> data has been entered, that the user can click a button and the windows
> application opens a full browser window (no within the application),
> have it browse to a https website and perform an https post of about 80
> data values. At this point, the browser will ask the user to login and
> then the user can continue on the browser with the data already
> received and entered.
>
> The part I am asking about is the actual windows application control of
> a browser on an https website. It seems that this shouldn't be
> possible since its an https site but I thought it might be worth
> asking.
>
> I have an alternative that I know will work and thats opening an https
> browser component, posting the data to the server and getting a random
> key where the data is stored, then simply opening a browser window
> doing an https get on a url including this random key.
>
> THanks for any assistance you might be able to give.
Hi. I believe I see what you are trying to accomplish. Is the database
on the web server side MySQL, or Microsoft Access, or a MSSQL server? I
ask because you might be able to skip the HTTPS protocol entirely. I
can think of one way to do what you want, only with one problem (the
same one you see): password validation.
In the past I have used Visual BASIC to interface with a web server by
having VB write a HTML file to the local hard disk that includes a HTML
"form" with the POST command, then having a invisible VB browser
control "navigate" to that file, and then having VB programatically
push ("object.Click") the "Submit" button on the invisible browser
control.
Example:
WebBrowser1.Navigate "C:\caldata\zone.htm"
Do
DoEvents
If WebBrowser1.Busy = False Then Exit Do
Loop
WebBrowser1.Document.All(18).Click
Do
DoEvents
If WebBrowser1.Busy = False Then Exit Do
Loop
Item number 18 in the web page was the "Submit" button that activated
the "POST" command in the HTML "form."
Example:
<form method="post" id="findplace" name="findplace"
action="http://www.holysmoke.com/viewzones.asp">
VisualBASIC, when it created the local HTML file, populated the HTML
"form" with data via the HTML "form" command "INPUT TYPE / OPTION VALUE
="
Example:
<select id="county" name="county"><option
value="Orange">Orange</option></select>
But this is all way sub-standard for what you wish to do. You want to
access that data on the HTTPS server using some form of RDO (Remote
Data Object) or an ODBC driver to the server's database. If your
database is MySQL then you are in great luck because there are several
examples on the 'net explaining how to do that (you may download for
free an ODBC to accomplish access to MySQL). If you are using some form
of SQL server, I would think there is already a ODBC object Visual
BASIC may use.
There is a way to pass a USERID and a PASSWORD to a HTTPS session
inside the URL. At the moment I do not recall how.
> John
.
- Follow-Ups:
- Re: Open browser and post to https page
- From: John Burns
- Re: Open browser and post to https page
- References:
- Open browser and post to https page
- From: johnburns007
- Re: Open browser and post to https page
- From: Desertphile
- Re: Open browser and post to https page
- From: John Burns
- Open browser and post to https page
- Prev by Date: Re: does anyone know if the vb5 application setup wizard... WHAT IN THE HELL!!!!
- Next by Date: Re: Solving Triangles
- Previous by thread: Re: Open browser and post to https page
- Next by thread: Re: Open browser and post to https page
- Index(es):
Relevant Pages
|