Intercepts an http request and read conents from a file