logo       

bagder: curl/tests/data Makefile.am,1.207,1.208 test266,NONE,1.1: msg#00011

web.curl.cvs

Subject: bagder: curl/tests/data Makefile.am,1.207,1.208 test266,NONE,1.1

Update of /cvsroot/curl/curl/tests/data
In directory labb:/tmp/cvs-serv32360/tests/data

Modified Files:
Makefile.am
Added Files:
test266
Log Message:
Adrian Schuur added trailer support in the chunked encoding stream. The
trailer is then sent to the normal header callback/stream.


Index: Makefile.am
===================================================================
RCS file: /cvsroot/curl/curl/tests/data/Makefile.am,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -d -r1.207 -r1.208
--- Makefile.am 3 Jul 2005 22:25:15 -0000 1.207
+++ Makefile.am 12 Jul 2005 18:15:34 -0000 1.208
@@ -33,4 +33,4 @@
test237 test238 test239 test243 test245 test246 test247 test248 test249 \
test250 test251 test252 test253 test254 test255 test521 test522 test523 \
test256 test257 test258 test259 test260 test261 test262 test263 test264 \
- test265
+ test265 test266

--- NEW FILE: test266 ---
<info>
<keywords>
HTTP
HTTP GET
chunked Transfer-Encoding
</keywords>
</info>
#
# Server-side
<reply>
<data>
HTTP/1.1 200 funky chunky!
Server: fakeit/0.9 fakeitbad/1.0
Transfer-Encoding: chunked
Trailer: chunky-trailer
Connection: mooo

40
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
21;heresatest=moooo
cccccccccccccccccccccccccccccccc

0
chunky-trailer: header data

</data>
<datacheck>
HTTP/1.1 200 funky chunky!
Server: fakeit/0.9 fakeitbad/1.0
Transfer-Encoding: chunked
Trailer: chunky-trailer
Connection: mooo

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
</datacheck>
</reply>

#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP GET with chunked Transfer-Encoding and chunked trailer
</name>
<command>
http://%HOSTIP:%HTTPPORT/266 -D log/heads266
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /266 HTTP/1.1
Host: 127.0.0.1:%HTTPPORT
Accept: */*

</protocol>
<file name="log/heads266">
HTTP/1.1 200 funky chunky!
Server: fakeit/0.9 fakeitbad/1.0
Transfer-Encoding: chunked
Trailer: chunky-trailer
Connection: mooo

chunky-trailer: header data
</file>
</verify>


_______________________________________________
http://cool.haxx.se/mailman/listinfo/curl-commits



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise