Easiest Way To Do A POST Test From Java
Join the DZone community and get the full member experience.Join For Free
I need to test services with POST transactions. Using HTML to do it is the easiest way, constructed in Java (that part isn't necessary unless the args are somehow cooked or just too complex to trust hand-crafted HTML).
// write the HTML code out to stdout -- leave it to the user to redirect System.out.print( "" ); System.out.println();
Opinions expressed by DZone contributors are their own.