Thanks Valentin. I have no doubt about the statelessness of http and statefulness of https, and I know https is for sure connection-based.
What I am not so sure is about the connection state about http. Personally, I fall into the group that consider http is connection-based protocol. Since it has to open socket and make a tcp/ip connection to the web server. But obviously, some other people think differently. What I really want to know is as to SCEAtest, what will be the correct answer.
Refers to network protocols in which a host can send a message without establishing a connection with the recipient. That is, the host simply puts the message onto the network with the destination address and hopes that it arrives. Examples of connectionless protocols include Ethernet, IPX, and UDP.
HTTP communication usually takes place over TCP/IP connections. The default port is TCP 80 , but other ports can be used. This does not preclude HTTP from being implemented on top of any other protocol on the Internet, or on other networks. HTTP only presumes a reliable transport; any protocol that provides such guarantees can be used; the mapping of the HTTP/1.1 request and response structures onto the transport data units of the protocol in question is outside the scope of this specification.
Bottom line: since HTTP presumes reliable transport, UDP and the like cannot be used since they are not reliable transport protocol. A connection has to be made between the client and the server, so HTTP is definitely connection-based.