Major rewrite to use "trace" output from curl.