Jason,
You can open a socket to your company's server current used port (default 80), send
a GET request to the page you want and listen the socket. The server will reply with
the HTML of the page you want.
Wellington Lacerda
Brazil
Jason Dimm wrote:
> Hello all,
>
> Does anyone know how to connect to another website from within a servlet, and
> then grab the html code from a particular page and assign it to a string?
>
> I want to grab the html from the page that contains a stock quote for my company
> from a separate website, assign it to a string, parse the string for the "Last
> Traded" price, and then add the "Last Traded" price to my custom web page that I
> send to a browser.
>
> Thanks,
>
> Jason
>
> ___________________________________________________________________________
> 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