Neil,

Thank you so much, I did not know that I can play with
the header so easily in get-pure-port.

It turned out that the server expects "Accept:" field
in the request (but does not care much about its value).

So the following code works

#lang racket

(require net/url)

(let* ((url "https://datacenter.iers.org/data/latestVersion/9_FINALS.ALL_IAU2000_V2013_019.txt";)
       (p (get-pure-port (string->url url) '("Accept: */*"))))
  (for ((l (in-lines p)))
    (displayln l)))


And my pipeline is fixed. Great!

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.

Reply via email to