What's wrong with the code you've got? That's pretty much what I've done in
the past.
(*Chris*)
----- Original Message -----
From: Ravachol Pereira <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 06, 1999 3:01 AM
Subject: WebSpider, printing the contents of an URL
> Hi,
>
> I am lost in the jungle of urls, urlstreamhandlers and
contenthandlerfactories.
> What I am trying to do is simply to get the contents of an url (the html)
and
> printing it.
>
> If anyone has done this before, please send me some sample code.
>
> This is how far I've gotten:
> ===
> URL url = new URL(urlname);
>
> URLConnection conn = url.openConnection();
>
> conn.connect();
>
> String mime = conn.getContentType();
>
> ===
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html