How to debug a dynamic web project with mail request in eclipse juno

I can easily debug the Get request (Debug on Server, Tomcat is running, and I can easily go over), because I just need to pass the parameter in the URL, but I'm not sure how to debug it using the mail request.

I am currently using Advanced Rest Client to run the application and check the logs to find any error. enter image description here Any help is appreciated.

+3
source share
2 answers

Postman is a very useful chrome extension for this.

Start the server in debug mode, then send the request by mail through Postman. You can also use any other http methods.

I added a screenshot that shows how to send a mail request to the local computer with json options. enter image description here

+2
source

Configure and start Tomcat from Eclispe and set a breakpoint in the POST method.

Then use the curl , wget, or SOAP UI client link.

Or even try: Write down integration tests that run tomcat and use soemthing like Apache HttpClient . You can write a JUnit class rule that starts and stops tomcat for your tests. This is a more original work, but gives you an infinitely repeatable test for continuous integration.

+1
source

All Articles