...see below.
Zitat von Oliver Bandel <oliver@first.in-berlin.de> (Mon, 02 Jul 2018
01:29:43 +0200)
> Hello,
>
> how to handle TLS-errors in OCamlnet?
>
> To be more specific on what the problem is:
> in some rare cases, accessing websites with OCamlnet throws the
> error GNUTLS_E_PREMATURE_TERMINATION.
>
> For security-sensible applications aborting the access would be best.
> In the use-case that I have, the TLS-error is not a problem, the
> data is not security-sensitive.
> (Webbrowsers just ignore this error and display the webpage without
> mourning.)
>
> What I want to do is, to access the data that was already read and use it.
> So I want to just "ignore"/"catch" the TLS-error.
>
> How to do that in OCamlnet?
>
> Is it necessary to write my own TLS-provider?
> And how would that look like?
>
> Regards,
> Oliver
Hello, here are some sources to test the issue:
https://www.first.in-berlin.de/mixed/ocamlnet-gnutls-error/
The zip-file contains the three other files.
Just "make" should compile the stuff.
Any help is welcome.
Ciao,
Oliver
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs