http calls in ruby threads