I want to send post request programaticaly, using URL and inputStream so I can read output. I dont know at all how to start, I tried two other topics form SO but none worked… I dont want to use Apache client.
Thanx for replies.
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.
Try the HttpURLConnection class
heres a link to the javadoc http://docs.oracle.com/javase/1.4.2/docs/api/java/net/HttpURLConnection.html#method
heres an example i found http://www.xyzws.com/Javafaq/how-to-use-httpurlconnection-post-data-to-web-server/139
Hope it works