Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: https connection

1 view
Skip to first unread message

leehanken

unread,
Dec 23, 2006, 9:35:57 AM12/23/06
to

leehanken wrote:
> Hello, I am looking at converting some Java code into Delphi, and need
> to communicate with a server using HTTPS.
>
> Can anyone suggest open-source code or components that would implement
> an https connection.
>
> So far I have looked at libcurl
>
> Any suggestions appreciated

I am now using Indy 9 with the TIdHttp control

I get the message 'Error connecting with SSL'

The server works okay when I connect to it from java.

I have created and signed my own certificate

I am wondering whether Java has anything built in, such as valid
development certificates, that Delphi doesn't?

My code is basically:-

IdSSLIOHandlerSocket1.SSLOptions.Method := sslvSSLv2;
HTTP.Request.ContentType := 'application/x-www-form-urlencoded';

with HTTP do begin
try
HTTP.Post('https://www.myserver.com/script', Params,aStream);
...

0 new messages