[1682] in java-interest
using the java.net classes
daemon@ATHENA.MIT.EDU (Steve Rooks)
Thu Sep 14 03:36:19 1995
From: Steve Rooks <srooks@cmprime.att.com>
Original-From: Steve Rooks <cmprime!srooks>
To: java-interest-digest@java.sun.com
Date: Thu, 14 Sep 1995 0:02:49 EDT
I'm trying to do some basic stuff in java to log into a http server
and then download a page and process the information. I'm interested
in automatically downloading share price info from a password protected
site.
I start off in the following way,
URL testURL = new URL(sharePriceURL);
HttpClient hc = new HttpClient(testURL,"proxy",80);
System.out.println("Connection Done ");
dataStream = hc.getInputStream();
MessageHeader hd = new MessageHeader(dataStream);
hd.parseHeader(dataStream);
hd.print(System.out);
but don't appear to be getting anywhere. I cannot seem to find any
documentation on how to use the java.net.* classes or any examples. The
API pages aren't much use if you don't know what your doing!
Can anyone give me a bootstrap to start me on my way?
steve
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com