Код: Выделить всё
$ curl -v localhost:8888/api
* Host localhost:8888 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8888...
* connect to ::1 port 8888 from ::1 port 50380 failed: Connection refused
* Trying 127.0.0.1:8888...
* Connected to localhost (127.0.0.1) port 8888
> GET /api HTTP/1.1
> Host: localhost:8888
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: TornadoServer/6.4.1
< Content-Type: application/json
< Date: Fri, 18 Apr 2025 19:09:47 GMT
< X-Content-Type-Options: nosniff
< Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'
< Etag: "6c31fb62a67a5b2884dbd208b806589cc45521a5"
< Content-Length: 21
<
* Connection #0 to host localhost left intact
Подробнее здесь: https://stackoverflow.com/questions/795 ... pplication