Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bastet Massri   on Jan 19 In Java Category.

  
Question Answered By: Troy Kelley   on Jan 19

try this

StringBuffer sb = new StringBuffer()
HttpURLConnection httpurlconnection = (HttpURLConnection)( new URL( "ur intranet
address" ) ).openConnection();
if( httpurlconnection.getResponseCode() == httpurlconnection.HTTP_OK
){
InputStream is = httpurlconnection.getInputStream();
int iRead=0;
while( ( iRead = is.read() ) != -1 )
sbPage.append( ( char ) iRead );
}

I am trying to get my intranet web  page in my java  application, how do i get to
do it? will java.net.url help?

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on localhost URL Or get search suggestion and latest updates.


Tagged: