• Resolved richardthc

    (@richardthc)


    I’m having a bit of a problem with sourcing the ICS from a webservice.
    The file is generated thus:
    byte[] buffer = System.Text.Encoding.UTF8.GetBytes(sb.ToString());

    var dataStream = new MemoryStream(buffer);

    HttpResponseMessage httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK);
    httpResponseMessage.Content = new StreamContent(dataStream);
    httpResponseMessage.Content.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue(“attachment”);
    httpResponseMessage.Content.Headers.ContentDisposition.FileName = “cal.ics” ;
    httpResponseMessage.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(“application/octet-stream”);

    return httpResponseMessage;

    Where ‘sb’ contains the calendar data.
    Now if I open the link to the webservice in a browser, save the file and then point ICS Calendar at the file it works fine. If I point ICS Calendar at the webservice it fails.
    Any ideas?
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author room34

    (@room34)

    I responded via email but I think the issue here may be using https:// instead of https:// in the URL. The plugin requires the https:// protocol.

    The plugin automatically converts webcal:// to https://, but it does not automatically convert https://. I’ve seen many cases where feeds using https:// fail, and converting them to https:// resolves the issue. I have to review this situation in more detail.

    • This reply was modified 4 years, 9 months ago by room34.
    • This reply was modified 4 years, 9 months ago by room34.
Viewing 1 replies (of 1 total)
  • The topic ‘ICS from webservice’ is closed to new replies.