OP
- Messages
- 7,432
- Reaction score
- 107
- # of dives
- 5000 - ∞
Don't know what He intended,but that link doesn't work
Yikes, www.hostname.com isn't loading right now.
Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.
Benefits of registering include
Yikes, www.hostname.com isn't loading right now.
This is a good object lesson on the selection bias common in ScubaBoard threads. Pretend for a moment that Internet Explorer is a vest-style BC and Firefox is a BP/W. For whatever reason, users of Firefox are more inclined to tell the world about it--perhaps they deem themselves more knowledgeable or avant-garde because of it--and before you know it, it seems like the whole world dives a BP/W.The Poll results are interesting. Since I can tell you that statistically our users use:
1 Internet Explorer 61.70%
2 Firefox 29.89%
3 Safari 6.86%
4 Opera 0.93%
Oh... i use IE - because I have since it came out.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
public class WebBrowser {
public static void main(String[] args) {
try {
URL url = new URL(args[0]);
URLConnection wb = url.openConnection();
Map hf = wb.getHeaderFields();
System.out.println("HEAD: " + hf);
System.out.print("BODY: ");
BufferedReader body = new BufferedReader(new InputStreamReader(wb.getInputStream()));
while(body.ready()) {
System.out.println(body.readLine());
}
} catch (MalformedURLException ex) {
Logger.getLogger(WebBrowser.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(WebBrowser.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
Don't know what He intended,but that link doesn't work
telnet www.quest.com 80
get / HTTP/1.1
Host: www.quest.com
telnet? right, take the easy way. :no
I prefer:
Code:import java.io.BufferedReader; import java.io.IOException; :D[/QUOTE] If java really had garbage collection, it would delete itself when invoked.
This is a good object lesson on the selection bias common in ScubaBoard threads. Pretend for a moment that Internet Explorer is a vest-style BC and Firefox is a BP/W. For whatever reason, users of Firefox are more inclined to tell the world about it--perhaps they deem themselves more knowledgeable or avant-garde because of it--and before you know it, it seems like the whole world dives a BP/W.