update httplib to support setcookie