[cosmo-dev] Data importation into the Derby database from text files

Brian Moseley bcm at osafoundation.org
Fri Feb 1 13:24:50 PST 2008


On Feb 1, 2008 12:50 PM, Christine Lu <christine.lu at ensi-bourges.fr> wrote:
> curl -u user:password -H 'Content-Type:text/calendar' -T
> "icalendar/20080131221244.ics"
> http://localhost:8080/chandler/dav/collection/dabd7484-5ddc-4a21-9b9b-7ead492ca3c4
>
> I got this error :
>
> <?xml version='1.0' encoding='UTF-8'?><D:error xmlns:D="DAV:"
> xmlns:cosmo="http://osafoundation.org/cosmo/DAV"><cosmo:method-not-allowed>PUT
> not allowed for a collection</cosmo:method-not-allowed></D:error>

you need to formulate a name for the resource you wish to create
inside the collection.

for example, if you are storing an event named "my birthday", you
might call it my_birthday.ics. in this case, the URL you'd PUT to
would be http://localhost:8080/chandler/dav/collection/dabd7484-5ddc-4a21-9b9b-7ead492ca3c4/my_birthday.ics.


More information about the cosmo-dev mailing list