Have the main calendar return HTTP headers.
Refactor the HTTP wrapper.