paweld : there is a 4th option

- using curl with
tprocess.execute(
or
sysutils.executeprocess(
this would eliminate all his openssl problems and when openssl version 17.0.0.1 comes out with their quantum computer version he can wait until curl implements it - with no worries
--
maurobio :
in case you are still looking at your posting :
the trunk/web code in
https://github.com/maurobio/especiescompiled on both my linux 32bit and 64bit systems with fpc-3.2.2 on them and my openssl version
openssl version
OpenSSL 3.0.5 5 Jul 2022 (Library: OpenSSL 3.0.5 5 Jul 2022)
but gave different access violation errors when run
-
trunk/web 32bit linux
<html>
<title>e-Species</title>
<body>
<title>e-Species</title>
<h3>Error filling out form</h3>
<p>Please enter a binomial specific epithet into the text box.</a>
<p>Remember: Only <a href="
http://en.wikipedia.org/wiki/Species">species</a> are true natural entities!</p>
<a href="../especies/index.htm">Go back to the query form</a>
An unhandled exception occurred at $08060F31:
EAccessViolation: Access violation
$08060F31
$0804C0F3 main, line 641 of especies.pas
GBIFSearch.Search(queryStr, key, scientificname, authorship, status, valid_name, kingdom, phylum, classe, order, family);
---
trunk/web 64bit linux
<html>
<title>e-Species</title>
<body>
<title>e-Species</title>
<h3>Error filling out form</h3>
<p>Please enter a binomial specific epithet into the text box.</a>
<p>Remember: Only <a href="
http://en.wikipedia.org/wiki/Species">species</a> are true natural entities!</p>
<a href="../especies/index.htm">Go back to the query form</a>
<h2><i></i> </h2>
<h3>Classification from CoL</h3>
No names found
<h3>Text tags</h3>
<span style='display:inline;border:1px solid blue; padding:1px;margin:2px;line-height:22px;background-color:rgb(181,213,255);'>You must supply content by using the &text or &context querystring parameters, or by passing a URL, e.g. &url=example.org/... </span>
<h3>Wikipedia</h3>
No article title matches
<h3>Genomics from NCBI</h3>
TaxId: <a href="
http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=0">0</a> No items found for <i></i> <ul type="circle">
</ul>
<h3>Map from GBIF</h3>
No species found
<h3>Images from Wikimedia Commons</h3>
An unhandled exception occurred at $0000000000408D1C:
EAccessViolation: Access violation
$0000000000408D1C
$000000000040668D main, line 744 of especies.pas
if imgs.Count = 0 then WriteLn('No images found')
---
i'm surprised that you invented a fight with rvk - probably the only person on this forum who was helping you with your actual code
having him interested in helping you with your code was a wonderful thing for you - believe me
---
so :
did you try the fpc dev trunk? (make sure you don't overwrite your current installations of fpc and lazarus)
after looking at your code - it seems you want to download all of wikipedia ... and then parse what you get for your data
it looks to me that all you are changing is the url of what you are downloading
this can be easily redone using curl from an array/tstringlist of urls - redoing your code to have curl get everything would be a real positive
where are you putting the resulting data? a jsonfile ? a database? a text file? i didn't see where it was going once you get it
---