rest example using apache HTTP components.