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

33 lines
648 B
Plaintext

GET http://localhost:8000/charset/default
HTTP 200
Content-Type: text/html; charset=utf-8
`<p>Hello World!</p>`
GET http://localhost:8000/charset/latin1
HTTP 200
Content-Type: text/html; charset=latin1
[Asserts]
body == "<p>café</p>"
GET http://localhost:8000/charset/gb2312
HTTP 200
Content-Type: text/html; charset=gb2312
[Asserts]
body == "<p>你好世界</p>"
GET http://localhost:8000/charset/cp1256
HTTP 200
Content-Type: text/html; charset=cp1256
[Asserts]
body == "<p>مرحبا بالعالم</p>"
GET http://localhost:8000/charset/uppercase
HTTP 200
Content-Type: text/html; charset=UTF-8
[Asserts]
body == "<p>Hello World!</p>"