{
    "id": "fb155-http-download",
    "title": "Скачать BLOB отдельным HTTP-ответом и проверить полученные байты",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "HTTP-статус",
            200
        ],
        [
            "Content-Type",
            "application\/octet-stream"
        ],
        [
            "Content-Disposition",
            "attachment; filename=\"firebird-attachment.bin\""
        ],
        [
            "Получено байт по HTTP",
            80016
        ],
        [
            "Content-Length совпал с телом",
            true
        ],
        [
            "Полученные байты совпали с исходником",
            true
        ],
        [
            "SHA256 полученного вложения",
            "1fa505ea1e8fe687f0f4e56b0be50fd330cd2af624cf9e25b55a3e85a70115ac"
        ],
        [
            "Дочерний HTTP-сервер остановлен",
            true
        ],
        [
            "Копия файла у клиента",
            "downloaded.bin"
        ]
    ],
    "checks": {
        "http_status": true,
        "binary_content_type": true,
        "attachment_name": true,
        "content_length": true,
        "response_exact_bytes": true,
        "response_sha256": true,
        "no_sniff": true,
        "real_server_stopped": true,
        "same_php_and_driver": true,
        "saved_client_copy": true,
        "owned_objects_removed": true
    },
    "observations": {
        "transport": "real HTTP over 127.0.0.1",
        "http_status": 200,
        "content_type": "application\/octet-stream",
        "content_disposition": "attachment; filename=\"firebird-attachment.bin\"",
        "content_length": "80016",
        "received_bytes": 80016,
        "received_sha256": "1fa505ea1e8fe687f0f4e56b0be50fd330cd2af624cf9e25b55a3e85a70115ac",
        "expected_sha256": "1fa505ea1e8fe687f0f4e56b0be50fd330cd2af624cf9e25b55a3e85a70115ac",
        "exact_bytes_match": true,
        "php_header": "8.2.35",
        "interbase_header": "3.0.1",
        "server_started": true,
        "server_stopped": true,
        "http_requests": 1,
        "client_saved_file": "downloaded.bin",
        "private_token_published": false,
        "cli_output_buffer_used_as_http_test": false
    },
    "runtime": {
        "php": "8.2.35",
        "extension": "3.0.1",
        "server_version": "5.0.4",
        "database": "phpmanual153",
        "transport": "embedded_local_file"
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "FB155_HTTP_BEBE872C8E"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "FB155_HTTP_BEBE872C8E"
        }
    ]
}
