HTTP Programming Recipes for Java Bots