I have configured a PHP based application to interface with the Fedora REST-API
(v 3.3) and can successfully access the web interface/pages for management
methods using authentication.
My problem is that when I do this from my PHP application and access the data
for an objects stream, it creates a new version of the stream! I can access
the same method (URL) via a web browser and not get this behavior, thus I
assume that I need the correct configuration of the headers in the request from
PHP to stop the new version creation.
Below are the current values for the header info I am using
'method' => 'GET',
'uri' => array(
'scheme' => 'http',
'host' => null,
'port' => 80,
'user' => null,
'pass' => null,
'path' => null,
'query' => null,
'fragment' => null
),
'auth' => array(
'method' => 'Basic',
'user' => null,
'pass' => null
),
'version' => '1.1',
'body' => '',
'line' => null,
'header' => array(
'Connection' => 'close',
'User-Agent' => 'CakePHP'
),
'raw' => null,
'cookies' => array()
Does anyone have any ideas what needs to be changed to stop a new version being
created each time the stream is accessed? Is this a bug?
Stuart Chalk, Ph.D.
Associate Professor of Chemistry
Department of Chemistry, University of North Florida
1 UNF Drive, Jacksonville, FL 32224 USA
P: 904-620-1938
F: 904-620-3535
E: [email protected]
W: http://www.unf.edu/coas/chemistry/
------------------------------------------------------------------------------
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users