I have a php script which is executed over a URL. (e.g. www.something.com/myscript?param=xy)
When this script is executed in a browser it gives a coded result, a neg
If you are trying to run it over HTTP I would recommend the Apache Commons HTTP Client libraries. They make it incredibly easy to perform this type of task. For example:
HttpClient http = new HttpClient();
http.setParams(new HttpClientParams());
http.setState(new HttpState());
//For Get
GetMethod get = new GetMethod("http://www.something.com/myscript?param="+paramVar);
http.executeMethod(get);
// For Post
PostMethod post = new PostMethod("http://www.something.com/myscript");
post.addParameter("param", paramVar);
http.executeMethod(post);