TIdTCPClient to SSL

Posted by waza123 on Stack Overflow See other posts from Stack Overflow or by waza123
Published on 2012-11-20T16:56:39Z Indexed on 2012/11/20 16:59 UTC
Read the original article Hit count: 525

Filed under:
|

When I connect to 80 port, plain text web site using TIdTCPClient component, all works fine, data is received without a problem, but, when I connect to 443 port, SSL web site, data not always came.

Maybe something with my receive data block ? Need advice.

  while not Terminated do
  begin
    SetLength(data, 0);
    ws.IOHandler.ReadBytes(data, -1);
    if Length(data) = 0 then
      break;

    // processing_my(data);
  end;

Thanks

© Stack Overflow or respective owner

Related posts about delphi

Related posts about delphi-xe3