Menu

Import url (ics) from Office365

Help
Henk
2015-02-05
2015-02-06
  • Henk

    Henk - 2015-02-05

    I use Calendars.load(new URL(URL)) to import an ics calendar into my application.
    This works fine with Google calendar, also with ics-files on our own webserver, but not with an ics url of Office365. Then it throws "net.fortuna.ical4j.data.ParserException: Error at line 1:Unexpected end of file"
    Strange is that I can paste the same url in a browser, download that ics and put the downloaded filename to Calendars.load(FILENAME) and then it does load the calendar.

    I am puzzeled, anyone any idea what is wrong?

     
  • Henk

    Henk - 2015-02-06

    Found it!. It seems that my http - URL from office365 redirects to a https - URL.
    When I change the http: to https: it works now.

     

    Last edit: Henk 2015-02-06

Log in to post a comment.