Hello,
Even I am trying to write such program, so if you can help me, it will be good. Here is my code.
Code:
try
{
URL testurl = new URL("https: / / address");
HttpURLConnection connec = (HttpURLConnection)testurl.openConnection();
connec.setRequestMethod("POST");
System.out.System.out.println("Initialization OK");
connec.setDoOutput(true);
OutputStream out = connec.getOutputStream();
OutputStreamWriter wout = new OutputStreamWriter(out);
wout.write("test");
}catch(IOException e)
{
System.err.System.out.println(e);
}
Bookmarks