05 Step 1: The mock server (5/5)

  if __name__ == "__main__":
      print("Mock library on :8080  (user reader / secret)")
      ThreadingHTTPServer(("0.0.0.0", 8080), H).serve_forever()

Run python3 mock_library.py and note your computer's LAN IP (for example 192.168.1.20). Check it works: curl http://192.168.1.20:8080/.

HTTP vs HTTPS: this tutorial uses plain http:// on your LAN for testing. Existing LAN plugins (for example WebDAV) use it the same way. For anything on the internet, use HTTPS. Note that the reader encrypts TLS but does not verify certificates.
‹ PreviousReader file (.txt)