Changed onliner to use curl.