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
I faced exactly the same issue today. For me, that thing which worked was URLEncoding the PHP script parameters using java.net.URLEncoder.encode method.
String sURL = "myURL";
String sParam="myparameters";
String sParam=java.net.URLEncoder.encode(sParam,"UTF-8");
String urlString=sURL + sParam;
HttpClient http = new HttpClient();
try {
http.getHttpResponse(urlString);
} catch (AutomationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
http=null;