From: Fabian Keil Date: Sun, 24 Jan 2021 13:43:20 +0000 (+0100) Subject: Add test372: binary zero in data element X-Git-Tag: curl-7_82_0~252 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33d0503103e2833a4c31186e80657370b947e91d;p=thirdparty%2Fcurl.git Add test372: binary zero in data element --- diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 9e0372b6ec..4aa7b3ecb8 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -61,7 +61,7 @@ test334 test335 test336 test337 test338 test339 test340 test341 test342 \ test343 test344 test345 test346 test347 test348 test349 test350 test351 \ test352 test353 test354 test355 test356 test357 test358 test359 test360 \ test361 test362 test363 test364 test365 test366 test367 test368 test369 \ -test370 test371 \ +test370 test371 test372 \ \ test392 test393 test394 test395 test396 test397 \ \ diff --git a/tests/data/test372 b/tests/data/test372 new file mode 100644 index 0000000000..e1cf356ddd --- /dev/null +++ b/tests/data/test372 @@ -0,0 +1,49 @@ + + + +HTTP +HTTP GET + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose +Content-Length: 2 + +%hex[%00]hex% + + + + + +http + + +Binary zero in data element. + + +proxy + + +--raw http://%HOSTIP:%HTTPPORT/binary-zero-in-data-section/%TESTNUMBER + + + + + +GET /binary-zero-in-data-section/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +User-Agent: curl/%VERSION +Accept: */* + + + +0 + + +