Is the one above, but i gonna post down here too:
public class inline{
public static void main (String[] args){
inline i = new inline();
String r = i.push("http://www.myserver.comm:6969/0/?", "1909",
"P0AIBE");
System.out.println(r);
}
public String push(String server,String idPoll, String keyword){
try{
//URL url = new URL (server+"[{%22cmd
%22:%22inlinepush%22,%22params%22:{%22password%22:%22testpasswd
%22,%22raw%22:%22raw%22,%22channel%22:%22"+idPoll+"%22,%22data%22:
{%22keyword%22:%22"+keyword+"%22}}}]");
URL url = new URL
(server+"[{\"cmd%22:%22VOTO%22,%22params%22:
{%22encuesta%22:%22"+idPoll+"%22,%22key%22:%22"+keyword+"%22}}]");
HttpURLConnection connection = (HttpURLConnection)
url.openConnection();
connection.setRequestMethod("GET");
connection.getContentLength();
} catch (Exception e) {
return ("error [inlinePush JAVA]:
"+e.getMessage());
}
return ("Success, vote registered ");
}
}
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/