BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

https connection

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
leehanken
Guest





PostPosted: Thu Dec 21, 2006 11:04 pm    Post subject: https connection Reply with quote



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
Back to top
leehanken
Guest





PostPosted: Sat Dec 23, 2006 8:35 pm    Post subject: Re: https connection Reply with quote



leehanken wrote:
Quote:
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);
....
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.