A simple curl wrapper