How render page to string (other than currently displayed)

Hello,
I need to render the complete page (eg http://mydomain/page-need-render.ics) into a string when the page being viewed is different (eg http://mydomain/page-actual-display). Ideally somehow less stupid than using “curl (http: //mydomain/page-need-render.ics)” :slight_smile: Anyone please have an idea? Thx