Hi All,
I'm trying to connect to a webservice and using a post command retrieving a string with the results. This worked fine until the WebService was changed to a HTTPS. then i started having problems when connection was being achieved and giving me a SSLHandShake error:
My current code consists of the following:
Any help would be great thanks.
Nick
I'm trying to connect to a webservice and using a post command retrieving a string with the results. This worked fine until the WebService was changed to a HTTPS. then i started having problems when connection was being achieved and giving me a SSLHandShake error:
My current code consists of the following:
Code:
PostMethod post = null;
HttpClient httpclient = new HttpClient();
post = new PostMethod(server+"/"+action);
post.addParameters(parameters);
post.setRequestHeader("Host", "xxx.com");
post.setRequestHeader("Content-Type", "application/x-[URL unfurl="true"]www-form-urlencoded");[/URL]
int result = httpclient.executeMethod(post);
if (result != 200)
throw new WebServiceException(post.getResponseBodyAsString());
String response = post.getResponseBodyAsString();
return response;
Any help would be great thanks.
Nick