WO2014169779A1 - 接收请求的方法及cdn服务器 - Google Patents

接收请求的方法及cdn服务器 Download PDF

Info

Publication number
WO2014169779A1
WO2014169779A1 PCT/CN2014/075151 CN2014075151W WO2014169779A1 WO 2014169779 A1 WO2014169779 A1 WO 2014169779A1 CN 2014075151 W CN2014075151 W CN 2014075151W WO 2014169779 A1 WO2014169779 A1 WO 2014169779A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
http
gdn
http request
request
Prior art date
Application number
PCT/CN2014/075151
Other languages
English (en)
French (fr)
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 华为技术有限公司
Publication of WO2014169779A1 publication Critical patent/WO2014169779A1/zh

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present invention relates to the field of communications, and in particular, to a method for receiving a request and a GDN server.
  • CDN Content Delivery Network
  • the user sends a common gateway interface (Common Gateway Interface) to the GDN server.
  • a common gateway interface Common Gateway Interface
  • the HTTP request for the parameter The GDN server forwards the HT Book TP request to the web server.
  • the web server brings the parameters of the GGI into the GG I saved by the web server to obtain the dynamic content. In the above technical solution, the bandwidth of the network is occupied more.
  • Embodiments of the present invention provide a method for receiving a request and a CDN server, which help reduce the occupation of bandwidth of the network.
  • a method for receiving a request including:
  • the first HTTP request includes an identifier of the GG I, and a parameter of the GGI;
  • the GDN server modifies the first HTTP request to generate a second HTTP request, where the second HTTP request is used to request the web server to provide the GGI, and the second HTTP request includes the identifier of the GGI;
  • the GDN server receives a first HTTP response sent by the web server, the first HTTP response includes the CGI, and the HTTP response is a response corresponding to the second HTTP request.
  • the method further includes:
  • the GDN server brings the GG I parameter into the GG I and runs the GG I to obtain the dynamic content;
  • the GDN server sends a second HTTP response to the user, and the second HTTP response includes the dynamic content.
  • the CDN server modifies the first HTTP request, and generates a second HTTP request.
  • the second HTTP request is used to request the web server to provide the GG I, including: the GDN server modifying the User-Agent field of the first HTTP request, generating the second HTTP request, the second
  • the User-Agent field of the HTTP request includes an identifier of the GDN server, and the identifier of the CDN server and the identifier of the GG I are used to request the web server to provide the CG I.
  • the first HTTP response includes Information for identifying the type of the CG I.
  • the first possible implementation of the first aspect, the second possible implementation of the first aspect or the third possible implementation of the first aspect, the fourth possibility in the first aspect The method further includes: after the CDN server receives the first HTTP response sent by the web server, the method further includes:
  • the GDN server saves the GG I.
  • a CDN server including:
  • a first receiving unit configured to receive a first HTTP request for requesting dynamic content sent by a user, where the first HTTP request includes an identifier of the CG I, and a parameter of the GG I;
  • a modifying unit configured to modify the first HTTP request received by the first receiving unit, Generating a second HTTP request, the second HTTP request is used to request the web server to provide the GG I, and the second HTTP request includes the identifier of the GG I;
  • a first sending unit configured to send, to the webpage server, the second HTTP request generated by the modifying unit
  • the GDN server further includes: an acquiring unit, configured to bring the GG I parameter in the first HTTP response received by the second receiving unit The CG I and running the GG I to obtain the dynamic content;
  • the modifying unit is specifically configured to: a User-Agent field of the first HTTP request Performing a modification to generate the second HTTP request, where the User-Agent field of the second HTTP request includes an identifier of the GDN server, and the identifier of the GDN server and the identifier of the GG I are used to request the webpage.
  • the server provides the GG I.
  • the first HTTP response includes Information for identifying the type of the CG I.
  • the GDN server further includes:
  • a saving unit configured to save the GG I in the first HTTP response received by the second receiving unit.
  • a GDN server including:
  • the first receiver is configured to receive a first HTTP request for requesting dynamic content sent by the user, where the first HTTP request includes an identifier of the CG I, and a parameter of the GG I.
  • a processor configured to modify the first HTTP request received by the first receiver, to generate a second HTTP request, where the second HTTP request is used to request a web server to provide the GG I, the second The HTTP request contains the identity of the GG I.
  • a first sender configured to send the second HTTP request generated by the processor to the webpage server.
  • a second receiver configured to receive a first HTTP response sent by the web server, where the first HTTP response includes the CG I, and the HTTP response is the second HTTP request sent by the first sender
  • the processor is further configured to bring the GG I parameter in the first HTTP response received by the second receiver into the GG I and run The GG I, the dynamic content is obtained.
  • the CDN server further includes a second transmitter, configured to send the user The second HTTP response includes the dynamic content acquired by the acquiring unit.
  • the processor is specifically configured to modify the User-Agent field of the first HTTP request to generate the second HTTP request, where the User-Agent field of the second HTTP request includes the identifier of the GDN server,
  • the identifier of the CDN server and the identifier of the GG I are used to request the web server to provide the CG I.
  • the first HTTP response includes information identifying the type of the GG I.
  • the GDN server further includes: a memory, configured to save the saving in the first HTTP response received by the second receiver GG I.
  • a first possible implementation of the third aspect, a second possible implementation of the third aspect, a third possible implementation of the third aspect, and a fourth possible aspect of the third aspect The implementation manner or the fifth possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect,
  • the processor is further configured to authenticate the web server according to the first HTTP response received by the second receiver.
  • the GDN server receives the first HTTP request of the user for requesting the dynamic content.
  • the GDN server modifies the first HTTP request, and generates the second HTTP request for requesting the web server to provide the GG I.
  • the GDN server receives the first HTTP response provided by the web server including the CG I. Therefore, the CDN server can obtain the GG I. If the GDN server receives the HTTP request for requesting the dynamic content after obtaining the GG I, the GDN server may use the GG I to generate the dynamic content for responding to the HTTP request.
  • the above means that the GDN server does not need to interact with the web server to respond to the HTTP request.
  • FIG. 1 is a schematic structural diagram of a networking architecture according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for receiving a request according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a GDN server according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a GDN server according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic structural diagram of a networking architecture according to an embodiment of the present invention.
  • the networking architecture includes a CDN server 102, a web server 104, and a user 106.
  • FIG. 2 is a schematic diagram of a method for receiving a request according to an embodiment of the present invention.
  • the method can be applied to the networking architecture shown in FIG.
  • the execution body of the method may be the GDN server 102 in FIG. Referring to FIG. 2, the method includes:
  • the GDN server receives a first HTTP request for requesting dynamic content sent by the user, where the first HTTP request includes an identifier of the GG I, and a parameter of the GG I.
  • the user can be a personal computer, a personal digital assistant, or a mobile phone.
  • the user can be the user 106 in Figure 1.
  • the first HTTP request can be GET, POST, or PUT.
  • the CG I may be a file with a Java server pages (JSP) extension, or a file with a hyperlink of Hypertext Preprocessor (PHP).
  • JSP Java server pages
  • PGP Hypertext Preprocessor
  • the identifier of the CG I may be a directory for saving the GG I or a name of the GG I.
  • the parameters of the CGI may include a parameter name and a parameter value.
  • Example 1 the first HTTP request may include:
  • Example 2 the first HTTP request may include:
  • the GDN server modifies the first HTTP request to generate a second HTTP request, where the second HTTP request is used to request the web server to provide the GGI, and the second HTTP request includes the identifier of the GGI. .
  • the web server may be the web server 104 of Figure 1.
  • the GDN server sends the second HTTP request to the web server.
  • the web server may be a video server or a file server.
  • the GDN server receives a first HTTP response sent by the webpage server, where the first HTTP response includes the GGI, and the HTTP response is a response corresponding to the second HTTP request.
  • the GDN server receives the first HTTP request of the user for requesting the dynamic content.
  • the GDN server modifies the first HTTP request to generate the second HTTP request for requesting the web server to provide the GGI.
  • the GDN server receives the first HTTP response provided by the web server that includes the CGI. Therefore, the CDN server can obtain the GGI. If the GDN server receives an HTTP request for requesting the dynamic content after obtaining the GGI, the GDN server may generate the dynamic content for responding to the HTTP request by using the GGI.
  • the above means that the GDN server does not need to interact with the web server to respond to the HTTP request. Therefore, the above technical solution helps to reduce the occupation of the bandwidth of the network.
  • the method also includes:
  • the GDN server brings the GG I parameter into the GG I and runs the GG I to obtain the dynamic content;
  • the GDN server sends a second HTTP response to the user, and the second HTTP response includes the dynamic content.
  • the GDN server modifies the first HTTP request to generate a second HTTP request, where the second HTTP request is used to request the web server to provide the GG I, including:
  • the GDN server modifies the User-Agent field of the first HTTP request to generate the second HTTP request, where the User-Agent field of the second HTTP request includes an identifier of the GDN server, and the CDN
  • the identity of the server and the identity of the GG I are used to request the web server to provide the CG I.
  • the identifier of the CDN server may be the name of the GDN server.
  • the User-Agent field of the second HTTP request may include a token.
  • the token can be a password.
  • the token is used to authenticate the web server.
  • the first HTTP response includes information identifying the type of the GG I.
  • the type of the CG I can be PHP or JSP.
  • the information for identifying the type of the GG I may be carried in a content-type field.
  • the method further includes:
  • the GDN server saves the GG I.
  • the method further includes:
  • the GDN server authenticates the web server according to the first HTTP response.
  • the first HTTP response includes a domain name of the web server.
  • the GDN service The server detects whether the domain name of the web server exists in the service list of the GDN server. If the domain name of the web server exists in the service list of the GDN server, it indicates that the web server passes the authentication of the CDN server.
  • FIG. 3 is a GDN server according to an embodiment of the present invention.
  • the GDN server can be used to perform the method shown in Figure 2.
  • the GDN server can be applied to the networking architecture shown in FIG.
  • the GDN server can be the GDN server 102 of Figure 1.
  • the GDN server includes:
  • the first receiving unit 302 is configured to receive a first HTTP request for requesting dynamic content sent by the user, where the first HTTP request includes an identifier of the GG I, and a parameter of the GG I.
  • the user can be a personal computer, a personal digital assistant, or a mobile phone.
  • the user may be the user 106 in FIG.
  • the first HTTP request can be GET, POST, or PUT.
  • the GGI can be a file with a JSP extension or a file with a PHP extension.
  • the identifier of the CGI may be a directory for saving the GGI or a name of the GGI.
  • the parameters of the CGI may include a parameter name and a parameter value.
  • Example 1 the first HTTP request may include:
  • Example 2 the first HTTP request may include:
  • the modifying unit 304 is configured to modify the first HTTP request received by the first receiving unit 302 to generate a second HTTP request, where the second HTTP request is used to request the web server to provide the GG I,
  • the second HTTP request contains the identity of the GG I.
  • the web server may be the web server 104 in FIG.
  • the first sending unit 306 is configured to send the second HTTP request generated by the modifying unit 304 to the webpage server.
  • the web server may be a video server or a file server.
  • a second receiving unit 308 configured to receive a first HTTP response sent by the webpage server, where the first HTTP response includes the GG1, and the HTTP response is the second sent by the first sending unit 306 The response corresponding to the HTTP request.
  • the GDN server receives the first HTTP request of the user for requesting the dynamic content.
  • the GDN server modifies the first HTTP request to generate the second HTTP request for requesting the web server to provide the GG I.
  • the GDN server receives the first HTTP response provided by the web server including the CG I. Therefore, the CDN server can obtain the GG I. If the GDN server receives the HTTP request for requesting the dynamic content after obtaining the GG I, the GDN server may use the GG I to generate the dynamic content for responding to the HTTP request.
  • the above means that the GDN server does not need to interact with the web server to respond to the HTTP request. Therefore, the above technical solution helps to reduce the occupation of the bandwidth of the network.
  • the GDN server shown in Figure 3 further includes:
  • an obtaining unit configured to bring the GG I parameter in the first HTTP response received by the second receiving unit 308 into the GG I and run the GG I to obtain the dynamic content.
  • a second sending unit configured to send a second HTTP response to the user, where the second HTTP response includes the dynamic content acquired by the acquiring unit.
  • the modifying unit 304 is specifically configured to modify the Use r-Agent field of the first HTTP request to generate the second HTTP request, where the User-Agent field of the second HTTP request includes the GDN server.
  • the identifier, the identifier of the GDN server, and the identifier of the GG I are used to request the web server to provide the CG I.
  • the identifier of the CDN server may be the name of the GDN server.
  • the User-Agent field of the second HTTP request may include a token.
  • the token can be a password.
  • the token is used to authenticate the web server.
  • the first HTTP response includes information identifying the type of the GG I.
  • the type of the CG I can be PHP or JSP.
  • the information for identifying the type of the GG I may be carried in a content-type field.
  • the GDN server shown in Figure 3 further includes:
  • a saving unit configured to save the GG I in the first HTTP response received by the second receiving unit 308.
  • the GDN server shown in FIG. 3 further includes an authentication unit, configured to authenticate the web server according to the first HTTP response received by the second receiving unit 308.
  • the first HTTP response includes a domain name of the web server.
  • the GDN server detects whether a domain name of the web server exists in a service list of the GDN server. If the domain name of the web server exists in the service list of the GDN server, it indicates that the web server is authenticated by the CDN server.
  • FIG. 4 is a GDN server according to an embodiment of the present invention.
  • the GDN server can be used to perform the method shown in Figure 2.
  • the GDN server can be applied to the networking architecture shown in FIG.
  • the GDN server can be the GDN server 102 in Figure 1.
  • the GDN server includes:
  • the first receiver 402 is configured to receive a first HTTP request for requesting dynamic content sent by the user, where the first HTTP request includes an identifier of the GG I, and a parameter of the GG I.
  • the user can be a personal computer, a personal digital assistant, or a mobile phone.
  • the user can be the user 106 in Figure 1.
  • the first HTTP request can be GET, POST, or PUT.
  • the GG I can be a file with a JSP extension or a file with a PHP extension.
  • the identifier of the CG I may be a directory for saving the GG I or a name of the GG I.
  • the parameters of the CG I may include a parameter name and a parameter value.
  • Example 1 the first HTTP request may include:
  • Example 2 the first HTTP request may include:
  • h i /group is a directory for saving the GG I.
  • 3ms_type menu is the parameter of the GG I. 3ms_type is the parameter name. Menu is the parameter value.
  • the processor 404 is configured to modify the first HTTP request received by the first receiver 402 to generate a second HTTP request, where the second HTTP request is used to request the web server to provide the GG I,
  • the second HTTP request contains the identity of the GG I.
  • the web server may be the web server 104 in FIG.
  • the first sender 406 is configured to send the second HTTP request generated by the processor 404 to the web server.
  • the web server may be a video server or a file server.
  • a second receiver 408 configured to receive a first HTTP response sent by the webpage server, where the first HTTP response includes the GG1, and the HTTP response is the second sent by the first sender 406 The response corresponding to the HTTP request.
  • the first transmitter 406 and the second receiver 408 can be a transceiver.
  • the GDN server receives the first HTTP request of the user for requesting the dynamic content.
  • the GDN server modifies the first HTTP request to generate the second HTTP request for requesting the web server to provide the GG I.
  • the GDN server receives the first HTTP response provided by the web server including the CG I. Therefore, the CDN server can obtain the GG I. If the GDN server receives the HTTP request for requesting the dynamic content after obtaining the GG I, the GDN server may use the GG I to generate the dynamic content for responding to the HTTP request.
  • the above means that the GDN server does not need to interact with the web server to respond to the HTTP request. Therefore, the above technical solution helps to reduce the occupation of the bandwidth of the network.
  • the processor 404 is further configured to bring the GG I parameter in the first HTTP response received by the second receiver 408 into the GG I and Running the CG I to obtain the dynamic content.
  • the GDN server shown in FIG. 4 further includes a second sender, configured to send a second HTTP response to the user, where the second HTTP response includes the dynamic content acquired by the processor 404.
  • the second transmitter and the first receiver 402 can be a transceiver.
  • the GDN server shown in Figure 4 is a transceiver.
  • the processor 404 is specifically configured to modify the User-Agent field of the first HTTP request to generate the second HTTP request, where the User-Agent field of the second HTTP request includes the identifier of the GDN server.
  • the identifier of the GDN server and the identifier of the GG I are used to request the web server to provide the CG I.
  • the identifier of the CDN server may be the name of the GDN server.
  • the User-Agent field of the second HTTP request may include a token.
  • the token can be a password.
  • the token is used to authenticate the web server.
  • the first HTTP response includes information identifying the type of the GG I.
  • the type of the CG I can be PHP or JSP.
  • the information for identifying the type of the GG I may be carried in a content-type field.
  • the GDN server shown in Figure 4 further includes:
  • a memory configured to save the GG I in the first HTTP response received by the second receiver 408.
  • the processor 404 is further configured to authenticate the web server according to the first HTTP response received by the second receiver 408.
  • the first HTTP response includes a domain name of the web server.
  • the GDN server detects whether a domain name of the web server exists in a service list of the GDN server. If the domain name of the web server exists in the service list of the GDN server, it indicates that the web server passes the authentication of the CDN server.
  • Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Realized. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention. A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit may be only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined. Either can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.

Landscapes

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

Abstract

本发明实施例提供一种接收请求的方法以及CDN服务器。所述接收请求的方法,包括:CDN服务器接收用户发送的请求动态内容的第一HTTP请求,所述第一HTTP请求中包含CGI的标识,以及所述CGI的参数;所述CDN服务器对所述第一HTTP请求进行修改,生成第二HTTP请求,所述第二HTTP请求用于请求网页服务器提供所述CGI,所述第二HTTP请求包含所述CGI的标识;所述 CDN服务器向所述网页服务器发送所述第二HTTP请求;所述CDN服务器接收所述网页服务器发送的第一HTTP响应,所述第一HTTP响应包含所述CGI,所述 HTTP响应是所述第二HTTP请求对应的响应。上述技术方案有助于减少对网络的带宽的占用。

Description

接收请求的方法及 CDN服务器
技术领域
本发明涉及通信领域, 尤其涉及到接收请求的方法及 GDN服务器。 背景技术 说
内容分发网络 (Content Del ivery Network, CDN) 是一种新型的网络。 现 有技术中, 用户获取动态内容 (dynamic content) 需要进行如下操作:
用户向 GDN服务器发送包含通用网关接口 (Common Gateway Interface ,
CGI) 的参数的 HTTP 请求。 GDN 服务器将 HT书TP 请求转发给网页服务器 (web server)。 网页服务器将所述 GGI 的参数带入所述网页服务器保存的所述 GG I, 得到所述动态内容。 上述技术方案中, 对网络的带宽的占用较多。 发明内容
本发明实施例提供了一种接收请求的方法以及一种 CDN 服务器, 有助于减 少对网络的带宽的占用。 第一方面, 提供一种接收请求的方法, 包括:
CDN 服务器接收用户发送的请求动态内容的第一超文本传输协议 (Hyper
Text Transport Protocol, HTTP) 请求, 所述第一 HTTP请求中包含 GG I 的标 识, 以及所述 GGI 的参数;
所述 GDN服务器对所述第一 HTTP请求进行修改, 生成第二 HTTP请求, 所 述第二 HTTP请求用于请求网页服务器提供所述 GGI,所述第二 HTTP请求包含所 述 GGI 的标识;
所述 GDN服务器向所述网页服务器发送所述第二 HTTP请求;
所述 GDN服务器接收所述网页服务器发送的第一 HTTP响应,所述第一 HTTP 响应包含所述 CGI, 所述 HTTP响应是所述第二 HTTP请求对应的响应。 第一方面的第一种可能的实现方式中, 所述 GDN 服务器接收所述网页服务 器发送的第一 HTTP响应之后, 所述方法还包括:
所述 GDN服务器将所述 GG I 参数带入所述 GG I 并运行所述 GG I,获取所述动 态内容;
所述 GDN服务器向所述用户发送第二 HTTP响应, 所述第二 HTTP响应中包 含所述动态内容。 根据第一方面或者第一方面的第一种可能的实现方式, 在第一方面的第二 种可能的实现方式中, 所述 CDN服务器对所述第一 HTTP请求进行修改, 生成第 二 HTTP请求, 所述第二 HTTP请求用于请求网页服务器提供所述 GG I 包括: 所述 GDN服务器对所述第一 HTTP请求的 User-Agent字段进行修改, 生成 所述第二 HTTP请求, 所述第二 HTTP请求的 User-Agent字段中包含所述 GDN服 务器的标识, 所述 CDN服务器的标识以及所述 GG I 的标识用于请求所述网页服 务器提供所述 CG I。 根据第一方面, 第一方面的第一种可能的实现方式或者第一方面的第二种 可能的实现方式, 在第一方面的第三种可能的实现方式中, 所述第一 HTTP响应 包含用于标识所述 CG I 的类型的信息。 根据第一方面, 第一方面的第一种可能的实现方式, 第一方面的第二种可 能的实现方式或者第一方面的第三种可能的实现方式, 在第一方面的第四种可 能的实现方式中, 所述 CDN服务器接收所述网页服务器发送的第一 HTTP响应以 后, 所述方法还包括:
所述 GDN服务器保存所述 GG I。 第二方面, 提供一种 CDN服务器, 包括:
第一接收单元, 用于接收用户发送的请求动态内容的第一 HTTP请求, 所述 第一 HTTP请求中包含 CG I 的标识, 以及所述 GG I 的参数;
修改单元, 用于对所述第一接收单元接收的所述第一 HTTP请求进行修改, 生成第二 HTTP请求, 所述第二 HTTP请求用于请求网页服务器提供所述 GG I, 所 述第二 HTTP请求包含所述 GG I 的标识;
第一发送单元, 用于向所述网页服务器发送所述修改单元生成的所述第二 HTTP请求;
第二接收单元, 用于接收所述网页服务器发送的第一 HTTP响应, 所述第一 HTTP 响应包含所述 GG I, 所述 HTTP 响应是所述第一发送单元发送的所述第二 HTTP请求对应的响应。 第二方面的第一种可能的实现方式中, 所述的 GDN服务器还包括: 获取单元,用于将所述第二接收单元接收的所述第一 HTTP响应中的所述 GG I 参数带入所述 CG I 并运行所述 GG I, 获取所述动态内容;
第二发送单元, 用于向所述用户发送第二 HTTP响应, 所述第二 HTTP响应 中包含所述获取单元获取的所述动态内容。 根据第二方面或者第二方面的第一种可能的实现方式, 在第二方面的第二 种可能的实现方式中, 所述修改单元具体用于对所述第一 HTTP 请求的 User-Agent 字段进行修改, 生成所述第二 HTTP 请求, 所述第二 HTTP 请求的 User-Agent字段中包含所述 GDN服务器的标识, 所述 GDN服务器的标识以及所 述 GG I 的标识用于请求所述网页服务器提供所述 GG I。 根据第二方面, 第二方面的第一种可能的实现方式或者第二方面的第二种 可能的实现方式, 在第二方面的第三种可能的实现方式中, 所述第一 HTTP响应 包含用于标识所述 CG I 的类型的信息。 根据第二方面, 第二方面的第一种可能的实现方式, 第二方面的第二种可 能的实现方式或者第二方面的第三种可能的实现方式, 在第二方面的第四种可 能的实现方式中, 所述的 GDN服务器, 还包括:
保存单元, 用于保存所述保存所述第二接收单元接收的所述第一 HTTP响应 中的所述 GG I。 第三方面, 提供一种 GDN服务器, 包括:
第一接收器, 用于接收用户发送的请求动态内容的第一 HTTP请求, 所述第 一 HTTP请求中包含 CG I 的标识, 以及所述 GG I 的参数。
处理器, 用于对所述第一接收器接收的所述第一 HTTP请求进行修改, 生成 第二 HTTP请求, 所述第二 HTTP请求用于请求网页服务器提供所述 GG I, 所述第 二 HTTP请求包含所述 GG I 的标识。
第一发送器, 用于向所述网页服务器发送所述处理器生成的所述第二 HTTP 请求。
第二接收器,用于接收所述网页服务器发送的第一 HTTP响应,所述第一 HTTP 响应包含所述 CG I,所述 HTTP响应是所述第一发送器发送的所述第二 HTTP请求
5^应的响应。 第三方面的第一种可能的实现方式中, 所述处理器还用于将所述第二接收 器接收的所述第一 HTTP响应中的所述 GG I 参数带入所述 GG I 并运行所述 GG I, 获取所述动态内容。 根据第三方面或者第三方面的第一种可能的实现方式, 在第三方面的第二 种可能的实现方式中, 所述 CDN 服务器还包括第二发送器, 用于向所述用户发 送第二 HTTP响应, 所述第二 HTTP响应中包含所述获取单元获取的所述动态内 容。 根据第三方面, 第三方面的第一种可能的实现方式或者第三方面的第二种 可能的实现方式, 在第三方面的第三种可能的实现方式中,
所述处理器具体用于对所述第一 HTTP请求的 User-Agent字段进行修改, 生成所述第二 HTTP请求,所述第二 HTTP请求的 User -Agent字段中包含所述 GDN 服务器的标识, 所述 CDN服务器的标识以及所述 GG I 的标识用于请求所述网页 服务器提供所述 CG I。 根据第三方面, 第三方面的第一种可能的实现方式, 第三方面的第二种可 能的实现方式或者第三方面的第三种可能的实现方式, 在第三方面的第四种可 能的实现方式中,
所述第一 HTTP响应包含用于标识所述 GG I 的类型的信息。 根据第三方面, 第三方面的第一种可能的实现方式, 第三方面的第二种可 能的实现方式, 第三方面的第三种可能的实现方式或者第三方面的第四种可能 的实现方式, 在第三方面的第五种可能的实现方式中, 所述 GDN服务器还包括: 存储器, 用于保存所述保存所述第二接收器接收的所述第一 HTTP响应中的 所述 GG I。 根据第三方面, 第三方面的第一种可能的实现方式, 第三方面的第二种可 能的实现方式, 第三方面的第三种可能的实现方式, 第三方面的第四种可能的 实现方式或者第三方面的第五种可能的实现方式, 在第三方面的第六种可能的 实现方式中,
所述处理器还用于根据所述第二接收器接收的所述第一 HTTP响应对所述网 页服务器进行认证。 上述技术方案中, 所述 GDN 服务器接收到所述用户的用于请求所述动态内 容的所述第一 HTTP请求。 所述 GDN服务器对所述第一 HTTP请求进行修改, 生 成用于请求所述网页服务器提供所述 GG I 的所述第二 HTTP请求。 所述 GDN服务 器接收所述网页服务器提供的包含所述 CG I 的所述第一 HTTP响应。 因此, 所述 CDN服务器可以获得所述 GG I。 如果所述 GDN服务器获得所述 GG I 后接收到用于 请求所述动态内容的 HTTP请求, 所述 GDN服务器可以利用所述 GG I 生成用于响 应所述 HTTP请求的所述动态内容。 以上意味着所述 GDN服务器不需要与所述网 页服务器进行交互即可对所述 HTTP请求进行响应。 因此, 上述技术方案有助于 减少对网络的带宽的占用。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1 是本发明实施例提供的一种组网架构的结构示意图;
图 2是本发明实施例提供的一种接收请求的方法流程示意图;
图 3是本发明实施例提供的一种 GDN服务器的结构示意图;
图 4是本发明实施例提供的一种 GDN服务器的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
图 1 为本发明实施例提供的一种组网架构的结构示意图。 参见图 1, 所述组 网架构包括 CDN服务器 1 02、 网页服务器 1 04以及用户 1 06。
图 2为本发明实施例提供的一种接收请求的方法。所述方法可以应用于图 1 所示的组网架构。 所述方法的执行主体可以是图 1 中的 GDN服务器 1 02。 参见图 2, 所述方法包括:
202、 GDN服务器接收用户发送的请求动态内容的第一 HTTP请求, 所述第一 HTTP请求中包含 GG I 的标识, 以及所述 GG I 的参数。
举例来说, 所述用户可以是个人电脑、 个人数字助理或者移动电话。 参见 图 1, 所述用户可以是图 1 中的用户 1 06。
举例来说, 所述第一 HTTP请求可以是 GET、 POST或者 PUT。
举例来说, 所述 CG I 可以是扩展名为 Java服务端网页(Java server pages , JSP)的文件, 或者扩展名为超文本预处理器(Hypertext Preprocessor , PHP)的 文件。
举例来说, 所述 CG I 的标识可以是用于保存所述 GG I 的目录或者所述 GG I 的名称。 举例来说, 所述 CGI 的参数可以包括参数名和参数值。
例 1, 所述第一 HTTP请求可以包括:
GET http://www. testweb. com/ add. php?param1=2&param2=3
其中, add. php 是所述 GGI 的名称。 所述 GGI 用于执行加法运算。 paraml =2&param2=3是所述 GGI 的参数。 paraml 和 param2是参数名。 2和 3是 参数值。
例 2, 所述第一 HTTP请求可以包括:
GET http://3ms. huawei. com/h i /group?3ms_type=menu
其中, hi/group是用于保存所述 GGI 的目录。 3ms_type=menu是所述 GGI 的参数。 3ms_type是参数名。 menu是参数值。
204、所述 GDN服务器对所述第一 HTTP请求进行修改, 生成第二 HTTP请求, 所述第二 HTTP请求用于请求网页服务器提供所述 GGI,所述第二 HTTP请求包含 所述 GGI 的标识。
参见图 1, 所述网页服务器可以是图 1 中的网页服务器 104。
206、 所述 GDN服务器向所述网页服务器发送所述第二 HTTP请求。
举例来说, 所述网页服务器可以是视频服务器或者文件服务器。
208、 所述 GDN服务器接收所述网页服务器发送的第一 HTTP响应, 所述第 一 HTTP响应包含所述 GGI, 所述 HTTP响应是所述第二 HTTP请求对应的响应。
上述技术方案中, 所述 GDN 服务器接收到所述用户的用于请求所述动态内 容的所述第一 HTTP请求。 所述 GDN服务器对所述第一 HTTP请求进行修改, 生 成用于请求所述网页服务器提供所述 GGI 的所述第二 HTTP请求。 所述 GDN服务 器接收所述网页服务器提供的包含所述 CGI 的所述第一 HTTP响应。 因此, 所述 CDN服务器可以获得所述 GGI。 如果所述 GDN服务器获得所述 GGI 后接收到用于 请求所述动态内容的 HTTP请求, 所述 GDN服务器可以利用所述 GGI 生成用于响 应所述 HTTP请求的所述动态内容。 以上意味着所述 GDN服务器不需要与所述网 页服务器进行交互即可对所述 HTTP请求进行响应。 因此, 上述技术方案有助于 减少对网络的带宽的占用。
可选地, 图 2所示的方法中,
所述 GDN服务器接收所述网页服务器发送的第一 HTTP响应之后, 所述方法 还包括:
所述 GDN服务器将所述 GG I 参数带入所述 GG I 并运行所述 GG I,获取所述动 态内容;
所述 GDN服务器向所述用户发送第二 HTTP响应, 所述第二 HTTP响应中包 含所述动态内容。
可选地, 图 2所示的方法中,
所述 GDN服务器对所述第一 HTTP请求进行修改, 生成第二 HTTP请求, 所 述第二 HTTP请求用于请求网页服务器提供所述 GG I 包括:
所述 GDN服务器对所述第一 HTTP请求的 User-Agent字段进行修改, 生成 所述第二 HTTP请求, 所述第二 HTTP请求的 User-Agent字段中包含所述 GDN服 务器的标识, 所述 CDN服务器的标识以及所述 GG I 的标识用于请求所述网页服 务器提供所述 CG I。
举例来说, 所述 CDN服务器的标识可以是所述 GDN服务器的名称。
举例来说, 所述第二 HTTP请求的 User-Agent字段中可以包括 token。 所述 token可以是密码。 所述 token用于对所述网页服务器进行认证。
可选地, 图 2所示的方法中,
所述第一 HTTP响应包含用于标识所述 GG I 的类型的信息。
举例来说, 所述 CG I 的类型可以是 PHP或者 JSP。
举例来说, 所述用于标识所述 GG I 的类型的信息可以承载在 content-type 字段。
可选地, 图 2所示的方法中,
所述 GDN服务器接收所述网页服务器发送的第一 HTTP响应以后, 所述方法 还包括:
所述 GDN服务器保存所述 GG I。
可选地, 图 2所示的方法中,
所述 GDN服务器接收所述网页服务器发送的第一 HTTP响应以后, 所述方法 还包括:
所述 GDN服务器根据所述第一 HTTP响应对所述网页服务器进行认证。
举例来说, 所述第一 HTTP响应中包含所述网页服务器的域名。 所述 GDN服 务器检测所述网页服务器的域名是否存在于所述 GDN 服务器的服务列表中。 如 果所述网页服务器的域名存在于所述 GDN 服务器的服务列表中, 则表明所述网 页服务器通过所述 CDN服务器的认证。
图 3为本发明实施例提供的一种 GDN服务器。 所述 GDN服务器可以用于执 行图 2所示的方法。 所述 GDN服务器可以应用于图 1 所示的组网架构。 所述 GDN 服务器可以是图 1 中的 GDN服务器 102。 参见图 3, 所述 GDN服务器包括:
第一接收单元 302, 用于接收用户发送的请求动态内容的第一 HTTP请求, 所述第一 HTTP请求中包含 GG I 的标识, 以及所述 GG I 的参数。
举例来说, 所述用户可以是个人电脑、 个人数字助理或者移动电话。 参见 图 1, 所述用户可以是图 1 中的用户 106。
举例来说, 所述第一 HTTP请求可以是 GET、 POST或者 PUT。
举例来说, 所述 GGI 可以是扩展名为 JSP的文件, 或者扩展名为 PHP的文 件。
举例来说, 所述 CGI 的标识可以是用于保存所述 GGI 的目录或者所述 GGI 的名称。
举例来说, 所述 CGI 的参数可以包括参数名和参数值。
例 1, 所述第一 HTTP请求可以包括:
GET http://www. testweb. com/ add. php?param1=2&param2=3
其中, add. php 是所述 GGI 的名称。 所述 GGI 用于执行加法运算。 paraml =2&param2=3是所述 GGI 的参数。 paraml 和 param2是参数名。 2和 3是 参数值。
例 2, 所述第一 HTTP请求可以包括:
GET http://3ms. huawei. com/h i /group?3ms_type=menu
其中, hi/group是用于保存所述 GGI 的目录。 3ms_type=menu是所述 GGI 的参数。 3ms_type是参数名。 menu是参数值。
修改单元 304, 用于对所述第一接收单元 302接收的所述第一 HTTP请求进 行修改, 生成第二 HTTP请求, 所述第二 HTTP请求用于请求网页服务器提供所 述 GG I, 所述第二 HTTP请求包含所述 GG I 的标识。
参见图 1, 所述网页服务器可以是图 1 中的网页服务器 104。 第一发送单元 306, 用于向所述网页服务器发送所述修改单元 304生成的所 述第二 HTTP请求。
举例来说, 所述网页服务器可以是视频服务器或者文件服务器。
第二接收单元 308, 用于接收所述网页服务器发送的第一 HTTP响应, 所述 第一 HTTP响应包含所述 GG I,所述 HTTP响应是所述第一发送单元 306发送的所 述第二 HTTP请求对应的响应。
上述技术方案中, 所述 GDN 服务器接收到所述用户的用于请求所述动态内 容的所述第一 HTTP请求。 所述 GDN服务器对所述第一 HTTP请求进行修改, 生 成用于请求所述网页服务器提供所述 GG I 的所述第二 HTTP请求。 所述 GDN服务 器接收所述网页服务器提供的包含所述 CG I 的所述第一 HTTP响应。 因此, 所述 CDN服务器可以获得所述 GG I。 如果所述 GDN服务器获得所述 GG I 后接收到用于 请求所述动态内容的 HTTP请求, 所述 GDN服务器可以利用所述 GG I 生成用于响 应所述 HTTP请求的所述动态内容。 以上意味着所述 GDN服务器不需要与所述网 页服务器进行交互即可对所述 HTTP请求进行响应。 因此, 上述技术方案有助于 减少对网络的带宽的占用。
可选地, 图 3所示的 GDN服务器, 还包括:
获取单元, 用于将所述第二接收单元 308接收的所述第一 HTTP响应中的所 述 GG I 参数带入所述 GG I 并运行所述 GG I, 获取所述动态内容。
第二发送单元, 用于向所述用户发送第二 HTTP响应, 所述第二 HTTP响应 中包含所述获取单元获取的所述动态内容。
可选地, 图 3所示的 GDN服务器,
所述修改单元 304具体用于对所述第一 HTTP请求的 Use r-Agent字段进行 修改, 生成所述第二 HTTP请求, 所述第二 HTTP请求的 User-Agent字段中包含 所述 GDN服务器的标识, 所述 GDN服务器的标识以及所述 GG I 的标识用于请求 所述网页服务器提供所述 CG I。
举例来说, 所述 CDN服务器的标识可以是所述 GDN服务器的名称。
举例来说, 所述第二 HTTP请求的 User-Agent字段中可以包括 token。 所述 token可以是密码。 所述 token用于对所述网页月良务器进行认证。
可选地, 图 3所示的 GDN服务器, 所述第一 HTTP响应包含用于标识所述 GG I 的类型的信息。
举例来说, 所述 CG I 的类型可以是 PHP或者 JSP。
举例来说, 所述用于标识所述 GG I 的类型的信息可以承载在 content-type 字段。
可选地, 图 3所示的 GDN服务器, 还包括:
保存单元, 用于保存所述保存所述第二接收单元 308接收的所述第一 HTTP 响应中的所述 GG I。
可选地, 图 3所示的 GDN服务器, 还包括认证单元, 用于根据所述第二接 收单元 308接收的所述第一 HTTP响应对所述网页服务器进行认证。
举例来说, 所述第一 HTTP响应中包含所述网页服务器的域名。 所述 GDN服 务器检测所述网页服务器的域名是否存在于所述 GDN 服务器的服务列表中。 如 果所述网页服务器的域名存在于所述 GDN 服务器的服务列表中, 则表明所述网 页服务器通过所述 CDN服务器的认证。
图 4为本发明实施例提供的一种 GDN服务器。 所述 GDN服务器可以用于执 行图 2所示的方法。 所述 GDN服务器可以应用于图 1 所示的组网架构。 所述 GDN 服务器可以是图 1 中的 GDN服务器 1 02。 参见图 4, 所述 GDN服务器包括:
第一接收器 402, 用于接收用户发送的请求动态内容的第一 HTTP请求, 所 述第一 HTTP请求中包含 GG I 的标识, 以及所述 GG I 的参数。
举例来说, 所述用户可以是个人电脑、 个人数字助理或者移动电话。 参见 图 1, 所述用户可以是图 1 中的用户 1 06。
举例来说, 所述第一 HTTP请求可以是 GET、 POST或者 PUT。
举例来说, 所述 GG I 可以是扩展名为 JSP的文件, 或者扩展名为 PHP的文 件。
举例来说, 所述 CG I 的标识可以是用于保存所述 GG I 的目录或者所述 GG I 的名称。
举例来说, 所述 CG I 的参数可以包括参数名和参数值。
例 1, 所述第一 HTTP请求可以包括:
GET http : //www. testweb. com/ add. php?param1 =2&param2=3
其中, add. php 是所述 GG I 的名称。 所述 GG I 用于执行加法运算。 paraml =2&param2=3是所述 GG I 的参数。 paraml 和 par am2是参数名。 2和 3是 参数值。
例 2, 所述第一 HTTP请求可以包括:
GET http : //3ms. huawe i . com/h i /group?3ms_type=menu
其中, h i /group是用于保存所述 GG I 的目录。 3ms_type=menu是所述 GG I 的参数。 3ms_type是参数名。 menu是参数值。
处理器 404, 用于对所述第一接收器 402接收的所述第一 HTTP请求进行修 改,生成第二 HTTP请求,所述第二 HTTP请求用于请求网页服务器提供所述 GG I, 所述第二 HTTP请求包含所述 GG I 的标识。
参见图 1, 所述网页服务器可以是图 1 中的网页服务器 1 04。
第一发送器 406, 用于向所述网页服务器发送所述处理器 404生成的所述第 二 HTTP请求。
举例来说, 所述网页服务器可以是视频服务器或者文件服务器。
第二接收器 408, 用于接收所述网页服务器发送的第一 HTTP响应, 所述第 一 HTTP响应包含所述 GG I,所述 HTTP响应是所述第一发送器 406发送的所述第 二 HTTP请求对应的响应。
举例来说, 所述第一发送器 406与所述第二接收器 408可以一个收发器。 上述技术方案中, 所述 GDN 服务器接收到所述用户的用于请求所述动态内 容的所述第一 HTTP请求。 所述 GDN服务器对所述第一 HTTP请求进行修改, 生 成用于请求所述网页服务器提供所述 GG I 的所述第二 HTTP请求。 所述 GDN服务 器接收所述网页服务器提供的包含所述 CG I 的所述第一 HTTP响应。 因此, 所述 CDN服务器可以获得所述 GG I。 如果所述 GDN服务器获得所述 GG I 后接收到用于 请求所述动态内容的 HTTP请求, 所述 GDN服务器可以利用所述 GG I 生成用于响 应所述 HTTP请求的所述动态内容。 以上意味着所述 GDN服务器不需要与所述网 页服务器进行交互即可对所述 HTTP请求进行响应。 因此, 上述技术方案有助于 减少对网络的带宽的占用。
可选地, 图 4所示的 GDN服务器, 所述处理器 404还用于将所述第二接收 器 408接收的所述第一 HTTP响应中的所述 GG I 参数带入所述 GG I 并运行所述 CG I , 获取所述动态内容。 可选地, 图 4所示的 GDN服务器还包括第二发送器, 用于向所述用户发送 第二 HTTP响应, 所述第二 HTTP响应中包含所述处理器 404获取的所述动态内 容。
举例来说, 所述第二发送器与所述第一接收器 402可以是一个收发器。 可选地, 图 4所示的 GDN服务器,
所述处理器 404具体用于对所述第一 HTTP请求的 User-Agent字段进行修 改, 生成所述第二 HTTP请求, 所述第二 HTTP请求的 User-Agent字段中包含所 述 GDN服务器的标识, 所述 GDN服务器的标识以及所述 GG I 的标识用于请求所 述网页服务器提供所述 CG I。
举例来说, 所述 CDN服务器的标识可以是所述 GDN服务器的名称。
举例来说, 所述第二 HTTP请求的 User-Agent字段中可以包括 token。 所述 token可以是密码。 所述 token用于对所述网页月良务器进行认证。
可选地, 图 4所示的 GDN服务器,
所述第一 HTTP响应包含用于标识所述 GG I 的类型的信息。
举例来说, 所述 CG I 的类型可以是 PHP或者 JSP。
举例来说, 所述用于标识所述 GG I 的类型的信息可以承载在 content-type 字段。
可选地, 图 4所示的 GDN服务器, 还包括:
存储器, 用于保存所述保存所述第二接收器 408接收的所述第一 HTTP响应 中的所述 GG I。
可选地, 图 4所示的 GDN服务器,
所述处理器 404还用于根据所述第二接收器 408接收的所述第一 HTTP响应 对所述网页服务器进行认证。
举例来说, 所述第一 HTTP响应中包含所述网页服务器的域名。 所述 GDN服 务器检测所述网页服务器的域名是否存在于所述 GDN 服务器的服务列表中。 如 果所述网页服务器的域名存在于所述 GDN 服务器的服务列表中, 则表明所述网 页服务器通过所述 CDN服务器的认证。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各示 例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来 实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用 和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现 所描述的功能, 但是这种实现不应认为超出本发明的范围。 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述 的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的划分, 可以仅仅为一种逻辑功能划分, 实际实现时可以 有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或 直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。
单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元 中。 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用 时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技 术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以 软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若 干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备 等) 执行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包 括: U盘、 移动硬盘、 只读存储器 (Read-On l y Memory , ROM ) 、 随机存取存储 器 (Random Access Memory , RAM) 、 磁碟或者光盘等各种可以存储程序代码的 介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种接收请求的方法, 其特征在于, 包括:
内容分发网络 CDN 服务器接收用户发送的请求动态内容的第一超文本传输 协议 HTTP请求, 所述第一 HTTP请求中包含通用网关接口 GG I 的标识, 以及所 述 GG I 的参数;
所述 GDN服务器对所述第一 HTTP请求进行修改, 生成第二 HTTP请求, 所 述第二 HTTP请求用于请求网页服务器提供所述 GG I,所述第二 HTTP请求包含所 述 GG I 的标识;
所述 GDN服务器向所述网页服务器发送所述第二 HTTP请求;
所述 GDN服务器接收所述网页服务器发送的第一 HTTP响应,所述第一 HTTP 响应包含所述 CG I, 所述 HTTP响应是所述第二 HTTP请求对应的响应。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述 GDN服务器接收所述网 页服务器发送的第一 HTTP响应之后, 所述方法还包括:
所述 GDN服务器将所述 GG I 参数带入所述 GG I 并运行所述 GG I,获取所述动 态内容;
所述 GDN服务器向所述用户发送第二 HTTP响应, 所述第二 HTTP响应中包 含所述动态内容。
3、 根据权利要求 1 或 2所述的方法, 其特征在于, 所述 GDN服务器对所述 第一 HTTP请求进行修改, 生成第二 HTTP请求, 所述第二 HTTP请求用于请求网 页服务器提供所述 CG I 包括:
所述 GDN服务器对所述第一 HTTP请求的 User-Agent字段进行修改, 生成 所述第二 HTTP请求, 所述第二 HTTP请求的 User-Agent字段中包含所述 GDN服 务器的标识, 所述 CDN服务器的标识以及所述 GG I 的标识用于请求所述网页服 务器提供所述 CG I。
4、 根据权利要求 1 至 3 中任一所述的方法, 其特征在于, 所述第一 HTTP 响应包含用于标识所述 CG I 的类型的信息。
5、 根据权利要求 1 至 4中任一所述的方法, 其特征在于, 所述 GDN服务器 接收所述网页服务器发送的第一 HTTP响应以后, 所述方法还包括:
所述 GDN服务器保存所述 GG I。
6、 一种内容分发网络 GDN服务器, 其特征在于, 包括:
第一接收单元, 用于接收用户发送的请求动态内容的第一超文本传输协议 HTTP请求, 所述第一 HTTP请求中包含通用网关接口 GG I 的标识, 以及所述 GG I 的参数;
修改单元, 用于对所述第一接收单元接收的所述第一 HTTP请求进行修改, 生成第二 HTTP请求, 所述第二 HTTP请求用于请求网页服务器提供所述 GG I, 所 述第二 HTTP请求包含所述 GG I 的标识;
第一发送单元, 用于向所述网页服务器发送所述修改单元生成的所述第二 HTTP请求;
第二接收单元, 用于接收所述网页服务器发送的第一 HTTP响应, 所述第一 HTTP 响应包含所述 GG I, 所述 HTTP 响应是所述第一发送单元发送的所述第二 HTTP请求对应的响应。
7、 根据权利要求 6所述的 CDN服务器, 其特征在于, 还包括:
获取单元,用于将所述第二接收单元接收的所述第一 HTTP响应中的所述 GG I 参数带入所述 CG I 并运行所述 GG I, 获取所述动态内容;
第二发送单元, 用于向所述用户发送第二 HTTP响应, 所述第二 HTTP响应 中包含所述获取单元获取的所述动态内容。
8、 根据权利要求 6或 7所述的 GDN服务器, 其特征在于, 所述修改单元具 体用于对所述第一 HTTP请求的 User-Agent字段进行修改, 生成所述第二 HTTP 请求, 所述第二 HTTP请求的 User-Agent字段中包含所述 GDN服务器的标识, 所述 GDN服务器的标识以及所述 GG I 的标识用于请求所述网页服务器提供所述 CG I o
9、 根据权利要求 6至 8中任一所述的 GDN服务器, 其特征在于, 所述第一 HTTP响应包含用于标识所述 GG I的类型的信息。
1 0、 根据权利要求 6至 9中任一所述的 GDN服务器, 其特征在于, 还包括: 保存单元, 用于保存所述保存所述第二接收单元接收的所述第一 HTTP响应 中的所述 GG I。
PCT/CN2014/075151 2013-04-18 2014-04-11 接收请求的方法及cdn服务器 WO2014169779A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310135958.7A CN104113568B (zh) 2013-04-18 2013-04-18 接收请求的方法及cdn服务器
CN201310135958.7 2013-04-18

Publications (1)

Publication Number Publication Date
WO2014169779A1 true WO2014169779A1 (zh) 2014-10-23

Family

ID=51710201

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075151 WO2014169779A1 (zh) 2013-04-18 2014-04-11 接收请求的方法及cdn服务器

Country Status (2)

Country Link
CN (1) CN104113568B (zh)
WO (1) WO2014169779A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102161161B1 (ko) * 2015-09-11 2020-09-29 아마존 테크놀로지스, 인크. 에지 위치들에서 맞춤형 이벤트-트리거된 컴퓨터의 조작을 위한 시스템, 방법 및 컴퓨터-판독가능한 스토리지 매체

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1894667A (zh) * 2003-12-18 2007-01-10 康泰克创新公司 分配服务器资源的系统和方法
CN102065150A (zh) * 2011-01-18 2011-05-18 乐视网信息技术(北京)股份有限公司 一种基于p2p网络和cdn网络的数据传输系统和方法
CN102231749A (zh) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 一种利用cdn网络传输直播流的系统和方法
WO2012151568A2 (en) * 2011-05-05 2012-11-08 Cotendo, Inc. Combined cdn reverse proxy and an edge forward proxy with secure connections

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1894667A (zh) * 2003-12-18 2007-01-10 康泰克创新公司 分配服务器资源的系统和方法
CN102065150A (zh) * 2011-01-18 2011-05-18 乐视网信息技术(北京)股份有限公司 一种基于p2p网络和cdn网络的数据传输系统和方法
WO2012151568A2 (en) * 2011-05-05 2012-11-08 Cotendo, Inc. Combined cdn reverse proxy and an edge forward proxy with secure connections
CN102231749A (zh) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 一种利用cdn网络传输直播流的系统和方法

Also Published As

Publication number Publication date
CN104113568A (zh) 2014-10-22
CN104113568B (zh) 2017-09-05

Similar Documents

Publication Publication Date Title
JP5933827B2 (ja) 機器同士の間の通信セッション転送
EP2963884B1 (en) Bidirectional authorization system, client and method
WO2017024842A1 (zh) 一种上网认证方法及客户端、计算机存储介质
US20180365395A1 (en) Multimedia data processing method, apparatus, system, and storage medium
JP2017529793A5 (zh)
WO2012149840A1 (zh) 验证标识信息的方法及终端
US20120297031A1 (en) Anonymous Signalling
CN105873055B (zh) 一种无线网络接入认证方法及装置
WO2014201931A1 (zh) 资源处理方法和站点服务器
JP2014160942A5 (zh)
WO2017177691A1 (zh) 一种入口认证方法和系统
US9503444B2 (en) System and method for sharing access to a service within a home network
WO2015043455A1 (zh) 数据传输方法、设备及系统
WO2017041562A1 (zh) 一种识别终端设备用户身份的方法和装置
KR102311514B1 (ko) 시커 디바이스와 목표 디바이스 간의 접속을 설정하는 방법 및 시스템
JP5565408B2 (ja) Id認証システム、id認証方法、認証サーバ、端末装置、認証サーバの認証方法、端末装置の通信方法、及びプログラム
WO2015032253A1 (zh) 业务权限确定方法和装置
WO2017080231A1 (zh) 接入无线网络的方法及装置
WO2014179950A1 (zh) 一种文件上传方法、客户端和服务端
WO2018045798A1 (zh) 网络认证方法、相关装置
EP3285456B1 (en) Information processing apparatus, non-transitory computer-readable storage medium, information processing method, and information processing system
CN110474922B (zh) 一种通信方法、pc系统及接入控制路由器
JP2017538223A (ja) 認証方法
WO2012097728A1 (zh) 一种开放平台代理访问方法及装置
WO2014201783A1 (zh) 一种自组网的加密鉴权方法、系统及终端

Legal Events

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

Ref document number: 14784586

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14784586

Country of ref document: EP

Kind code of ref document: A1