Danny

I disagree.
Since xdmp:document-load() allows using an HTTP address, it should act as a 
HTTP client, and should therefore follow http "rules". Methods that are just 
for convenience are subject to misunderstandings.

/Jacob






Fra: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] På vegne af Danny Sokolsky
Sendt: 16. august 2010 19:06
Til: General Mark Logic Developer Discussion
Emne: Re: [MarkLogic Dev General] xdmp:document-load - possible bug?

It is really just for convenience that xdmp:document-load allows you to specify 
an HTTP address.  You can also use the xdmp:http namespace options (for 
xdmp:http-get, et al) in the options node with xdmp:document-get.  It does not 
try to do anything smart with the headers returned from the web server; it just 
deals with the response.  To me,  the behavior seems appropriate, because it 
does not look at the headers.  If you want to examine the headers, use the http 
APIs.

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Tim Meagher
Sent: Monday, August 16, 2010 8:13 AM
To: 'General Mark Logic Developer Discussion'
Subject: Re: [MarkLogic Dev General] xdmp:document-load - possible bug?


I'd like to point out that there is a distinction between using 
xdmp:document-load versus the combination of xdmp:http-get and 
xdmp:document-insert in what errors can be trapped and how to do so.  Here's 
the relevant thread:



http://markmail.org/message/tzkelzjm7whpy46g



Tim Meagher


_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to