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();
Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}