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.
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.
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