How to convert a HttpServletRequest to a cURL command line?

The name of the picture


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.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived