Hi,

 I'm new to swiki, and basically wanted to know if I can emulate swiki html
 edit page in java. So consider the following url:

 9.2.211.221/TWBAlerts/1.edit

 Can I use Java to edit this web page? I tried URLConnection, but I couldn't
 get the syntax correct I think. I had:

 URL proxyJavaURL = new URL("http://9.2.211.221/TWBAlerts/1.edit";);
 URLConnection conWriting = proxyJavaURL.openConnection();
 conWriting.setDoInput(true);
 conWriting.setDoOutput(true);
 conWriting.setUseCaches(false);
 
conWriting.setRequestProperty("Content-Type","application/x-www-form-urlencode
 d");
 DataOutputStream dos = new DataOutputStream(conWriting.getOutputStream());
 String msg = "text=writing to wiki";
 dos.writeBytes(msg);
 dos.flush();
 dos.close();
 
Maybe I'm doing something wrong here.
 
Thanks.
 
Umer
 

_______________________________________________
Pws mailing list
[EMAIL PROTECTED]
https://mailman.cc.gatech.edu/mailman/listinfo/pws

Reply via email to