frag General URL components

來源:互聯網
上載者:User

標籤:this   png   point   char   amp   play   port   idea   tool   

HTTP: The Definitive Guide

 

2.2.7 Fragments

Some resource types, such as HTML, can be divided further than just the resource level. For example,
for a single, large text document with sections in it, the URL for the resource would point to the entire
text document, but ideally you could specify the sections within the resource.
To allow referencing of parts or fragments of a resource, URLs support a frag component to identify
pieces within a resource. For example, a URL could point to a particular image or section within an
HTML document.
A fragment dangles off the right-hand side of a URL, preceded by a
#
character. For example:
http://www.joes-hardware.com/tools.html#drills

In this example, the fragment
drills
references a portion of the /tools.html web page located on the
Joe‘s Hardware web server. The portion is named "drills".
Because HTTP servers generally deal only with entire objects,
[3]
not with fragments of objects, clients
don‘t pass fragments along to servers (see Figure 2-3). After your browser gets the entire resource
from the server, it then uses the fragment to display the part of the resource in which you are
interested.
[3]
In Section 15.9, we will see that HTTP agents may request byte ranges of objects. However, in the
context of URL fragments, the server sends the entire object and the agent applies the fragment identifier to
the resource.

 

frag General URL components

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.