determine if server supports resume get request

前端 未结 3 1846
忘了有多久
忘了有多久 2021-01-30 17:54

How does one determine if a server supports resuming a file transfer or get request?

My thoughts were to set the header to start the get request at byte \"2\" instead of

3条回答
  •  醉话见心
    2021-01-30 18:32

    Adding to @aadel's answer:

    Most of the servers nowadays respond with Accept-Ranges: bytes header in case they support resuming. Postman, RequestMaker or Insomnia can help you in examining request/response headers.

提交回复
热议问题