Hi

I need to export email's folders using REST api, from command line
using curl I tried the following command:

curl -u myuser:mypassoword -v http://myserver/zimbra/home/lorenzof...t/myfolder.zip

no file is saved and theverbose mode reports
* About to connect() to myserver... port 80
* Trying myserver..... * connected
* Connected to myserver (myserver) port 80
* Server auth using Basic with user 'lorenzof@seacom.it'
> GET /zimbra/home/lorenzof@seacom.it/myfolder.zip HTTP/1.1
Authorization: Basic bG9yZW56b2ZAc2VhY29tLml0OkFpc2NvbmRlbDU1Kg==
User-Agent: curl/7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
Host: myserver
Pragma: no-cache
Accept: */*

< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Expires: ven, 10 nov 2006 11:29:20 GMT
< Cache-control: public, max-age=604800, post-check=7200, pre-check=604800
< Location: http://myserver/service/home/lorenzo...t/myfolder.zip
< Content-Length: 0
< Date: Fri, 03 Nov 2006 11:29:20 GMT
* Connection #0 to host myserver left intact
* Closing connection #0

what is wrong ?

thank you