What is HTTP?

What is HTTP?

???? ?? ?????? ???? ??? ??? ????????? ???? ??????? ???? ?? ???? ????? ? ???? ???? ???? ????? ???? ????? ?????? ? ??? ????? ?? url .

? ??? ?? ??? ????????? ?? HTTP ? ????? ???? ?? ????? ??? ?????? ???? ???? ????? ????

?? ?? WWW ( World Wide Web) ? ????? ???? Web ? ?? ????? ?? ???? ????????? ???? ??? ????? ?? web pages ?? ?? resourses ?????

Url ??? ???? ? ?? ???? ???????? ????? ?????? ?? ???? ?? Web Browser

????? ??? ??? ??? ??HTTP ???? ?? ????? ?? resourses ?? ??????.

??? ?? ??? ?? HTTP ?

?? ?????? ? Hypertext Transfer Protocol ? ?? ?????????? ??????? ???? ?????? ???? ??WWW ??? ??????? ? ??? ???????? ??? ?? clients & servers? ???????? ??? ??? ????? ????? ????? ?????? ????????? ????? ?????? ?? ?????.

? ?? ?? ???? ??? ??????? ? ?? ???? ????? ???? ?? clients' request ????? ??server ???server's response ????? ???? ?? ???.

  • ?stateless protocol ---> ???? ???? ?? ?????? ??? 2 requests ??????? ??? ??? ? ??????? ?? request ???????? session ????? , ? ???? ?? ?? ???? ????? ? ????? ????? ????? ????? ??? ??performance.?
  • HTTP Cookie (web cookie, browser cookie) ---> ????? ?? ??????? ???? ????, ????? ?? small piece of data ?? server ??????? ?? user's browser ?? ?? browser ??????? ? ????? ?????? ???? ?? ?? request ???? ??server ,? ??????? ??server ????? ??? ?? requests ???? ?? user ????? .

? ??????? ?? :

  • Session Management: Logins, shopping carts, game scores, or anything else the server should remember.
  • Personalization: User preferences, themes, and other settings.
  • Tracking: Recording and analyzing user behavior.


HTTP Messages : ?? ??????? ???? ?????? ?????? ???? ??? ??server ? ?? client

? ???? ????? : request , response

? ??????? ???? ??? ?? structure???

  • A start-line describing the requests to be implemented, or its status of whether successful or a failure, is always a single line.
  • An optional set of HTTP headers specifying the request, or describing the body included in the message.
  • A blank line indicating all meta-information for the request has been sent.
  • An optional body containing data associated with the request (like the content of an HTML form), or the document associated with a response. The presence of the body and its size is specified by the start-line and HTTP headers.

No alt text provided for this image

??? ??? ???? ? ????? ?????? ??????? ? ????????

? ???? ??? ????? ?? ???? ? ???? ???? ??? ?? ????? ?????? ???? ????? ?????? ???? ????.

要查看或添加评论,请登录

Merhan Mostafa的更多文章

  • Version Control & GitHub

    Version Control & GitHub

    ????? ????? ?? ?? Git & GitHub ? ??? ???? ?????? ?????? ??? ????? ????? ? ????????? ??? ??? ????? ???? ?? ??? ???????…

    2 条评论

社区洞察

其他会员也浏览了