That is not a working example I am afraid.
Anyway, I found the solution myself and I asked the moderator to delete this question.
Main Topics
Browse All TopicsHi,
I need a working example accessing a URL using HTTP POST method with certificate.
For example:
The URL is http://www.example.com/sen
With 2 form fields: Name and Description (contain text).
And the security certificate that I got is "cert.pfx".
Basically, I use Internet Explorer to test the URL (and installed the certificate first). It is working fine with IE. But now, I want to access the URL from a Delphi application (I use Delphi 7).
So, I need a working example and instruction what to do with the certificate and how to submit HTTP Post.
I prefer to use Indy component if possible. But not TWebBrowser :)
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok, here is the solution.
First, convert the cert.pfx to cert.pem using OPENSSL :
openssl pkcs12 -in cert.pfx -out cert.pem -nodes
You can download and install the OpenSSL for Windows.
Then, here is the Delphi Code to submit the URL and receive the web page:
I hope that this will help other users :)
Thanks everyone, and sorry for the delay, it was weekend and I was out of town.
Business Accounts
Answer for Membership
by: wd123Posted on 2008-07-16 at 05:32:20ID: 22015199
IdHTTP with IdSSLIOHandlerSocketOpenSS L.