Upstream (chunked): $ curl -vk "https://7f42-87-5-241-29.ngrok.io/file" -I * Trying 3.13.191.225:443... * Connected to 7f42-87-5-241-29.ngrok.io (3.13.191.225) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server did not agree to a protocol * Server certificate: * subject: CN=*.ngrok.io * start date: Sep 30 21:06:04 2021 GMT * expire date: Dec 29 21:06:03 2021 GMT * issuer: C=US; O=Let's Encrypt; CN=R3 * SSL certificate verify ok. > HEAD /file HTTP/1.1 > Host: 7f42-87-5-241-29.ngrok.io > User-Agent: curl/7.71.1 > Accept: */* > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK HTTP/1.1 200 OK < Content-Type: application/octet-stream Content-Type: application/octet-stream < Accept-Ranges: bytes Accept-Ranges: bytes < Transfer-Encoding: chunked Transfer-Encoding: chunked < Content-Disposition: attachment; filename="file_example_MP4_640_3MG.zucc" Content-Disposition: attachment; filename="file_example_MP4_640_3MG.zucc" < Content-Length: 3114374 Content-Length: 3114374 < Date: Tue, 05 Oct 2021 08:27:33 GMT Date: Tue, 05 Oct 2021 08:27:33 GMT < Keep-Alive: timeout=5 Keep-Alive: timeout=5 < * Connection #0 to host 7f42-87-5-241-29.ngrok.io left intact APIcast (Range not working, responding with 200): $ curl -vk "https://test-apicast-2445582701437.staging.gw.apicast.io:443/?user_key=ba23f9c2888f65040062bc97673f1b18" -i -H "Range:bytes=0-127" * Trying 3.233.49.212:443... * Connected to test-apicast-2445582701437.staging.gw.apicast.io (3.233.49.212) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server did not agree to a protocol * Server certificate: * subject: CN=*.staging.gw.apicast.io * start date: Aug 16 14:10:44 2021 GMT * expire date: Nov 14 14:10:42 2021 GMT * issuer: C=US; O=Let's Encrypt; CN=R3 * SSL certificate verify ok. > GET /?user_key=ba23f9c2888f65040062bc97673f1b18 HTTP/1.1 > Host: test-apicast-2445582701437.staging.gw.apicast.io > User-Agent: curl/7.71.1 > Accept: */* > Range:bytes=0-127 > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK HTTP/1.1 200 OK < server: envoy server: envoy < date: Tue, 05 Oct 2021 08:28:17 GMT date: Tue, 05 Oct 2021 08:28:17 GMT < content-type: application/octet-stream content-type: application/octet-stream < content-disposition: attachment; filename="file_example_MP4_640_3MG.zucc" content-disposition: attachment; filename="file_example_MP4_640_3MG.zucc" < x-envoy-upstream-service-time: 734 x-envoy-upstream-service-time: 734 < transfer-encoding: chunked transfer-encoding: chunked < Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning: " to save to a file. * Failure writing output to destination * Failed reading the chunked-encoded stream * Closing connection 0 * TLSv1.3 (OUT), TLS alert, close notify (256):