🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #713

SSL and Indy

#713
From: Lesley Anne
Date: Mon, 23 Oct 2006 20:12
22 lines
1887 bytes
In one of our applications, we're already using a TIdHTTP to post a message 
to a server and get a reply.  Now we have an app that needs to do the same 
thing, but using SSL.  I'm pretty sure Indy can handle that, since it has 
SSL components, but the help file doesn't say how to use those components, 
and none of the demo programs I have use them.

Does anyone have an example of how to add SSL when using IdHTTP->Post?

Indy has two SSL components: TIdServerIOHandlerSSL and 
TIdSSLIOHandlerSocket.  I'm assuming that since I'm on the client side of 
the connection that I would just use TIdSSLIOHandlerSocket.  Is that right?

And then sometime before the call to Post() I would set:
   IdHTTP1->IOHandler = IdSSLIOHandlerSocket1;

Besides that, I'm lost on what else to do with it.  The help file just has 
placeholder pages with one-word descriptions like "property PassThrough 
Description PassThrough" or "property SSLOptions Description SSLOptions". 
What properties do I need to set and what functions (if any) do I need to 
call?

(using BCB6 and Indy9)
Technical Details
Message-ID: <453d224b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f658a3cbb24f5b31,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Lesley Anne" <mspfila-ng@yahoo.com>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: SSL and Indy
Date: Mon, 23 Oct 2006 16:12:58 -0400
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 144.160.5.25
Message-ID: <453d224b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1161634379 144.160.5.25 (23 Oct 2006 13:12:59 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail