How to convert a HttpServletRequest to a cURL command line?
How to convert a HttpServletRequest to a cURL command line?
I want to convert a HttpServletRequest to a cURL command line for debugging. How to do this?
1 Answer
1
The most common information are:
getRequestURL
getHeaders
getMethods
You will find all information in documentation:
https://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html
https://curl.haxx.se/docs/manpage.html
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.