Managing two ethernet ports

You should get a web server running, then a web client. The ethernet examples in the IDE should help you with each of those. Then combine them.

But I would be familiar with the workings of each before attempting the combination.