0

The following url https://planning.univ-st-etienne.fr/jsp/custom/modules/plannings/anonymous_cal.jsp?resources=3797&projectId=1&calType=ical&firstDate=2017-08-22&lastDate=2018-08-20 automatically downloads a file for me (.ics) which I need its text content. I would like to automatically get this text by code for my website so I don't need to update it manually everyday.

How could I manage that?

QuentinJanuel
  • 69
  • 1
  • 6
  • Take a look at [ask] and [help/on-topic] – pvg Sep 14 '17 at 17:30
  • Possible duplicate of [Return HTML content as a string, given URL. Javascript Function](https://stackoverflow.com/questions/10642289/return-html-content-as-a-string-given-url-javascript-function) – Ilmari Karonen Sep 14 '17 at 18:48

1 Answers1

0

If you use client-side language(Javascript), it will be so difficult Follow question about it.

Then if you use server-side like PHP, you could code like this:

<?php
    $urlICS = 'https://planning.univ-st-etienne.fr/jsp/custom/modules/plannings/anonymous_cal.jsp?resources=3797&projectId=1&calType=ical&firstDate=2017-08-22&lastDate=2018-08-20';
    $contentICS = file_get_contents($urlICS);
    echo $contentICS;
?>
Rodolfo Luna
  • 829
  • 9
  • 19