calendarhostingwebcal

how to use webcal protocol


I want to create a file, that will be accessed by using the webcal:// protocol.

The final goal is to let the user subscribe to a shared calendar, and I know that this can be done in a million different ways, and that webcal has disadvantages, but please treat this question as a technical question about webcal and don't offer alternatives.

  1. What should be its content, if I want it to allow a user to subscribe to a shared calendar?
  2. How should I host such a file? Most of the servers I know support only http/s queries.

Thx!


Solution

    1. Please refer to the RFC5545 shared calendar (ics)n specification https://www.rfc-editor.org/rfc/rfc5545 for the format of contents of the ics calendar files.

    2. Note that webcal is an unofficial apple protocol for ics calendar files. Google and other calendar providers use https for their shared calendars. These can be hosted on most servers. An ics url is literally just a file (or active url). If you persist in using webcal protocol only, some calendar applications may not accept so I strongly suggest the official 'alternative'.

    From page 5 of the specification

    "The iCalendar format is suitable as an exchange format between
    applications or systems. The format is defined in terms of a MIME
    content type. This will enable the object to be exchanged using
    several transports, including but not limited to SMTP, HTTP,....."