🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #346597

Baza Regon

#346597
From: konsul41
Date: Wed, 09 May 2018 13:10
56 lines
2549 bytes
Czego używacie do pobierania danych z REGONU w Windows10

ICS ma problemy z DNS
A indy z ssl (długość klucza)

function SendData(SessionID: string; Akcja: string; Dane: string; URL: 
string = URL_service): string;
var
   Cli: TIdHttp;
   SSLContext: TIdSSLIOHandlerSocketOpenSSL;
   strm: tstringlist;
   Bytes: TBytes;
   i, j: Integer;
begin
   Cli := TIdHTTP.Create(nil);
   SSLContext := TIdSSLIOHandlerSocketOpenSSL.Create(Cli);
   SSLContext.SSLOptions.SSLVersions := [sslvSSLv2, sslvSSLv23, 
sslvSSLv3, sslvTLSv1];
   Cli.IOHandler := SSLContext;
   try
     result := '';
     Cli.Request.Clear;
...
     Cli.Request.Method := 'POST';
     if SessionID <> '' then
       Cli.Request.CustomHeaders.Add('Sid: ' + SessionID);
     strm := TStringList.Create;
     try
       try
         strm.text := Dane;
       except
         on E: Exception do
           ShowMessage('SendData -> strm.text' + #13 + 'DANE ' + #13 + 
Dane + #13 + E.Message);
       end;
       Cli.Response.CharSet := 'UTF-8';
       try
         result := Cli.Post(URL, strm);
       except
         on E: Exception do
           ShowMessage('SendData Post Error' + #13 + E.Message);
       end;
     finally
       strm.free;
     end;
   finally
     Cli.IOHandler := nil;
     Cli.Request.Clear;
     FreeAndNil(Cli);
     FreeAndNil(SSLContext);
   end;
end;


Non stop mam Accesviolation w libeay32.dll
przy wołaniu result := Cli.Post(URL, strm);
Technical Details
Message-ID: <5af2f354$0$680$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!newsreader5.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!newsreader5.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Newsgroups: pl.comp.lang.delphi
X-Mozilla-News-Host: news://news.neostrada.pl:119
From: "konsul41@wp.pl" <konsul41@wp.pl>
Subject: Baza Regon
Date: Wed, 9 May 2018 15:10:46 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
Lines: 56
Message-ID: <5af2f354$0$680$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 185.35.199.36
X-Trace: 1525871444 unt-rea-a-01.news.neostrada.pl 680 185.35.199.36:36465
X-Complaints-To: abuse@news.neostrada.pl
X-Received-Bytes: 2290
X-Received-Body-CRC: 1142240676
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit