I want to make the following HTTP request from my Java Standalone Application and save the output JSON file in my system.
How DO i Do this
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you tried using
java.net.URLto open a connection? (See the JavaDoc). I’ve left out the import statements, but you get the idea :).Although if you’re going to be using RESTful web services a fair bit, you might want to investigate Jersey.