×
Jinxia Li

How do TCP/IP and HTTP work together?

No Comments

HTTP client & HTTP server rely on relatively lower layer TCP to transport HTTP message.

TCP is implemented on the OS.

The TCP on the OS of the web browser will create a connection with the TCP on the OS of the web server.

Protocol vs. Protocol Implementation

A protocol is NOT code, it’s a reference model, usually written in English.

An HTTP client/server implementation can be written in any language you choose. For example:

The standard implementation is written in C (Apache httpd) and there are other implementations of HTTP server in almost any language that is available.

Reference:

How to use HTTP Client?

https://hc.apache.org/httpclient-legacy/tutorial.html

https://openjdk.java.net/groups/net/httpclient/recipes.html

https://docs.oracle.com/javame/8.0/api/httpclient/api/index.html

https://www.w3.org/Protocols/rfc2616/rfc2616.txt

https://www.quora.com/What-language-is-http-protocol-written-in#:~:text=One%20RFC%20that%20defines%20the,%3A%20Page%20on%20w3.org%20.&text=The%20standard%20implementation%20is%20written,any%20language%20that%20is%20available.

https://github.com/caddyserver/caddy

https://caddyserver.com/docs/

Leave a Comment

Your email address will not be published. Required fields are marked *

By commenting you accept the Privacy Policy