couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Antivackis" <patrick.antivac...@gmail.com>
Subject Re: Issue : upload an attachment using a PUT method
Date Wed, 15 Oct 2008 15:14:55 GMT
OK Jan,
in fact it's Transfer-Encoding header.

Seems to work better
Thanks

[patrick@localhost ~]$ curl -H "Content-Type:
application/application/octet-stream" -H "Transfer-Encoding: chunked" -T
dummy128M localhost:5984/try/dummy128M/ -v
* About to connect() to localhost port 5984 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 5984 (#0)
> PUT /try/dummy128M/dummy128M HTTP/1.1
> User-Agent: curl/7.16.4 (i686-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.8e
zlib/1.2.3 libidn/1.0
> Host: localhost:5984
> Accept: */*
> Content-Type: application/application/octet-stream
> Transfer-Encoding: chunked
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
  0  128M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
0} [data not shown]
100  128M    0     0  100  128M      0  16.1M  0:00:07  0:00:07 --:--:--
0* Empty reply from server
100  128M    0     0  100  128M      0  16.1M  0:00:07  0:00:07 --:--:--
0* Connection #0 to host localhost left intact

curl: (52) Empty reply from server
* Closing connection #0

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message