heh just realized my code uses the python requests package so it's rather simple. are you using that or directly with httplib?

//