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
|
Title: RE: [Vote] Vote for a new Cactus committer
- HttpClient and Cookie bug Vincent Massol
- Re: HttpClient and Cookie bug Remy Maucherat
- Re: HttpClient and Cookie bug Scott Sanders
- Re: HttpClient and Cookie bug Remy Maucherat
- Link problem on Commons web pa... Jim Cheesman
- Re: HttpClient and response design Remy Maucherat
- Re: HttpClient and response design Scott Sanders
- Re: HttpClient and response design Vincent Massol
- Re: HttpClient and response de... Scott Sanders
- Re: HttpClient and some public methods Remy Maucherat
- Re: HttpClient and documentation Vincent Massol
- Re: HttpClient and documentation Remy Maucherat
- Re: HttpClient and HTTP headers/parameters Remy Maucherat
- HttpClient Summary (WAS Re: HttpClient and HTTP... Vincent Massol
- Re: HttpClient Summary (WAS Re: HttpClient ... Remy Maucherat
- Re: HttpClient Summary (WAS Re: HttpCli... Vincent Massol
- Re: HttpClient Summary (WAS Re: Ht... Remy Maucherat
- RE: [Vote] Vote for a new Cactus committer Ignacio J. Ortega
- RE: [Vote] Vote for a new Cactus committer Phil Magill
- Contributors section of Jakarta-Commons Vincent Massol
- Re: Contributors section of Jakarta-Commons James Strachan