curl-library
Re: Test of resuming PUT's with curl and mod-dav
Date: Sat, 27 Jan 2001 15:59:43 +0100 (MET)
On Fri, 26 Jan 2001, Bob Schader wrote:
> I applied the patch and compiled curl fine on both Cygwin and Linux, I
> tested the append capability and it looks like we may be half way there.
> I tried the perl httpserver test, but can't find where it saves any data
> to.
You'll find the data in 'log/server.input'. When I tried a command line like
"../src/curl -T README -C 2500 http://localhost:8980/hej.html"
I got a log/server.input that contains:
---- start ----
PUT /hej.html HTTP/1.0
Range: bytes=2500-
User-Agent: curl/7.6-pre4 (i686-pc-linux-gnu) libcurl 7.6-pre4 (SSL 0.9.5)
(ipv6 enabled)
Host: localhost:8980
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 161
of the ftp server. It uses a simple syntax that is left to
describe here!
FIX:
* Make httpserver.pl work when we PUT without Content-Length:
---- end ----
> So I tried a similar test using mod-dav, first I uploaded the curl
> Makefile in it's entirety, then I cut about 10 lines off the end on the
> server (about 376 bytes). I then attempted to append the Makefile with
> curl, and sure enough, it only sent the last 376 bytes of the file, but
> guess how big the uploaded file is? 376 bytes!
So that means it worked, right? That means you can do what you want to do,
even if it takes one extra operation to get the initial size?
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/ _______________________________________________ Curl-library mailing list Curl-library_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-libraryReceived on 2001-01-27