working atomic update with basic HTTP Auth