Harvard Wiki has been integrated with Group Services.
Wiki administrators: visit IT Help for an overview of the changes to managing groups in your wikis.
Skip to end of metadata
Go to start of metadata

This request can answer the question -- Is this Harvard IP address coming from an “in-library” workstation? You can use this URL request to verify that a particular IP address is registered by LTS as an in-library workstation. Registered in-library workstations are exempted from access control to restricted resources.

Note: If you need to register an in-library workstation, use the IP registration request form.

Authorization

None required.

URL request syntax

The base syntax is:

http://webservices.lib.harvard.edu/rest/lib/inlib/{ipAddress}

Syntax for a JSONP request:

http://webservices.lib.harvard.edu/rest/lib/inlib/{ipAddress}?jsonp={callback function name}

Parameters

Parameter

Description

ipAddress

IP address to be checked for in-library status.

jsonp

The name of the callback function to wrap around JSON data.  Example: ?jsonp=ws_results

Sample URL

http://webservices.lib.harvard.edu/rest/lib/inlib/128.103.151.151

Sample responses

Successful requests (specified IP is registered as in-library) will return a header status of "200" (OK) and content that includes the three-letter faculty code associated with the IP address. The content of the XML response looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<inlib>{3-letter faculty code}</inlib>

Example:

<?xml version="1.0" encoding="UTF-8"?>
<inlib>FAS</inlib>

Note that how the browser displays this XML response will vary depending on browser type. For example, Firefox might display <inlib>FAS</inlib> while Safari might display just the value FAS.

Unsuccessful requests (IP is not registered as in-library) will return a header status of "404" (IP address not found) and the following content:

<error>
<status>404</status>
<message>No Data for inlib. ID: 140.247.213.141</message>
<request>/rest/lib/inlib/140.247.213.141</request>
<support>http://webservices.lib.harvard.edu/feedback/feedbackEmail?refU=NOBH&amp;PROJECTNAME=Web%20Services&amp;staff=true&amp;pageTitle=OIS%20Web%20Services</support>
</error>

Note that how the browser displays this XML response will vary depending on browser type and configuration. Some browsers will expose the 404 error directly while others may mask the error with a simple message or substitute other content, such as a search page.

 

  • No labels