I would like to quickly run a simple server locally which can receive an HTTP request, forward it to another http address, and return the response from that other address. I've been trying to figure out if this could be done with a 1-liner with netcat, but to no avail so far. Is there any one-liner way of doing this short of writing a script for it?
To be clear, I know I could do it by writing a small python/bash/ruby/etc script, but I'm wondering if the native command line utilities can handle such a simple use case.