What Every Web Developer Should Know About HTTP By K. Scott Allen

In fact, these days many web sites try to avoid having any sort of real file name in their URL. For starters, file names are usually associated with a specific technology, like the .aspx file extension for Microsoft’s ASP.NET technology. Many URLs will outlive the technology used to host and serve them. Secondly, many sites want to place keywords into a URL (like having /recipe/broccoli/ in the URL for a broccoli recipe). Having these keywords in the URL is a form of search engine optimization (SEO) that will rank the resource higher in search engine results. Its descriptive keywords, not filenames, that are important for URLs these days.


If we put together everything we’ve learned so far, we know a URL is broken into the following pieces:
<scheme>://<host>:<port>/<path>?<query>#<fragment>


Fortunately, you can still transmit unsafe characters in a URL, but all unsafe characters must be percent encoded (a.k.a. URL encoded). %20 is the encoding for a space character (where 20 is the hexadecimal value for the US-ASCII space character).


To specify content types, HTTP relies on the Multipurpose Internet Mail Extensions (MIME) standards.


HTTP is a request-and-response protocol. A client sends an HTTP request to a server using a carefully formatted message that the server will understand. A server responds by sending an HTTP response that the client will understand. The request and the response are two different message types that are exchanged in a single HTTP transaction . The HTTP standards define what goes into the request and response messages so that everyone who speaks “HTTP” will understand each other and can exchange resources. When a resource does not exist, a server can still reply and let you know.


telnet 命令使用方法详解,telnet命令怎么用?

https://blog.csdn.net/msq7487223/article/details/52366148


The practice of redirecting after a POST is a common web design pattern known as the POST/Redirect/GET (PRG) pattern.


Wireshark is available for OS/X and Windows from http://www.wireshark.org/ . Wireshark is a network analyzer that can show you every bit of information flowing through your network interfaces. Using Wireshark, you can observe TCP handshakes, which are the TCP messages required to establish a connection between client and server before the actual HTTP messages start flowing. You can also see the TCP and IP headers on every message.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值