The first line of the server’s reply, HTTP/1.0 200 OK, is the server letting the browser know that it also speaks HTTP 1.0 and that the request was successful. If the page did not exist, the response would have been HTTP/1.0 404 Not Found. The second line in the server’s response, Content-Type: text/html, lets that browser know that it is about to receive the web page. This is how the browser can understand what to do with the data that it’s about to receive. If this line were Content-Type:image/jpg, then the browser would know that it would be receiving a JPG image file.
The first line of the server’s reply, HTTP/1.0 200 OK, is the server letting the browser know that it also speaks HTTP 1.0 and that the request was successful. If the page did not exist, the response would have been HTTP/1.0 404 Not Found. The second line in the server’s response, Content-Type: text/html, lets that browser know that it is about to receive the web page. This is how the browser can understand what to do with the data that it’s about to receive. If this line were Content-Type:image/jpg, then the browser would know that it would be receiving a JPG image file.
การแปล กรุณารอสักครู่..