Re: [Dspace-tech] URL REST Call to return XML

2015-06-12 Thread Hicham Zahnan
to import data using REST. Thank you all for your help. Hicham From: Peter Dietz [mailto:pe...@longsight.com] Sent: Thursday, June 11, 2015 4:32 PM To: Alan Orth Cc: Hicham Zahnan; dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] URL REST Call to return XML Hi Hicham, Princeton's

Re: [Dspace-tech] URL REST Call to return XML

2015-06-11 Thread Alan Orth
You need to set the Accept HTTP header to tell the REST API which format you want. From the command line you can do it like this: $ curl -s -H Accept: application/xml http://localhost:8080/rest/communities I'm not familiar with the DSpace module for Drupal though, so I'm not sure if it allows

Re: [Dspace-tech] URL REST Call to return XML

2015-06-11 Thread Bruno Zanette
Hicham, Good Question... The only method i know that fix it is the one that Alan said. The request is made directly by URL or there is a middleware between your app and the browser? Em qui, 11 de jun de 2015 às 08:01, Alan Orth alan.o...@gmail.com escreveu: You need to set the Accept HTTP

Re: [Dspace-tech] URL REST Call to return XML

2015-06-11 Thread Peter Dietz
Hi Hicham, Princeton's Drupal module for DSpace is not compatible with the current version of DSpace. The Drupal Module is designed to use the 2011 Google Summer of Code REST API. The 2011 GSoC REST API was never merged into the core of DSpace, instead a Jersey based REST API was built. So, the