0

For debugging purposes , I need to retrieve the raw POST request of an

restTemplate.postForObject 

method , is there any way to obtain it before it get send?

0

1 Answer 1

0

If you are using Apache HttpComponents as the underlying HTTP client library for RestTemplate, you could simply add the following to your application.properties file and you are good to go:

logging.level.org.apache.http=DEBUG 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.