This seems to be an issue which has come up a few times over the years with 
the curl library.

It appears to be specific to when curl is compiled on OS X to use the Mac SSL 
library, rather than OpenSSL.

I am guessing you are trying this on a Mac?

I have tested a build of tsNet under OS X that uses OpenSSL instead, and the 
issue goes away.  Unfortunately, building tsNet to use OpenSSL on Mac would 
mean that it no longer uses the OS X certificate store for verifying SSL 
certificates.

Regards,

Charles

> On 17 Feb 2021, at 7:17 am, Richard Gaskin via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Devin Asay wrote:
>> I came across this question on stack overflow. I like to try to give good 
>> LiveCode answers there when I can, just to do a little to boost the 
>> reputation of the LC community there. But I don’t have a clue on this one.
>> <quote>
>> A Livecode script:
>> get URL 
>> "https://www.uspto.gov/patent/laws-and-regulations/patent-term-extension/patent-terms-extended-under-35-usc-156";
>> Winds up with the following in "the result":
>> tsneterr: (56) SSLRead() return error -9806
>> I tried setting libURLSetSSLVerification to both true and false, but got the 
>> same error each time. Any ideas why this is happening, and is there a 
>> solution?
>> </quote>
> 
> As a cURL wrapper, tsNet's error messages tend to follow the same conventions 
> other cURL devs see, lending itself to generic searches:
> 
> https://duckduckgo.com/?q=SSLRead()+return+error+-9806&ia=web
> 
> I only briefly looked at a few of the results, but it seems related to a very 
> specific SSL cert config that results in timeouts.  Beyond that you'll have 
> to read more, but hopefully that link will at least get you started until 
> Charles shows up with his usual thorough response.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> ambassa...@fourthworld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to