Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 84e7593bc5
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (20 sloc) 0.728 kB
<?xml version="1.0" encoding="UTF-8" ?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<sampleQuery>select * from {table} where url="http://developer.yahoo.com/"</sampleQuery>
<description>Retrieve HTTP status for URLs</description>
<author>Peter Cowburn</author>
</meta>
<bindings>
<select itemPath="result" produces="JSON">
<inputs>
<key id="url" type="xs:string" paramType="variable" required="true"/>
</inputs>
<execute><![CDATA[
// y.rest().head() is available as of b17991! :-)
var results = y.rest(url).head();
response.object = {url: results.url, status: results.status, headers: results.headers};
]]></execute>
</select>
</bindings>
</table>
Jump to Line
Something went wrong with that request. Please try again.