WO2011120450A2 - 基于http的内容获取方法及客户端 - Google Patents

基于http的内容获取方法及客户端 Download PDF

Info

Publication number
WO2011120450A2
WO2011120450A2 PCT/CN2011/073455 CN2011073455W WO2011120450A2 WO 2011120450 A2 WO2011120450 A2 WO 2011120450A2 CN 2011073455 W CN2011073455 W CN 2011073455W WO 2011120450 A2 WO2011120450 A2 WO 2011120450A2
Authority
WO
WIPO (PCT)
Prior art keywords
content
client
identifier
validity period
server
Prior art date
Application number
PCT/CN2011/073455
Other languages
English (en)
French (fr)
Other versions
WO2011120450A3 (zh
Inventor
张皓然
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to EP11762024.5A priority Critical patent/EP2680533B8/en
Priority to PCT/CN2011/073455 priority patent/WO2011120450A2/zh
Priority to CN201180000339.6A priority patent/CN102171992B/zh
Publication of WO2011120450A2 publication Critical patent/WO2011120450A2/zh
Publication of WO2011120450A3 publication Critical patent/WO2011120450A3/zh
Priority to US14/061,986 priority patent/US20140052819A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Definitions

  • Embodiments of the present invention relate to communication technologies, and in particular, to Hypertext Transfer Protocol (HyperText)
  • HoperText Hypertext Transfer Protocol
  • HTTP Transfer Protocol
  • the client Before the client on the terminal requests the content through the HyperText Transfer Protocol (HTTP), the client can first query whether the requested content exists in the cache. If the content exists in the cache, the client first The content of the content and the validity period of the content are obtained in the cache. If the client determines that the content is valid according to the validity period of the content, the content may be directly displayed; if the client determines that the content is invalid according to the validity period of the content, the client requests the server to verify the content, if the server is If the validity verification of the content fails, the client requests the server to obtain the corresponding new content. If the server validates the content, the server returns a confirmation message to the client, so that the client directly displays the content. .
  • HTTP HyperText Transfer Protocol
  • the embodiment of the invention provides an HTTP-based content acquisition method and a client for improving the display efficiency of the client.
  • An embodiment of the present invention provides an HTTP-based content acquisition method, including:
  • the client obtains, according to the obtained content identifier, the first content corresponding to the content identifier and the validity period of the first content from the cache;
  • the client displays the first content;
  • the client requests the server to perform validity verification on the first content according to the validity period of the first content
  • the client requests the server to acquire the second content corresponding to the content identifier
  • the client displays the second content.
  • the embodiment of the present invention provides another HTTP-based content acquisition method, including: the client acquiring the fourth content;
  • the client displays the fourth content
  • the client After the preset time interval, the client acquires the fifth content corresponding to the content identifier according to the content identifier included in the fourth content.
  • the embodiment of the invention further provides a client, including:
  • a first obtaining block configured to obtain, according to the obtained content identifier, the first content corresponding to the content identifier and the validity period of the first content from the cache;
  • a first display module configured to display the first content
  • a requesting verification module configured to request the server to perform validity verification on the first content according to the validity period of the first content
  • a second obtaining module configured to: if the server fails to validate the first content, request, by the server, to acquire a second content corresponding to the content identifier;
  • a second display module configured to display the second content.
  • An embodiment of the present invention further provides another client, including:
  • the first ear block is used to obtain the first content
  • a content display module configured to display the first content
  • a second acquiring module configured to obtain, after the preset time interval, the second content corresponding to the content identifier according to the content identifier included in the first content.
  • the embodiment of the present invention can shorten the time for the client to display content. Thereby improving the display efficiency of the client.
  • FIG. 1 is a schematic flowchart of a method for acquiring content based on HTTP according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another HTTP-based content acquisition method according to another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a client according to another embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another client according to another embodiment of the present invention. detailed description
  • FIG. 1 is a schematic flowchart of an HTTP-based content acquisition method according to an embodiment of the present invention.
  • the HTTP-based content acquisition method in this embodiment may include the following steps: Step 101: The client obtains, according to the obtained content identifier, the first content corresponding to the content identifier and the validity period of the first content from the cache.
  • the content identifier is obtained by the client from the content related information input by the user through the input device, for example: the user inputs a web address through the keyboard, and the client obtains the web address as the content identifier; for example: the user clicks through the mouse a webpage name in the bookmark, in particular, the client may obtain the first content corresponding to the content identifier and the validity period identifier of the first content from the cache according to the obtained content identifier, so that the first content may be
  • the expiration date identifier is used to obtain the expiration date corresponding to the validity period identifier of the first content, or the client may obtain the first content corresponding to the content identifier from the cache according to the obtained content identifier, but the first content is not obtained.
  • the validity period is marked so that a preset validity period, for example, 0, can be used as the validity period of the first content described above.
  • Step 102 The client displays the first content.
  • the client may display the first content according to the feature information of the first content.
  • the feature information of the first content may include, but is not limited to, a type of content and a key word of the content. For example: if the feature information of the first content is a type of content such as a picture or a novel, the client may display the first content; if the feature information of the first content is a type of content such as news, a forum, etc., the client The first content may not be displayed; if the feature information of the first content is a keyword of a content such as a registration, a verification code, etc., the client may not display the first content.
  • Step 103 The client requests the server to perform validity verification on the first content according to the validity period of the first content.
  • the client may request the server to perform validity verification on the first content.
  • the client determines that the content is valid according to the validity period of the first content, the client does not need to request the server to perform validity verification on the first content.
  • Step 104 If the server fails to verify the validity of the first content, the foregoing The client requests the server to obtain the second content corresponding to the content identifier;
  • Step 105 The client displays the second content.
  • the client may not display the second content (continue to maintain the display of the first content), or may display the second content; if the second content and the second content If the content is different, the client can display the second content.
  • step 102 and step 103 may be performed in no particular order, and this embodiment does not limit this.
  • the client after obtaining the content identifier, the client directly displays whether the first content corresponding to the content identifier in the cache is valid. Moreover, while displaying the first content, performing cache verification, if the cache is Effectively, you can continue to display the first content without performing any steps. If the cache needs to be verified from the server on the network side, you can request the server to verify: If the cache is valid, you can continue to display the first content without performing any steps. If the cache has expired, re-acquire the second content (the updated first content) to the server.
  • the first content of the first content and the first content corresponding to the content identifier are obtained from the cache, and the first content is displayed by the client according to the obtained content identifier, and the client is simultaneously according to the first
  • the requesting server performs validity verification on the first content, and if the server validates the validity of the first content, the client may keep displaying the current first content, thereby avoiding the client in the prior art.
  • the server validates the content in the cache, the problem of the above content is displayed, which shortens the time for the client to display the content, thereby improving the display efficiency of the client.
  • the client may further re-acquire the first content corresponding to the content identifier after the preset time interval, and display the re-acquired first content, that is, at a preset time. After the interval, the client automatically performs a refresh operation to obtain and display the updated first content. Specifically, if the re-acquired first content is identical to the previously displayed first content, the client may not display the re-acquired first content (continue to maintain the first content acquired before the display), or may also display re-acquisition The first content; if the reacquired first content is different from the previously displayed first content, the client displays the reacquired first content.
  • the client automatically performs the refresh operation, even if the user does not operate on the webpage corresponding to the first content for a long time, the webpage corresponding to the first content updated in real time can be seen, and the client can only be clicked according to the user.
  • the problem of triggering the reacquisition of the content corresponding to the content identifier shortens the time for the client to redisplay (refresh) the content, thereby improving the display efficiency of the client.
  • the client may further re-acquire the second content corresponding to the content identifier after the preset time interval, and display the re-acquired second content, in advance
  • the client automatically performs a refresh operation to acquire and display the updated second content. Specifically, if the reacquired second content is identical to the previously displayed second content, the client may not display the reacquired second content (continue to maintain the second content acquired before the display), or may also display reacquisition The second content; if the reacquired second content is different from the previously displayed second content, the client displays the reacquired second content.
  • the client automatically performs the refresh operation, even if the user does not operate on the webpage corresponding to the second content for a long time, the webpage corresponding to the second content updated in real time can be seen, and the client can only be clicked according to the user.
  • the problem of triggering the reacquisition of the content corresponding to the content identifier shortens the time for the client to redisplay (refresh) the content, thereby improving the display efficiency of the client.
  • FIG. 2 is a schematic flowchart of another HTTP-based content acquisition method according to another embodiment of the present invention.
  • the HTTP-based content acquisition method in this embodiment may include the following steps: Step 201: The client obtains the fourth content.
  • Step 202 The client displays the fourth content.
  • Step 203 After the preset time interval, the client obtains the fifth content corresponding to the content identifier according to the content identifier included in the fourth content.
  • the fourth content may include multiple content identifiers, for example: a content identifier corresponding to a link label (for example, a home link label, an entertainment link label, a real estate link label, etc.), and a function control (for example: a next function control (Next) ), return to the function control (Back)) corresponding content identifier and so on.
  • a link label for example, a home link label, an entertainment link label, a real estate link label, etc.
  • a function control for example: a next function control (Next)
  • Next return to the function control (Back)
  • the client can directly display the fifth content that has been acquired.
  • the step of obtaining, by the client, the content identifier included in the at least one fourth content is further included.
  • the client may obtain the content identifier corresponding to the function control according to the function control in the fourth content, for example: returning a function control (for example, Back).
  • the client may further obtain the content identifier corresponding to the link label according to the link label in the fourth content, for example, a home link label or the like.
  • the fourth content that is obtained by the client is displayed, and after the preset time interval, the client may obtain the fifth content corresponding to the content identifier according to the content identifier included in the fourth content, thereby avoiding
  • the client can only obtain the content corresponding to the content identifier according to the content identifier obtained by the user by clicking, and shortens the time for the client to display the content, thereby improving the display efficiency of the client.
  • FIG. 3 is a schematic structural diagram of a client according to another embodiment of the present invention.
  • the client in this embodiment may include a first obtaining module 41, a first display module 42, and a request verification module 43.
  • the first obtaining module 41 is configured to obtain, according to the obtained content identifier, the first content corresponding to the content identifier and the validity period of the first content
  • the first display module 42 is configured to display the first obtaining module 41 to obtain
  • the requesting verification module 43 is configured to request the server to perform validity verification on the first content according to the validity period of the first content acquired by the first obtaining module 41.
  • the second obtaining module 44 is configured to use the server pair.
  • the first content is not validated, and the server is requested to obtain the second content corresponding to the content identifier.
  • the second display module 45 is configured to display the second content acquired by the second module 44.
  • the function of the client in the embodiment corresponding to the foregoing FIG. 1 can be implemented by the client provided by the embodiment of the present invention.
  • the first obtaining module 41 in this embodiment may obtain, according to the obtained content identifier, the first content corresponding to the content identifier and the validity period identifier of the first content, and the first content according to the first content.
  • the validity period identifier of the first content is obtained by the validity period corresponding to the validity period identifier of the first content.
  • the first obtaining module 41 in this embodiment may further obtain, according to the obtained content identifier, the first content corresponding to the content identifier from the cache, and the validity period set in advance as the validity period of the first content. .
  • the request verification module 43 in this embodiment may specifically request the server to perform validity verification on the first content if the time for the client to cache the first content exceeds the validity period.
  • the first display module 42 in this embodiment may specifically display the first content according to the feature information of the first content.
  • the client obtains, by the first acquiring module, the first content corresponding to the content identifier and the validity period of the first content, and displays the first content by the first display module, according to the obtained content identifier.
  • the verification module to request the server to perform validity verification on the first content according to the validity period of the first content
  • the second obtaining module may maintain the first display module if the server performs validity verification on the first content.
  • the current content of the first content is displayed, which avoids the problem that the client needs to display the content after the server validates the content in the cache, which shortens the time for the client to display the content, thereby improving the time.
  • the display efficiency of the client is displayed, which avoids the problem that the client needs to display the content after the server validates the content in the cache, which shortens the time for the client to display the content, thereby improving the time.
  • the display efficiency of the client is displayed, which avoid
  • the first obtaining module 41 in this embodiment may further re-acquire the first content corresponding to the content identifier after the preset time interval; correspondingly, the first display module 42 may further display the first content.
  • the first content obtained by the module 41 is reacquired. In this way, since the client automatically performs the refresh operation, even if the user does not operate on the webpage corresponding to the first content for a long time, the webpage corresponding to the first content updated in real time can be seen, and the client can only be clicked according to the user.
  • the problem of triggering the reacquisition of the content corresponding to the content identifier shortens the time for the client to redisplay (refresh) the content, thereby improving the display efficiency of the client.
  • the second obtaining module 44 in this embodiment may further re-acquire the second content corresponding to the content identifier after the preset time interval; correspondingly, the second display module 45 is further configured to display the second content.
  • the second content of the above acquired by the obtaining module 44 is obtained.
  • the client automatically performs the refresh operation, even if the user does not operate on the webpage corresponding to the second content for a long time, the webpage corresponding to the second content updated in real time can be seen, and the client can only be clicked according to the user.
  • the problem of triggering the reacquisition of the content corresponding to the content identifier shortens the time for the client to redisplay (refresh) the content, thereby improving the display efficiency of the client.
  • FIG. 4 is a schematic structural diagram of another client according to another embodiment of the present invention.
  • the client in this embodiment may include a first acquiring module 51, a content display module 52, and a second acquiring module. 53.
  • the first acquisition module 51 is configured to acquire the fourth content;
  • the content acquisition module 52 is configured to display the fourth content acquired by the first acquisition module 51;
  • the fifth content corresponding to the content identifier is obtained according to the content identifier included in the fourth content.
  • the functions of the client in the embodiment corresponding to FIG. 2 above may be implemented by the client provided by the embodiment of the present invention.
  • the second obtaining module 53 in this embodiment may further obtain the content identifier included in the at least one fourth content, and specifically include: acquiring the content identifier corresponding to the function control according to the function control in the fourth content; or And obtaining, according to the link label in the fourth content, a content identifier corresponding to the link label.
  • the client displays the fourth content acquired by the first acquiring module by using the content display module
  • the second acquiring module may obtain the content identifier according to the content identifier included in the fourth content after the preset time interval.
  • the fifth content avoiding the problem that the client can only obtain the content corresponding to the content identifier according to the content identifier obtained by the user by clicking, shortening the time for the client to display the content, thereby improving the display of the client. effectiveness.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例提供基于HTTP的内容获取办法及客户端,一种方法包括:客户端根据获取的内容标识,从缓存中获取与内容标识对应的第一内容和第一内容的有效期(101);客户端显示第一内容(102);客户端根据第一内容的有效期,请求服务器对第一内容进行有效期验证(103);若服务器对第一内容进行有效期验证未通过,客户端向服务器请求获取与内容标识对应的第二内容(104);客户端显示第二内容(105)。能够缩短客户端显示内容的时间,从而提高了客户端的显示效率。

Description

基于 HTTP的内容获取方法及客户端
技术领域
本发明实施例涉及通信技术, 尤其涉及基于超文本传输协议( HyperText
Transfer Protocol, 简称 HTTP ) 的内容获取方法及客户端。 背景技术
终端上的客户端通过超文本传输协议 ( HyperText Transfer Protocol, 简 称 HTTP ) 向服务器请求获取内容之前, 可以先查询緩存中是否存在所请求 的内容, 如果緩存中有该内容, 那么客户端则先从緩存中获取该内容和该内 容的有效期。 如果客户端根据该内容的有效期, 确定该内容有效, 可以直接 显示该内容; 如果客户端根据该内容的有效期, 确定该内容无效, 则客户端 请求服务器对该内容进行有效性验证, 若服务器对该内容进行有效性验证未 通过, 客户端则向服务器请求获取对应的新的内容, 若服务器对该内容进行 有效性验证通过, 服务器则向客户端返回确认信息, 以使客户端直接显示该 内容。
对于服务器验证继续有效的内容, 延长了客户端显示该内容的时间, 从 而降低了客户端的显示效率。 发明内容
本发明实施例提供基于 HTTP的内容获取方法及客户端, 用以提高客户 端的显示效率。
本发明实施例提供了一种基于 HTTP的内容获取方法, 包括:
客户端根据获取的内容标识, 从緩存中获取与所述内容标识对应的第一 内容和所述第一内容的有效期; 所述客户端显示所述第一内容;
所述客户端根据所述第一内容的有效期, 请求服务器对所述第一内容进 行有效性验证;
若所述服务器对所述第一内容进行有效性验证未通过, 所述客户端向服 务器请求获取与所述内容标识对应的第二内容;
所述客户端显示所述第二内容。
本发明实施例提供了另一种基于 HTTP的内容获取方法, 包括: 客户端获取第四内容;
所述客户端显示所述第四内容;
在预先设置的时间间隔之后, 所述客户端根据与所述第四内容包含的内 容标识, 获取与所述内容标识对应的第五内容。
本发明实施例还提供了一种客户端, 包括:
第一获耳 莫块, 用于根据获取的内容标识, 从緩存中获取与所述内容标 识对应的第一内容和所述第一内容的有效期;
第一显示模块, 用于显示所述第一内容;
请求验证模块, 用于根据所述第一内容的有效期, 请求服务器对所述第 一内容进行有效性验证;
第二获取模块 , 用于若所述服务器对所述第一内容进行有效性验证未通 过, 向服务器请求获取与所述内容标识对应的第二内容;
第二显示模块, 用于显示所述第二内容。
本发明实施例还提供了另一种客户端, 包括:
第一获耳 莫块, 用于获取第一内容;
内容显示模块, 用于显示所述第一内容;
第二获取模块, 用于在预先设置的时间间隔之后, 根据与所述第一内容 包含的内容标识, 获取与所述内容标识对应的第二内容。
由上述技术方案可知, 本发明实施例能够缩短客户端显示内容的时间, 从而提高了客户端的显示效率。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一实施例提供的一种基于 HTTP的内容获取方法的流程示 意图;
图 2为本发明另实施例提供的另一种基于 HTTP的内容获取方法的流程 示意图;
图 3为本发明另一实施例提供的一种客户端的结构示意图;
图 4为本发明另一实施例提供的另一种客户端的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 数字助理(Personal Digital Assistant, 简称 PDA )、 无线手持设备、 无线上 网本、 便携电脑、 MP3播放器、 MP4播放器等。
图 1为本发明一实施例提供的一种基于 HTTP的内容获取方法的流程示 意图, 如图 1所示, 本实施例的基于 HTTP的内容获取方法可以包括以下步 骤: 步骤 101、 客户端根据获取的内容标识, 从緩存中获取与上述内容标识 对应的第一内容和上述第一内容的有效期;
其中, 上述内容标识为客户端从用户通过输入设备输入的内容相关信息 中获取的, 例如: 用户通过键盘输入一个网址, 那么客户端则获取了这个网 址作为内容标识; 再例如: 用户通过鼠标点击收藏夹中的一个网页名称, 那 具体地, 客户端可以根据获取的内容标识, 从緩存中获取与上述内容标 识对应的第一内容和上述第一内容的有效期标识, 从而可以根据上述第一内 容的有效期标识, 获取上述第一内容的有效期标识对应的有效期; 或者客户 端还可以根据获取的内容标识, 从緩存中获取与上述内容标识对应的第一内 容, 但是没有获取到该第一内容的有效期标识, 从而可以将预先设置的有效 期, 例如: 0, 作为上述第一内容的有效期。
步骤 102、 上述客户端显示上述第一内容;
具体地, 客户端可以根据上述第一内容的特征信息, 显示上述第一内容。 其中, 上述第一内容的特征信息可以包括但不限于内容的类型和内容的关键 词。 例如: 如果第一内容的特征信息为图片、 小说等内容的类型时, 该客户 端可以显示上述第一内容; 如果第一内容的特征信息为新闻、 论坛等内容的 类型时, 该客户端则可以不显示上述第一内容; 如果第一内容的特征信息为 注册、 验证码等内容的关键词时, 该客户端则可以不显示上述第一内容。
步骤 103、 上述客户端根据上述第一内容的有效期, 请求服务器对上述 第一内容进行有效性验证;
具体地, 若上述客户端緩存上述第一内容的时间超过上述有效期, 上述 客户端则可以请求服务器对上述第一内容进行有效性验证。
可以理解的是: 如果客户端根据上述第一内容的有效期, 确定该内容有 效, 客户端则无需请求服务器对上述第一内容进行有效性验证。
步骤 104、 若上述服务器对上述第一内容进行有效性验证未通过, 上述 客户端向服务器请求获取与上述内容标识对应的第二内容;
可以理解的是: 虽然上述服务器对上述第一内容进行有效性验证未通过, 但是也不能排除客户端请求获取到的第二内容与第一内容完全相同的情况。
步骤 105、 上述客户端显示上述第二内容。
具体地, 若上述第二内容与第一内容完全相同, 客户端则可以不显示上 述第二内容(继续维持显示第一内容) , 或者还可以显示上述第二内容; 若 上述第二内容与第一内容不相同, 客户端则可以显示上述第二内容。
需要说明的是: 若上述服务器对上述第一内容进行有效性验证通过, 客 户端则维持显示第一内容, 本实施例的流程则立即结束; 若上述服务器对上 述第一内容进行有效性验证未通过, 客户端则继续执行步骤 104和 105, 然 后本实施例的流程才结束。
本实施例中, 步骤 102与步骤 103的执行可以不分先后, 本实施例对此 不进行限制。
本实施例中, 客户端在获取内容标识之后, 不管緩存中的该内容标识对 应的第一内容是否有效, 都直接显示; 并且, 在显示第一内容的同时, 进行 緩存的验证, 如果緩存是有效的, 可以无需执行任何步骤, 继续显示第一内 容, 如果緩存需要从网络侧的服务器进行验证, 则可以请求服务器进行验证: 如果緩存是有效的, 可以无需执行任何步骤, 继续显示第一内容, 如果緩存 已经过期, 则重新向服务器获取第二内容(更新的第一内容) 。
本实施例中, 通过客户端根据获取的内容标识, 从緩存中获取与上述内 容标识对应的第一内容和上述第一内容的有效期, 并显示上述第一内容, 上 述客户端同时根据上述第一内容的有效期, 请求服务器对上述第一内容进行 有效性验证, 若上述服务器对上述第一内容进行有效性验证通过, 上述客户 端可以保持显示当前的第一内容, 避免了现有技术中客户端需要在服务器对 緩存中的内容进行有效性验证通过之后, 才显示上述内容的问题, 缩短了客 户端显示该内容的时间, 从而提高了客户端的显示效率。 在步骤 102之后, 客户端还可以在预先设置的时间间隔之后, 进一步重 新获取与上述内容标识对应的第一内容, 并显示重新获取的所述第一内容, 也就是说, 在预先设置的时间间隔之后, 客户端自动执行刷新操作用以获取 并显示更新的第一内容。 具体地, 若重新获取的第一内容与之前显示的第一 内容完全相同, 客户端则可以不显示重新获取的第一内容(继续维持显示之 前获取的第一内容) , 或者还可以显示重新获取的第一内容; 若重新获取的 第一内容与之前显示的第一内容不相同,客户端则显示重新获取的第一内容。 这样, 由于客户端自动进行了刷新操作, 即使用户长时间不在第一内容对应 的网页上进行操作, 也能够看到实时更新的第一内容对应的网页, 避免了客 户端只能根据用户通过点击触发重新获取与内容标识对应的内容的问题, 缩 短了客户端重新显示(刷新)该内容的时间, 从而提高了客户端的显示效率。
在步骤 104之后, 在预先设置的时间间隔之后, 客户端还可以在预先设 置的时间间隔之后, 进一步重新获取与上述内容标识对应的第二内容, 并显 示重新获取的上述第二内容, 在预先设置的时间间隔之后, 客户端自动执行 刷新操作用以获取并显示更新的第二内容。 具体地, 若重新获取的第二内容 与之前显示的第二内容完全相同, 客户端则可以不显示重新获取的第二内容 (继续维持显示之前获取的第二内容) , 或者还可以显示重新获取的第二内 容; 若重新获取的第二内容与之前显示的第二内容不相同, 客户端则显示重 新获取的第二内容。 这样, 由于客户端自动进行了刷新操作, 即使用户长时 间不在第二内容对应的网页上进行操作, 也能够看到实时更新的第二内容对 应的网页, 避免了客户端只能根据用户通过点击触发重新获取与内容标识对 应的内容的问题, 缩短了客户端重新显示(刷新)该内容的时间, 从而提高 了客户端的显示效率。
图 2为本发明另一实施例提供的另一种基于 HTTP的内容获取方法的流 程示意图, 如图 2所示, 本实施例的基于 HTTP的内容获取方法可以包括以 下步骤: 步骤 201、 客户端获取第四内容;
步骤 202、 上述客户端显示上述第四内容;
步骤 203、 在预先设置的时间间隔之后, 上述客户端根据上述第四内容 包含的内容标识, 获取与上述内容标识对应的第五内容。
其中, 第四内容中可以包含多个内容标识, 例如: 链接标签(例如: 首 页链接标签、 娱乐链接标签、 房产链接标签等)对应的内容标识, 功能控件 (例如: 下一页功能控件(Next ) 、 返回功能控件(Back ) )对应的内容标 识等。
这样, 如果后续客户端接收到用户触发的显示第五内容的命令, 客户端 则可以直接显示已经获取的该第五内容。
本步骤之前, 还可以包括客户端获取与上述至少一个第四内容包含的内 容标识的步骤。
可选地, 上述客户端可以根据上述第四内容中的功能控件, 获取上述功 能控件对应的内容标识, 例如: 返回功能控件(例如: Back )等。
可选地, 上述客户端还可以根据上述第四内容中的链接标签, 获取上述 链接标签对应的内容标识, 例如: 首页链接标签等。
本实施例中, 通过客户端显示获取的第四内容, 在预先设置的时间间隔 之后, 该客户端可以根据与上述第四内容包含的内容标识, 获取上述内容标 识对应的第五内容, 避免了客户端只能根据用户通过点击触发获取的内容标 识, 获取与上该内容标识对应的内容的问题, 缩短了客户端显示该内容的时 间, 从而提高了客户端的显示效率。
需要说明的是: 对于前述的各方法实施例, 为了简单描述, 故将其都表 述为一系列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描 述的动作顺序的限制, 因为依据本发明, 某些步骤可以采用其他顺序或者同 时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属 于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有 详述的部分, 可以参见其他实施例的相关描述。
图 3为本发明另一实施例提供的一种客户端的结构示意图,如图 3所示, 本实施例的客户端可以包括第一获取模块 41、 第一显示模块 42、 请求验证 模块 43、 第二获取模块 44和第二显示模块 45。 其中, 第一获取模块 41用 于根据获取的内容标识, 从緩存中获取与上述内容标识对应的第一内容和上 述第一内容的有效期; 第一显示模块 42用于显示第一获取模块 41获取的上 述第一内容; 请求验证模块 43用于根据第一获取模块 41获取的上述第一内 容的有效期, 请求服务器对上述第一内容进行有效性验证; 第二获取模块 44 用于若上述服务器对上述第一内容进行有效性验证未通过, 向服务器请求获 取与上述内容标识对应的第二内容;第二显示模块 45用于显示第二获耳 莫块 44获取的上述第二内容。
上述图 1对应的实施例中客户端的功能可以由本发明实施例提供的客户 端实现。
可选地, 本实施例中的第一获 莫块 41具体可以根据获取的内容标识, 从緩存中获取与上述内容标识对应的第一内容和上述第一内容的有效期标 识, 根据上述第一内容的有效期标识, 获取上述第一内容的有效期标识对应 的有效期。
可选地, 本实施例中的第一获取模块 41 具体还可以根据获取的内容标 识, 从緩存中获取与上述内容标识对应的第一内容, 将预先设置的有效期, 作为上述第一内容的有效期。
具体地,本实施例中的请求验证模块 43具体可以若上述客户端緩存上述 第一内容的时间超过上述有效期, 请求服务器对上述第一内容进行有效性验 证。
具体地,本实施例中的第一显示模块 42具体可以根据上述第一内容的特 征信息, 显示上述第一内容。 本实施例中, 客户端通过第一获取模块根据获取的内容标识, 从緩存中 获取与上述内容标识对应的第一内容和上述第一内容的有效期, 并由第一显 示模块显示上述第一内容, 请求验证模块同时根据上述第一内容的有效期, 请求服务器对上述第一内容进行有效性验证, 第二获取模块若上述服务器对 上述第一内容进行有效性验证通过, 上述第一显示模块可以保持显示当前的 第一内容, 避免了现有技术中客户端需要在服务器对緩存中的内容进行有效 性验证通过之后, 才显示上述内容的问题, 缩短了客户端显示该内容的时间, 从而提高了客户端的显示效率。
进一步地,本实施例中的第一获取模块 41还可以进一步在预先设置的时 间间隔之后, 重新获取与上述内容标识对应的第一内容; 相应地, 第一显示 模块 42还可以进一步显示第一获取模块 41重新获取的上述第一内容。这样, 由于客户端自动进行了刷新操作, 即使用户长时间不在第一内容对应的网页 上进行操作, 也能够看到实时更新的第一内容对应的网页, 避免了客户端只 能根据用户通过点击触发重新获取与内容标识对应的内容的问题, 缩短了客 户端重新显示(刷新)该内容的时间, 从而提高了客户端的显示效率。
进一步地,本实施例中的第二获取模块 44还可以进一步在预先设置的时 间间隔之后, 重新获取与上述内容标识对应的第二内容; 相应地, 第二显示 模块 45还用于显示第二获取模块 44重新获取的上述第二内容。 这样, 由于 客户端自动进行了刷新操作, 即使用户长时间不在第二内容对应的网页上进 行操作, 也能够看到实时更新的第二内容对应的网页, 避免了客户端只能根 据用户通过点击触发重新获取与内容标识对应的内容的问题, 缩短了客户端 重新显示(刷新)该内容的时间, 从而提高了客户端的显示效率。
图 4为本发明另一实施例提供的另一种客户端的结构示意图, 如图 4所 示, 本实施例的客户端可以包括第一获取模块 51、 内容显示模块 52和第二 获耳 莫块 53。 其中, 第一获耳 莫块 51用于获取第四内容; 内容显示模块 52 用于显示第一获取模块 51获取的上述第四内容; 第二获取模块 53用于在预 先设置的时间间隔之后, 根据上述第四内容包含的内容标识, 获取与上述内 容标识对应的第五内容。
上述图 2对应的实施例中客户端的功能可以由本发明实施例提供的客户 端实现。
进一步地,本实施例中的第二获取模块 53还可以进一步获取与上述至少 一个第四内容包含的内容标识, 具体包括: 根据第四内容中的功能控件, 获 取功能控件对应的内容标识; 或, 根据第四内容中的链接标签, 获取链接标 签对应的内容标识。
本实施例中, 客户端通过内容显示模块显示第一获取模块获取的第四内 容, 第二获取模块在预先设置的时间间隔之后, 可以根据与上述第四内容包 含的内容标识, 获取上述内容标识对应的第五内容, 避免了客户端只能根据 用户通过点击触发获取的内容标识 ,获取与上该内容标识对应的内容的问题, 缩短了客户端显示该内容的时间, 从而提高了客户端的显示效率。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权 利 要求
1、 一种基于 HTTP的内容获取方法, 其特征在于, 包括:
客户端根据获取的内容标识, 从緩存中获取与所述内容标识对应的第一 内容和所述第一内容的有效期;
所述客户端显示所述第一内容;
所述客户端根据所述第一内容的有效期, 请求服务器对所述第一内容进 行有效性验证;
若所述服务器对所述第一内容进行有效性验证未通过, 所述客户端向服 务器请求获取与所述内容标识对应的第二内容;
所述客户端显示所述第二内容。
2、 根据权利要求 1所述的方法, 其特征在于, 所述客户端根据获取的内 容标识, 从緩存中获取与所述内容标识对应的第一内容和所述第一内容的有 效期的步骤具体包括:
所述客户端根据获取的内容标识, 从緩存中获取与所述内容标识对应的 第一内容和所述第一内容的有效期标识;
所述客户端根据所述第一内容的有效期标识, 获取所述第一内容的有效 期标识对应的有效期。
3、 根据权利要求 1所述的方法, 其特征在于, 所述客户端根据获取的内 容标识, 从緩存中获取与所述内容标识对应的第一内容和所述第一内容的有 效期的步骤具体包括:
所述客户端根据获取的内容标识, 从緩存中获取与所述内容标识对应的 第一内容;
所述客户端将预先设置的有效期, 作为所述第一内容的有效期。
4、 根据权利要求 1所述的方法, 其特征在于, 所述客户端根据所述第一 内容的有效期,请求服务器对所述第一内容进行有效性验证的步骤具体包括: 若所述客户端緩存所述第一内容的时间超过所述有效期, 所述客户端请 求服务器对所述第一内容进行有效性验证。
5、根据权利要求 1至 4任一权利要求所述的方法, 其特征在于, 所述客 户端显示所述第一内容的步骤具体包括:
所述客户端根据所述第一内容的特征信息, 显示所述第一内容。
6、根据权利要求 1至 4任一权利要求所述的方法, 其特征在于, 所述客 户端显示所述第一内容, 之后还包括:
所述客户端在预先设置的时间间隔之后, 重新获取与所述内容标识对应 的第一内容;
所述客户端显示重新获取的所述第一内容。
7、根据权利要求 1至 4任一权利要求所述的方法, 其特征在于, 所述客 户端显示所述第二内容, 之后还包括:
所述客户端在预先设置的时间间隔之后, 重新获取与所述内容标识对应 的第二内容;
所述客户端显示重新获取的所述第二内容。
8、 一种基于 HTTP的内容获取方法, 其特征在于, 包括:
客户端获取第四内容;
所述客户端显示所述第四内容;
所述客户端根据所述第四内容包含的内容标识, 获取与所述内容标识对 应的第五内容。
9、 根据权利要求 8所述的方法, 其特征在于, 所述第四内容至少包含一 个内容标识, 所述客户端获取所述第四内容包含的一个内容标识的步骤具体 包括:
所述客户端根据所述第四内容中的功能控件, 获取所述功能控件对应的 内容标识; 或
所述客户端根据所述第四内容中的链接标签, 获取所述链接标签对应的 内容标识。
10、 一种客户端, 其特征在于, 包括:
第一获耳 莫块, 用于根据获取的内容标识, 从緩存中获取与所述内容标 识对应的第一内容和所述第一内容的有效期;
第一显示模块, 用于显示所述第一内容;
请求验证模块, 用于根据所述第一内容的有效期, 请求服务器对所述第 一内容进行有效性验证;
第二获取模块 , 用于若所述服务器对所述第一内容进行有效性验证未通 过, 向服务器请求获取与所述内容标识对应的第二内容;
第二显示模块, 用于显示所述第二内容。
11、 根据权利要求 10 所述的客户端, 其特征在于, 所述第一获取模块 具体用于
根据获取的内容标识, 从緩存中获取与所述内容标识对应的第一内容和 所述第一内容的有效期标识, 根据所述第一内容的有效期标识, 获取所述第 一内容的有效期标识对应的有效期。
12、 根据权利要求 10 所述的客户端, 其特征在于, 所述第一获取模块 具体用于
根据获取的内容标识, 从緩存中获取与所述内容标识对应的第一内容, 将预先设置的有效期, 作为所述第一内容的有效期。
13、 根据权利要求 10 所述的客户端, 其特征在于, 所述请求验证模块 具体用于
若所述客户端緩存所述第一内容的时间超过所述有效期, 请求服务器对 所述第一内容进行有效性验证。
14、 根据权利要求 10至 13任一权利要求所述的客户端, 其特征在于, 所述第一显示模块具体用于
根据所述第一内容的特征信息, 显示所述第一内容。
15、 一种客户端, 其特征在于, 包括: 第一获耳 莫块, 用于获取第四内容;
内容显示模块, 用于显示所述第四内容;
第二获取模块, 用于在预先设置的时间间隔之后, 根据所述第四内容包 含的内容标识, 获取与所述内容标识对应的第五内容。
16、 根据权利要求 15 所述的客户端, 其特征在于, 所述第二获取模块 还用于获取至少一个第四内容包含的内容标识, 具体包括:
根据所述第四内容中的功能控件, 获取所述功能控件对应的内容标识; 或
根据所述第四内容中的链接标签, 获取所述链接标签对应的内容标识。
PCT/CN2011/073455 2011-04-28 2011-04-28 基于http的内容获取方法及客户端 WO2011120450A2 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP11762024.5A EP2680533B8 (en) 2011-04-28 2011-04-28 Content acquiring method and client based on http
PCT/CN2011/073455 WO2011120450A2 (zh) 2011-04-28 2011-04-28 基于http的内容获取方法及客户端
CN201180000339.6A CN102171992B (zh) 2011-04-28 2011-04-28 基于http的内容获取方法及客户端
US14/061,986 US20140052819A1 (en) 2011-04-28 2013-10-24 Http-based content acquisition method and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/073455 WO2011120450A2 (zh) 2011-04-28 2011-04-28 基于http的内容获取方法及客户端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/061,986 Continuation US20140052819A1 (en) 2011-04-28 2013-10-24 Http-based content acquisition method and client

Publications (2)

Publication Number Publication Date
WO2011120450A2 true WO2011120450A2 (zh) 2011-10-06
WO2011120450A3 WO2011120450A3 (zh) 2012-03-22

Family

ID=44491711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073455 WO2011120450A2 (zh) 2011-04-28 2011-04-28 基于http的内容获取方法及客户端

Country Status (4)

Country Link
US (1) US20140052819A1 (zh)
EP (1) EP2680533B8 (zh)
CN (1) CN102171992B (zh)
WO (1) WO2011120450A2 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10491604B2 (en) 2014-08-27 2019-11-26 Roche Diagnostics Operations, Inc. Identification, authentication, and authorization method in a laboratory system
CN116016246A (zh) * 2021-10-22 2023-04-25 华为技术有限公司 设备标识符获取方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6088853B2 (ja) * 2013-02-27 2017-03-01 株式会社東芝 通信装置、通信方法および通信プログラム
US10212256B2 (en) * 2015-12-14 2019-02-19 Facebook, Inc. Delegating database queries

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6157930A (en) * 1998-09-24 2000-12-05 Acceleration Software International Corporation Accelerating access to wide area network information in mode for showing document then verifying validity
US7343412B1 (en) * 1999-06-24 2008-03-11 International Business Machines Corporation Method for maintaining and managing dynamic web pages stored in a system cache and referenced objects cached in other data stores
US6535912B1 (en) * 1999-08-31 2003-03-18 Lucent Technologies Inc. Method for creating and playing back a smart bookmark that automatically retrieves a requested Web page through a plurality of intermediate Web pages
WO2002052473A1 (fr) * 2000-12-27 2002-07-04 Sony Corporation Appareil d'enregistrement de donnees et appareil et procede d'enregistrement de donnees
CN1221898C (zh) * 2002-08-13 2005-10-05 国际商业机器公司 刷新网络代理高速缓存服务器对象的系统和方法
KR100508010B1 (ko) * 2003-01-14 2005-08-17 주식회사 인츠커뮤니티 인증을 통해 온라인으로 디지털 콘텐츠를 제공하는 방법및 시스템
CA2513014A1 (en) * 2005-07-22 2007-01-22 Research In Motion Limited A method of controlling delivery of multi-part content from an origin server to a mobile device browser via a proxy server
JP4939046B2 (ja) * 2005-12-02 2012-05-23 キヤノン株式会社 画像処理装置およびその制御方法
CN101075236A (zh) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 一种加快浏览器网页显示的装置和方法
CN101335762A (zh) * 2007-06-25 2008-12-31 株式会社日立制作所 反映网页的历史使用行为的方法,及服务器、终端和系统
CN101534314A (zh) * 2008-03-12 2009-09-16 华为技术有限公司 一种缓存指示上报的方法、系统和装置
CN101567875B (zh) * 2008-04-25 2012-08-29 华为技术有限公司 一种实现缓存策略控制的方法、系统及装置
US20110029899A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods for Acceleration and Optimization of Web Pages Access by Changing the Order of Resource Loading

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
None
See also references of EP2680533A4

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10491604B2 (en) 2014-08-27 2019-11-26 Roche Diagnostics Operations, Inc. Identification, authentication, and authorization method in a laboratory system
US10944760B2 (en) 2014-08-27 2021-03-09 Roche Diagnostics Operations, Inc. Identification, authentication, and authorization method in a laboratory system
CN116016246A (zh) * 2021-10-22 2023-04-25 华为技术有限公司 设备标识符获取方法及装置

Also Published As

Publication number Publication date
EP2680533B8 (en) 2017-12-13
US20140052819A1 (en) 2014-02-20
EP2680533A4 (en) 2014-05-14
EP2680533B1 (en) 2017-11-08
WO2011120450A3 (zh) 2012-03-22
EP2680533A2 (en) 2014-01-01
CN102171992A (zh) 2011-08-31
CN102171992B (zh) 2015-04-15

Similar Documents

Publication Publication Date Title
US8463915B1 (en) Method for reducing DNS resolution delay
WO2017114205A1 (zh) 短链接处理方法、装置及服务器
EP2653987B1 (en) Displaying web pages without downloading static files
US20160080464A1 (en) Enhanced Browser Cookie Management
WO2017190641A1 (zh) 拦截爬虫的方法、装置、服务器终端以及计算机可读介质
US10938935B1 (en) Reduction in redirect navigation latency via speculative preconnection
US20110289126A1 (en) Content delivery network
EP2698730B1 (en) Data acquisition method, device and system
US8484373B2 (en) System and method for redirecting a request for a non-canonical web page
US8930457B2 (en) Proximity initiated co-browsing sessions
US20150296027A1 (en) Continuous Browsing Across Devices
WO2015058511A1 (zh) 一种设置网络连接参数的方法和装置
WO2016173185A1 (zh) 信息推送方法和装置
WO2011120450A2 (zh) 基于http的内容获取方法及客户端
EP3092611A1 (en) Method, apparatus, and system for communicating and presenting product information
US20140337536A1 (en) Method and apparatus for data communication
CN106161356B (zh) 通过客户端快速登录网站的方法和系统
WO2014206109A1 (zh) 文件下载方法、预览下载文件的方法及预览信息生成方法
WO2012028033A1 (zh) 消息更新的方法和装置
WO2015058614A1 (zh) 一种书签存储方法及装置、确定待浏览书签的方法及装置
WO2015154270A1 (zh) 一种信息搜索的方法以及装置
WO2015085794A1 (en) Data transmission method, related apparatus, and communications system
WO2017067373A1 (zh) 数据推送方法及装置
US8903951B2 (en) Speculative database authentication
US20130097225A1 (en) Mobile Proxy Server for Internet Server Having a Dynamic IP Address

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000339.6

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11762024

Country of ref document: EP

Kind code of ref document: A2

REEP Request for entry into the european phase

Ref document number: 2011762024

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2011762024

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11762024

Country of ref document: EP

Kind code of ref document: A2