Over a million developers have joined DZone.

Easiest Way To Do A POST Test From Java

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.print( "
" ); System.out.println();

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}