cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl -C bigfile http://gert:passwd@192.168.2.17/upload.wsgi

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 26 Jul 2009 22:50:12 +0200 (CEST)

On Sun, 26 Jul 2009, Gert Cuykens wrote:

>>> Can you give me instructions what I need to send back to curl so it will
>>> resume the upload?
>>
>> Resume what upload?
>>
> works
> curl -T bigfile http://gert:passwd@192.168.2.17/upload.wsgi

That's a HTTP PUT to a particular URL. It's impossible for me to tell how to
continue that. Possibly you can use -C [position].

> doesn't work because my script does not provide the information curl
> needs to continue a canceled upload
> curl -C bigfile http://gert:passwd@192.168.2.17/upload.wsgi

That's completely wrong syntax to start with so it won't work of that reason
(too). -C wants a dash or a number. And for HTTP uploads it can't figure out
where to start by itself so you must provide a number.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-07-26