Information:

Environment

  • Dynatrace Recorder
Question

I would like to set the size limitation in my script to download just the first portion of the page, for example, the first 2 megabytes. How can I do it?

Solution

  1. Record the script in the Windows Recorder.
  2. In the script settings, select the Headers tab.
  3. Click the add icon ( + ) to add one header.
  4. In the Name field, type Range. In the the Value field, type bytes=0-num, where num is the maximum number of bytes.
    For example, for 2 megabytes, type bytes=2097152.

For more information about script settings in the Recorder, see the help page Modifying Script Settings.