PasteRack.org
Paste # 61090
2019-05-10 18:04:58

Fork as a new paste.

Paste viewed 119 times.


Embed:

  1. #lang racket
  2.  
  3. (require net/http-client)
  4.  
  5. (define-values (status headers ip)
  6.   (http-sendrecv "nominatim.openstreetmap.org"
  7.                  "/search/Unter%20den%20Linden%201%20Berlin?format=json&addressdetails=1&limit=1&polygon_svg=1"
  8.                  #:ssl? #t))
  9. status
  10. headers
  11. (port->bytes ip)
  12. (close-input-port ip)

=>

tcp-connect: network access denied:

'("nominatim.openstreetmap.org" 443 client)

status: undefined;

 cannot reference an identifier before its definition

  in module: 'm

headers: undefined;

 cannot reference an identifier before its definition

  in module: 'm

ip: undefined;

 cannot reference an identifier before its definition

  in module: 'm

ip: undefined;

 cannot reference an identifier before its definition

  in module: 'm