Title: RE: [Vote] Vote for a new Cactus committer
Hi,
 
[You'll soon regret to have put HttpClient in commons .... :-) ]
 
Is it possible to write a very simple tutorial (one page) that shows how to use HttpClient ?
by looking at the source and the TestMethods.java test, I guessed it is used in the following manner (for example - this is of course a minimal example) :
 
HttpClient client = new HttpClient();
client.startSession("host", 80);
GetMethod method = new GetMethod();
client.executeMethod(method);
 
// Manipulate response through the method object
method.getData() or method.getDataAsString()
 
method.setPath("some path");
client.endSession();
 
Thanks
-Vincent

Reply via email to