Range Header to Specify How Much of a Large File to Download

Prev Next

HTTP headers contain descriptions of content being delivered and served, and instructions on how to handle the content during transmission. Catchpoint provides you with the ability to modify HTTP Request Headers.

Catchpoint has a max file size threshold of 15 MB. If there is a file on a website exceeding 15 MB, the test will fail. If you have a file over 15 MB, you can use the HTTP Request Headers to limit how much of the file is downloaded so the test will pass.

To specify how much of a file should be downloaded, follow the steps below:

  1. Edit the properties of the test, folder, or Product.
  2. In the Requests section, select Override if needed.
  3. Click on Add Http Headers.
  4. Select Test URL in the Apply to field if the request is for the primary test URL.  If it’s not, select Child Host.
  5. If you clicked Child Host, specify the exact domain in the Apply to field.
  6. Select Custom in the Field option list.
  7. Type Range in the Field field.
  8. Type bytes=X-Y in the Value field, replacing “X” and "Y" with the range of bytes of the file to download.  For example, “bytes=10-100” would download from the 10th up to the 100th byte of the file requested (90 bytes in total.) Please note that X is optional. If not specified, it is assumed that range begins from first byte.
    New_UI11.png
Note

Please do not use the expression "*" standalone in the "Apply To" field, instead if you want to match all the characters please use the ".*" expression.

If the requested amount of bytes to download is less than the actual file size, this HTTP warning/error message will be returned: "HTTP Error 206 - The server has fulfilled the partial GET request for the resource".

image.png