Sample code to create requests to hit a given servlet