Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 813 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 813 Bytes

aspace_mitm_proxy

Use a tool like mitmproxy to observe ArchivesSpace HTTP traffic

  1. Download, install, and run mitmproxy - typically on port 8080.

  2. Add this plugin to ArchivesSpace:

AppConfig[:plugins] = ['aspace_mitm_proxy']
  1. Run the backend, frontend, and / or public devservers with a special environment variable:
ASPACE_PROXY_PORT=8080 ./build/run backend:devserver
  1. Make a curl request to a search endpoint:
curl -H "X-ArchivesSpace-Session:$ASPACE_SESSION" "$ASPACE_BACKEND_URL/repositories/3/search?q=papers&page=1"
  1. Inspect the backend's request to Solr in the mitmproxy console:

image