Use a global $CURL_AUTH to populate authentication data; move cache into a subdirectory of CACHE_DIR by default; add CURL_CACHE_DIR to override; handle closing handles better.
Use a global $CURL_AUTH to populate authentication data; move cache into a subdirectory of CACHE_DIR by default; add CURL_CACHE_DIR to override; handle closing handles better.

eregansu/lib,eregansu/db