{
  "test": "downloads",
  "title": "File downloads",
  "data_version": "1.0.0",
  "seed": 20261102,
  "page": "/access/downloads/",
  "needs": "HTTP only",
  "difficulty": "Medium",
  "what_it_tests": "A CSV and a PDF sent as attachments with filename*, a report you get by posting a form, and a JSON file. Check names, sizes and hashes.",
  "expect": {
    "files": 4,
    "filename_rule": "When Content-Disposition has both, filename* wins over filename (RFC 6266). The JSON file has no Content-Disposition; its link carries a download attribute.",
    "export_form": {
      "action": "/access/downloads/export/",
      "method": "POST",
      "fields": {
        "report": "stock"
      },
      "wrong_method": 405,
      "bad_report": 400
    }
  },
  "records": [
    {
      "url": "/access/downloads/files/price-list.csv",
      "method": "GET",
      "filename": "price list – autumn 2026.csv",
      "ascii_filename": "price-list-2026.csv",
      "content_type": "text/csv; charset=utf-8",
      "content_disposition": "attachment; filename=\"price-list-2026.csv\"; filename*=UTF-8''price%20list%20%E2%80%93%20autumn%202026.csv",
      "bytes": 2316,
      "sha256": "a5197d45af4fd17b060a217bd102d0e2f1767239dff9288f382c00e1862f113d",
      "rows": [
        {
          "sku": "NW-AUD-2757",
          "name": "Thistlecombe Brushed Earbuds",
          "price": "251.49",
          "currency": "USD",
          "description": "Earbuds in oat cotton, made for workshops. Wipes clean in seconds. Stacks neatly."
        },
        {
          "sku": "NW-AUD-2764",
          "name": "Upwold Large Sleep Buds",
          "price": "277.99",
          "currency": "USD",
          "description": "Sleep buds in sage aluminium, made for balconies. Built to be repaired. Wipes clean in seconds."
        },
        {
          "sku": "NW-AUD-2771",
          "name": "Orrin Lane Heavy-duty Headset",
          "price": "50.49",
          "currency": "USD",
          "description": "Headset in slate bamboo, made for long evenings. Built to be repaired. Fits a narrow shelf."
        },
        {
          "sku": "NW-AUD-2778",
          "name": "Kestleford Slim Earbuds",
          "price": "78.00",
          "currency": "USD",
          "description": "Earbuds in teal linen, made for shared offices. Arrives fully assembled. Comes in recycled packaging."
        },
        {
          "sku": "NW-AUD-2785",
          "name": "Vexmoor Mini Headphones",
          "price": "165.99",
          "currency": "USD",
          "description": "Headphones in teal walnut, made for first homes. Packs flat for storage. Wipes clean in seconds."
        },
        {
          "sku": "NW-AUD-2792",
          "name": "Brindlecote Tall Earbuds",
          "price": "101.00",
          "currency": "USD",
          "description": "Earbuds in sage ceramic, made for studio spaces. Fits a narrow shelf. Uses replaceable fittings."
        },
        {
          "sku": "NW-AUD-2799",
          "name": "Pellwick Quiet Headset",
          "price": "99.99",
          "currency": "USD",
          "description": "Headset in oat ceramic, made for studio spaces. Ships with spare parts. Packs flat for storage."
        },
        {
          "sku": "NW-AUD-2806",
          "name": "Saltgrove Round Sleep Buds",
          "price": "246.99",
          "currency": "USD",
          "description": "Sleep buds in slate wool, made for long evenings. Runs quietly. Tested for ten thousand cycles."
        },
        {
          "sku": "NW-AUD-2813",
          "name": "Orrin Lane Twin Headphones",
          "price": "227.49",
          "currency": "USD",
          "description": "Headphones in chalk linen, made for children's rooms. Wipes clean in seconds. Tested for ten thousand cycles."
        },
        {
          "sku": "NW-AUD-2820",
          "name": "Marrowdene Folding Earbuds",
          "price": "40.99",
          "currency": "USD",
          "description": "Earbuds in chalk cotton, made for small flats. Fits a narrow shelf. Packs flat for storage."
        },
        {
          "sku": "NW-AUD-2827",
          "name": "Thistlecombe Travel Earbuds",
          "price": "72.00",
          "currency": "USD",
          "description": "Earbuds in chalk walnut, made for studio spaces. Stacks neatly. Arrives fully assembled."
        },
        {
          "sku": "NW-AUD-2834",
          "name": "Pellwick Slim Headphones",
          "price": "228.99",
          "currency": "USD",
          "description": "Headphones in rust wool, made for long evenings. Comes in recycled packaging. Wipes clean in seconds."
        },
        {
          "sku": "NW-AUD-2841",
          "name": "Ardley Fen Slim Portable Speaker",
          "price": "288.99",
          "currency": "USD",
          "description": "Portable speaker in rust recycled plastic, made for busy kitchens. Built to be repaired. Uses replaceable fittings."
        },
        {
          "sku": "NW-AUD-2848",
          "name": "Orrin Lane Woven Portable Speaker",
          "price": "393.99",
          "currency": "USD",
          "description": "Portable speaker in fog recycled plastic, made for studio spaces. Arrives fully assembled. Uses replaceable fittings."
        },
        {
          "sku": "NW-AUD-2855",
          "name": "Upwold Studio Portable Speaker",
          "price": "102.49",
          "currency": "USD",
          "description": "Portable speaker in fog steel, made for balconies. Packs flat for storage. Lighter than it looks."
        }
      ]
    },
    {
      "url": "/access/downloads/files/catalogue.pdf",
      "method": "GET",
      "filename": "Katalog für Herbst.pdf",
      "ascii_filename": "catalogue.pdf",
      "content_type": "application/pdf",
      "content_disposition": "attachment; filename=\"catalogue.pdf\"; filename*=UTF-8''Katalog%20f%C3%BCr%20Herbst.pdf",
      "bytes": 1148,
      "sha256": "43c8c31294d9495448773c1e48a8b637c0734faa191c0d0f790b5faebdbea55d",
      "text": [
        "Netweir test site: autumn catalogue",
        "Everything in this file is made up.",
        "NW-AUD-2862  Thistlecombe Matte Portable Speaker  $220.49",
        "NW-AUD-2869  Vexmoor Everyday Soundbar  $249.49",
        "NW-AUD-2876  Upwold Slim Bookshelf Speaker  $258.00",
        "NW-AUD-2883  Hollinsgate Woven Bookshelf Speaker  $208.49",
        "NW-AUD-2890  Saltgrove Large Bookshelf Speaker  $267.99",
        "NW-AUD-2897  Pellwick Square Portable Speaker  $295.49",
        "NW-AUD-2904  Saltgrove Twin Soundbar  $90.49",
        "NW-AUD-2911  Quillmere Twin Smart Speaker  $165.99"
      ]
    },
    {
      "url": "/access/downloads/files/stores.json",
      "method": "GET",
      "filename": "stores.json",
      "ascii_filename": "stores.json",
      "content_type": "application/json",
      "content_disposition": null,
      "bytes": 3446,
      "sha256": "27c3f098983d08d4146c0ab6b5e0ce306b5562ff71dbdd9e44e01c484942abd1"
    },
    {
      "url": "/access/downloads/export/",
      "method": "POST",
      "filename": "stock-report.csv",
      "ascii_filename": "stock-report.csv",
      "content_type": "text/csv; charset=utf-8",
      "content_disposition": "attachment; filename=\"stock-report.csv\"",
      "bytes": 185,
      "sha256": "47900ad597e3a8b4a8b928d1ae6bb38d8c1dfa1e744db2c0dd85881b6041c5d4",
      "rows": [
        {
          "category": "Kitchen",
          "products": "57",
          "in_stock": "51",
          "units": "1403"
        },
        {
          "category": "Lighting",
          "products": "73",
          "in_stock": "68",
          "units": "2207"
        },
        {
          "category": "Garden",
          "products": "54",
          "in_stock": "45",
          "units": "1383"
        },
        {
          "category": "Office",
          "products": "62",
          "in_stock": "57",
          "units": "1664"
        },
        {
          "category": "Audio",
          "products": "58",
          "in_stock": "44",
          "units": "1259"
        },
        {
          "category": "Outdoor",
          "products": "66",
          "in_stock": "61",
          "units": "1827"
        },
        {
          "category": "Bath",
          "products": "60",
          "in_stock": "53",
          "units": "1457"
        },
        {
          "category": "Toys",
          "products": "65",
          "in_stock": "60",
          "units": "1936"
        }
      ]
    }
  ]
}
