mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05:00
test334: verify HTTP 204 response with chunked coding header
Verifies that a bodyless response don't parse this content-related header.
This commit is contained in:
parent
2e5ceb3934
commit
b6b8f3a384
@ -57,7 +57,7 @@ test298 test299 test300 test301 test302 test303 test304 test305 test306 \
|
||||
test307 test308 test309 test310 test311 test312 test313 test314 test315 \
|
||||
test316 test317 test318 test319 test320 test321 test322 test323 test324 \
|
||||
test325 test326 test327 test328 test329 test330 test331 test332 test333 \
|
||||
\
|
||||
test334 \
|
||||
test340 \
|
||||
\
|
||||
test350 test351 test352 test353 test354 test355 test356 \
|
||||
|
44
tests/data/test334
Normal file
44
tests/data/test334
Normal file
@ -0,0 +1,44 @@
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
204
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Mon, 13 Nov 2000 13:41:09 GMT
|
||||
Server: myown/1.0
|
||||
Transfer-Encoding: chunked
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<name>
|
||||
HTTP 204 No content with chunked header
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/want/334
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strip>
|
||||
^User-Agent:.*
|
||||
</strip>
|
||||
<protocol>
|
||||
GET /want/334 HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
Loading…
Reference in New Issue
Block a user