Oh, I see...
import org.w3c.protocol.http; // It's not exactly Jigsaw :-)
HttpManager manager = HttpManager.getManager() ;
Request request = manager.createRequest() ;
request.setMethod(HTTP.GET) ;
request.setURL(new URL("http://www.w3.org/pub/WWW/"));
Reply reply = manager.runRequest(request) ;
// Get the reply input stream that contains the actual data:
InputStream in = reply.getInputStream() ;
...
-----Original Message-----
From: Gunnlaugur Thor Briem [mailto:[EMAIL PROTECTED]]
Sent: Thu, May 23, 2002 9:45 PM
To: Jakarta Commons Developers List
Subject: RE: HttpClient vs. Jigsaw vs. HTTPClient
Hi Xiaowei,
yes, there's definitely a client-side implementation,
just take a look!
API docs:
http://jigsaw.w3.org/Doc/Programmer/api/index.html
Packages:
org.w3c.www.http
org.w3c.www.protocol.http
org.w3c.www.protocol.http.auth
org.w3c.www.protocol.http.cache
org.w3c.www.protocol.http.cookies
Simple usage example (from API doc of class
org.w3c.jigsaw.protocol.http.HttpManager):
HttpManager manager = HttpManager.getManager() ;
Request request = manager.createRequest() ;
request.setMethod(HTTP.GET) ;
request.setURL(new URL("http://www.w3.org/pub/WWW/"));
Reply reply = manager.runRequest(request) ;
// Get the reply input stream that contains the actual data:
InputStream in = reply.getInputStream() ;
CVSweb access:
http://dev.w3.org/cvsweb/java/classes/org/w3c/www/http/
http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/
http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/auth/
http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/cache/
http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/cookies/
"Real" CVS access (anonymous, read-only of course):
http://www.w3.org/Jigsaw/Team.html#help
Cheers,
- Gulli
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>