troubleshooting Question

Https get and post

Avatar of calinutz
calinutzFlag for Romania asked on
Delphi
86 Comments1 Solution13662 ViewsLast Modified:
A subject not very discussed here is HTTPS and SSL. I'm a beginner in web programming so bare with me.
 Assume you need a delphi 7 application that must post some data to a HTTPS site, and get the result of the submit from it. On the other side you have nothing of yours. It's a plain HTTPS site unknown by you, you only have the username and password to access it.

From the posts on EE and google, I found out Indy and OpenSSL will work, but not very well. Unexplained delays and problems with the SSL protocol.
Also I found out there are a few commercial components that help you do this task a lot better and faster, such as secureblackbox.

I am interested in a working solution for getting this done either with Indy and OpenSSL, or secureblackbox. The SecureBlackBox is the preferred solution since from what I read it works flawlessly. (It can be downloaded here:
http://www.eldos.com/sbb/download-release.php
and used easily with minor restrictions such as nag screen and induced delay, for unregistered users)

So, first of all, of course, there is a login form when you try to enter the HTTPS, that must be filled with data (user, password) from code, then post, and then continue to the next page where the form must be filled from code and posted in order to receive a result that must be returned and displayed in the application. Probably you must use cookies to achieve this.
I repeat, you did not build the server, you have to build the client to connect to the respective HTTPS and work with it

I must tell you that there is obviously a Database application behind the HTTPS, so in the second form (after the login form), there will be stuff to choose (radiobox) and values to enter (EditBoxes), after that a button must be pressed when the HTTPS will probably execute a Select query or javascript and return a value that I need back in my application.

I tryed the AutoIt.DLL but I cant seem to be able to extract the result from the HTTPS, and it is also not a very nice solution even if I could.
The idea is not to connect to one HTTPS, but to many (similar ones), like 10-15 perhaps, and retrieve values from each of them, so I would try to avoid using TWebBrowser, this is why I would prefer something like Indy or SecureBlackBox
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 86 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 86 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros