hurl/integration/tests_ok/charset.json
2023-06-01 17:22:16 +02:00

2 lines
1.3 KiB
JSON

{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/charset/default"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=utf-8"}],"body":{"type":"text","value":"<p>Hello World!</p>"}}},{"request":{"method":"GET","url":"http://localhost:8000/charset/latin1"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=latin1"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"equal","value":"<p>café</p>"}}]}},{"request":{"method":"GET","url":"http://localhost:8000/charset/gb2312"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=gb2312"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"equal","value":"<p>你好世界</p>"}}]}},{"request":{"method":"GET","url":"http://localhost:8000/charset/cp1256"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=cp1256"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"equal","value":"<p>مرحبا بالعالم</p>"}}]}},{"request":{"method":"GET","url":"http://localhost:8000/charset/uppercase"},"response":{"status":200,"headers":[{"name":"Content-Type","value":"text/html; charset=UTF-8"}],"asserts":[{"query":{"type":"body"},"predicate":{"type":"equal","value":"<p>Hello World!</p>"}}]}}]}