Skip to content
Digital Preservation of HTTP in documentary heritage.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src [feature] logo. May 19, 2017
.travis.yml [testing] Requires slightly newer golang. Apr 25, 2017
404.go [feature] 404 and version. May 7, 2017
ICON-LICENSE [documentation] LICENSE for our open-iconic bits. Mar 25, 2017
defaultserver.go [feature] 404 and version. May 7, 2017
defaultserverpages.go [ignore] text formatting. May 7, 2017
httphandler.go [feature] url shorteners. #14 Sep 4, 2017
httpreserve_test.go [testing] tests. Apr 23, 2017
linkstathandler.go [feature] Say hello to phantomjs. Fixes #10. May 7, 2017
version.go [feature] Enables saving of url shortening links. #14. Sep 4, 2017


Build Status GoDoc Go Report Card

A tool to check the status of a weblink and also see whether it is archived in the Internet Archive.

Try it out here

Default Server

The library comes with a default server mode that can be configured for POST and GET requests. POST by default. Default port is :2040 but this can also be selected at runtime.

The default server can also be stood up as a web service. The API is documented below.


The httpreserve client is a separate application offering a broader range of access methods. See:

The client application is a work in progress. Stay tuned for more information about its capabilities.


Primary entry point when the server is running:




GET example:

POST example:

Same access point, but encode url and filename in a <i>application/x-www-form-urlencoded</i> form.

INFO example:

TODO: Add some information to INFO response

RETURN value:

'application/json' struct to work with, e.g.

     "FileName": "",
     "AnalysisVersionNumber": "0.0.0",
     "AnalysisVersionText": "exponentialDK-httpreserve/0.0.0",
     "Link": "",
     "ResponseCode": 200,
     "ResponseText": "OK",
     "ScreenShot": "{base64 encoded data}",
     "InternetArchiveLinkLatest": "",
     "InternetArchiveLinkEarliest": "",
     "InternetArchiveSaveLink": "",
     "InternetArchiveResponseCode": 200,
     "InternetArchiveResponseText": "OK",
     "Archived": true,
     "Error": false,
     "ErrorMessage": "",
     "StatsCreationTime": "4.506728277s"

Archiving Weblinks


GNU General Public License Version 3. Full Text

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.