My code goes below :

try {
                                        
                                        method.addRequestHeader("Accept", 
"application/json");
                                        
method.addRequestHeader("OSLC-Core-Version", "2.0");
                                        
                                        System.out.println("CAlling execute 
method...");
                                        
                                        httpClient.executeMethod(method);
                                        
                                        System.out.println("After exec 
method...");
                                        
                                        String response = 
method.getResponseBodyAsString();
                                        
                                        System.out.println("============Files 
List================");
                                        
                                        System.out.println("Response ::: " + 
response);

                                        System.out.println("============Files 
List================");
}
                                

After executing "httpClient.executeMethod(method);"

the control comes out of the method.
                                

Regards,
Abhilash B.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-issue-http-client-related-tp4041922p4042064.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to