A curl wrapper that I stole from someone, heavily modified, and use very often.