Thanks for the suggestions:
Make sure those text fields get url encoded (application/x-www-form-urlencoded) otherwise special characters could cause problems.
Yups !!! I have already thought about it. This is a common problem with web-based projects.
Using a true http client would probably be a better way to do this. Jakarta commons has a decent http client
I will surely look into this. Thanks.