Then just passing the user/password should be enough - if the usernames/passwords on both systems are identical, of course.
So you could simply rewrite the URLs you GET to the form http://
username:
password@host/some/path ; or just add an "Authorization:" header to the HTTP requests (see e.g.
RFC2616) and make the request using the gateway package.
Disclaimer: I haven't used the gateway package yet, but based on its feature list it seems a to be a good starting point for what you want to do.
Cheers,
Michael
P.S. Grüße nach Berlin! 😊