Do you mean using MarkLogic Server as an HTTP client?
xquery version "1.0-ml";
declare namespace http="xdmp:http";
xs:int(xdmp:http-get("http://www.marklogic.com")[1]/http:code)
http-get, for example, returns a sequence of two items: the first is the HTTP
metadata, the second is the actual payload.
Justin
Justin Makeig
Product Manager
Mark Logic Corporation
999 Skyway Road
Suite 200
San Carlos, CA 94070
+1 650 655 2387 Phone
[email protected]<mailto:[email protected]>
www.marklogic.com<http://www.marklogic.com/>
<http://www.marklogic.com/><http://www.marklogic.com/>
This e-mail and any accompanying attachments are confidential. The information
is intended solely for the use of the individual to whom it is addressed. Any
review, disclosure, copying, distribution, or use of this e-mail communication
by others is strictly prohibited. If you are not the intended recipient, please
notify us immediately by returning this message to the sender and delete all
copies. Thank you for your cooperation.
On Mar 25, 2010, at 10:19 AM, Tim Meagher wrote:
Hi Folks,
What is the best way for using xquery and MarkLogic extensions to simply obtain
and check the value of an HTTP response code?
Thank you!
Tim Meagher
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general