Skip to Content
0
May 22, 2015 at 04:38 AM

how to check http 200 ok

62 Views

Hi all;

what is PI http url for checking connection(http 200 O.K) ?

when i execute client program, i got the response message as blow;

Status: 405 - Message: Method Not Allowed

private static final String uri = "http://xxx.pi.com:50800/XISOAPAdapter/MessageServlet?ximessage=true";

final HttpPut httpput = new HttpPut(uri) ;

System.out.println(httpput);

final HttpResponse response = httpclient.execute(httpput);

System.out.println("Status: "+response.getStatusLine().getStatusCode() + " - Message: "

+ response.getStatusLine().getReasonPhrase());

Thank You.