I'm not sure if it will help you but I've start playing with tool Filddler (Fiddler free web debugging proxy) it help me a lot before I develop the same in python. Other problem which I think can occure here is that you are not passing config params as body of request. Also check folder: /var/log/tomcat/*, form time to time you can found there helpful debug information.
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.
Community Help Hub
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.