Hello,
My workflow broke because of some mess going on with SSL certificates
or something. I do not understand what is going on and how to fix it.
Could please anybody give an idea?
Here is a link:
https://datacenter.iers.org/data/latestVersion/9_FINALS.ALL_IAU2000_V2013_019.txt
It opens in browser. It downloads via wget. In Racket, it does not.
Here is the simplified version of the code:
#lang racket/base
(require net/url net/url-connect openssl)
;; it used to work even without this line
;; now it does not work with or without it
(current-https-protocol (ssl-secure-client-context))
(let* ((url
"https://datacenter.iers.org/data/latestVersion/9_FINALS.ALL_IAU2000_V2013_019.txt")
(p (get-pure-port (string->url url))))
(for ((l (in-lines p)))
(displayln l)))
I get the following HTML code in return:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access
/data/latestVersion/9_FINALS.ALL_IAU2000_V2013_019.txt
on this server.</p>
</body></html>
I just tried this with Racket 6.12 and Racket 7.1.
In both cases, the OS was Debian Linux.
Best regards,
Dmitry
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.