Create service that returns the content of a file using an URL


I have an app that is getting the contents (xml) of a file using a http link. I would like to replace the direct call for that link with a rest call using dreamfactory that would get that file content and send it to the client.

Basically, the client will send this info: client_name; server; key (dreamfactory key)
With this info, I need dreamfactory to get the file using the following link:
https://server/client_name.jsp and then returns the content of that jsp (which is xml).

What is the best approach to achieve this using dreamfactory?

thank you

Write a custom php script inside DF , modify the content type header to application/xml
inside the script you can write anything like curl or file_get_contents etc.