curl-users
Sending back-to-back HTTP PUTs on same connection?
Date: Tue, 18 Dec 2007 13:10:15 -0800
Folks,
Can I HTTP PUT streams along the lines of this with CURL? Net-net we
send an HTTP put then 128K of data, then get HTTP/1.1.204.No+Content
from the server, then send another HTTP PUT then 128K _all_ on the
same connection. Here is what it looks like (please ignore extraneous
"."s that come from tcpdump:
PUT./data/13/816/13_ZPkFt5wyrinm7dbnA9qj/fd9f4afed6570674310f8328494c983d_0?po=4890512&pfl=13107200.HTTP/1.1..
Content-Type:.application/octet-stream..
User-Agent:.Java/1.4.2_16..
Host:.83.244.1.2..
Accept:.text/html,.image/gif,.image/jpeg,.*;.q=.2,.*/*;.q=.2..
Connection:.keep-alive..
Content-Length:.131072....
< 128K of data here >
HTTP/1.1.204.No+Content..
Date:.Mon,.17.Dec.2007.21:28:23.GMT..
Server:.Jetty/4.2.9.(Linux/2.4.22-1.2174.nptlsmp.i386.java/1.4.1_04)....
PUT./data/13/816/13_ZPkFt5wyrinm7dbnA9qj/fd9f4afed6570674310f8328494c983d_0?po=5021584&pfl=13107200.HTTP/1.1
Content-Type:.application/octet-stream..
User-Agent:.Java/1.4.2_16..
Host:.83.24.1.2..
Accept:.text/html,.image/gif,.image/jpeg,.*;.q=.2,.*/*;.q=.2..
Connection:.keep-alive..
Content-Length:.131072....
< another 128K of data here >
Thanks in advance.
Chris
Received on 2007-12-18