Connect to a web server using unencrypted standard HTTP.
No port is written in the URL.
Which destination port is used?
HTTP uses TCP port 80 by default. HTTPS uses TCP port 443.
Detailed explanation
Incorrect. 53 is DNS.
Incorrect. 53 is DNS.
Correct. TCP port 80 is standard HTTP.
Correct. TCP port 80 is standard HTTP.
Incorrect. 123/udp is NTP.
Incorrect. 123/udp is NTP.
Incorrect. 443/tcp is standard HTTPS.
Incorrect. 443/tcp is standard HTTPS.
Try it yourself
An example you can run in a temporary verification environment.
getent services http | sed -n '1p'Expected result
http 80/tcpを示すサービスデータベース行Key points
- HTTP is 80/tcp
- HTTPS is 443/tcp
- A URL can specify another port
Notes
- Environment: Linux NSS servicesデータベース / 外部通信なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.