Question: 2 Web Browser (35 points) Your program should have a text edit box at the top of the Write a very simple GUI web window

 2 Web Browser (35 points) Your program should have a textedit box at the top of the Write a very simple GUIweb window for the user to type a URL. Provide a listenerthat activates when the user types something in and presses "Enter" browser.

2 Web Browser (35 points) Your program should have a text edit box at the top of the Write a very simple GUI web window for the user to type a URL. Provide a listener that activates when the user types something in and presses "Enter" browser. The HTTP specification is fairly simple. Create a Socket object from the URL's web address, connecting on port 80 (the default HTTP port). You will probably want to attach a PrintWriter and a BufferedReader to the Socket. Send the following lines of text, ending in both carriage return and newline characters (yes, HTTP follows Windows line-ending conventions, rather than Unix): GET HTTP/1.1 Host: In other words, if the user typed "http://cs.okstate.edu/students.html", your program should send these three lines to the Socket: GET /students.html HTTP/1.1rln Host: cs.okstate.edu rl

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!