Refactored to reduce code duplication
Don't crash if no URL parameter provided; send usage hint instead.
Copy headers over. Like a boss.