tried creating the method variable and the uriString variable typecast to HttpMethod variable. but the statements seem to be erronous.
Rob Prime wrote:Have you checked the API?
Depending on the method, you create an instance of an implementation of HttpMethod. For instance, for the "GET" method you create a GetMethod instance: new GetMethod(uriString). There are similar classes with matching constructors for the other 6 HTTP methods: POST, HEAD, OPTIONS, TRACE, PUT, DELETE.
Rob Prime wrote:What's wrong with actually using the classes Ulf and I mentioned?