Coding a proxy redirect to get the external resources