WO2017181801A1 - Hypertext transfer protocol request identification system and method - Google Patents

Hypertext transfer protocol request identification system and method Download PDF

Info

Publication number
WO2017181801A1
WO2017181801A1 PCT/CN2017/077408 CN2017077408W WO2017181801A1 WO 2017181801 A1 WO2017181801 A1 WO 2017181801A1 CN 2017077408 W CN2017077408 W CN 2017077408W WO 2017181801 A1 WO2017181801 A1 WO 2017181801A1
Authority
WO
WIPO (PCT)
Prior art keywords
hypertext transfer
transfer protocol
identification
request
protocol request
Prior art date
Application number
PCT/CN2017/077408
Other languages
French (fr)
Chinese (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 上海斐讯数据通信技术有限公司
Publication of WO2017181801A1 publication Critical patent/WO2017181801A1/en

Links

Images

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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Definitions

  • the present invention relates to a hypertext transfer protocol request identification system and method.
  • the portal authentication initiation tool such as WeChat, is actually a hypertext transfer protocol request process, and is still a method for the browser to reply to the content authentication portal page for final authentication according to the request.
  • the access terminal has two hypertext transfer protocol request reply modes, and the first type: the access terminal hijacks the user's hypertext transfer protocol request, and replies with a temporary transfer error (referred to as "Http 302 error") information.
  • the resource locator (referred to as "URL") in the hypertext transfer protocol request is used as the network redirect address in the error message, and the browser will jump according to the network redirect address;
  • jsp Java server page
  • the above two methods have their own drawbacks.
  • TCP Transmission Control Protocol
  • the authenticated tool will send a hypertext transfer protocol request, and the browser or other software on all access terminals will send a hypertext transfer protocol request, so the access end will reply to the temporary transfer error message before the authentication succeeds.
  • the browser or other software will be redirected to the authentication page in a large amount, causing the load on the authentication server to be too high, and eventually the authentication server will not work properly.
  • the hypertext transfer protocol request initiated by other software can be effectively blocked, and the browser does not initiate too many hypertext transfer protocol requests after receiving the request success information, which solves the first problem.
  • the authentication server is overloaded.
  • the redirect address is embedded in the reply message through the jsp redirect code. Due to the difference of the operating system of the access terminal, the jsp redirect code may be unresolvable, and finally the user is authenticated in the portal. I cannot jump to the authentication page.
  • the invention clarifies and processes the hypertext transfer protocol request for initiating the portal authentication, and the access end determines, according to the recognition style, whether the hypertext transfer protocol request belongs to the portal authentication initiation request, and according to the judgment result, selects to reply the Http 302 information or Http 200 information. Thereby achieving the effect of reducing the load on the authentication server.
  • the present invention provides a hypertext transfer protocol request identification system.
  • a hypertext transfer protocol request identification system includes: a protocol request end and an access end connected to each other,
  • the protocol requesting end is configured to send a hypertext transfer protocol request to the access terminal
  • the access end is configured to receive the hypertext transfer protocol request, and determine whether the recognition pattern is satisfied according to the hypertext transfer protocol request, and implement the identification of the hypertext transfer protocol request.
  • the access end includes: a request style preset module, a request receiving module, an identification module, and a reply module;
  • the request pattern preset module is configured to preset a recognition style of the hypertext transfer protocol request
  • the request receiving module and the protocol requesting end, the request receiving module is configured to receive a hypertext transfer protocol request sent by the protocol requesting end;
  • the identification module is respectively connected to the request pattern preset module and the request receiving module, and the identification module requests the recognition style based on the hypertext transfer protocol preset by the request style preset module, and the received hypertext transfer protocol Requesting to make a judgment, and judging by the judgment result, the control reply module performs a reply;
  • the reply module is respectively connected to the identification module and the protocol requesting end, and the replying module sends a reply message to the protocol requesting end based on the control of the identifying module.
  • the hypertext transfer protocol request with the recognition pattern comprises: a resource locator and a target A character is recognized, and the identification character is located after the resource locator.
  • the request pattern preset module comprises: an input selection unit, a style input unit, a combination unit, and a storage unit,
  • the input selection unit is configured to select an input type, the input type is an input identification character, or the input type is an input resource locator and an identification character.
  • the style input unit is connected to the input selection unit, the style input unit is configured to input a logo character, or the style input unit is configured to input a resource locator and a logo character;
  • the combining unit is connected to the style input unit, and the combining unit is configured to splicing the identifier character after the resource locator to form a hypertext transfer protocol request having a recognition style;
  • the storage unit is connected to the combination unit, and the storage unit is configured to store the identification pattern.
  • the identification module includes: a style analysis unit connected to each other and an analysis result identification unit,
  • the pattern parsing unit is configured to parse the hypertext transfer protocol request according to the recognition style, and obtain an analysis result
  • the analysis result identification unit is configured to determine the reply content according to the analysis result.
  • the present invention also provides a hypertext transfer protocol request identification method.
  • the access terminal receives the hypertext transfer protocol request
  • the access end determines whether the hypertext transfer protocol request satisfies the recognition pattern
  • the preset hypertext transfer protocol request identification pattern for identification comprises:
  • the recognition pattern is stored.
  • the preset hypertext transfer protocol request identification pattern for identification comprises:
  • the recognition pattern is stored.
  • the determining whether the hypertext transfer protocol request satisfies the recognition style comprises:
  • the identifier character When the identifier character can be obtained, it indicates that the received hypertext transfer protocol request satisfies the recognition style
  • the identification character When the identification character is not obtained, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
  • the determining whether the hypertext transfer protocol request satisfies the recognition style comprises:
  • the identification character When the identification character is not obtained, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
  • the technical effect of reducing the load of the authentication server is obtained by the access end identifying whether the received hypertext transfer protocol request has an identification pattern and determining a technical solution for replying the content based on the recognition result.
  • the identification style can be set conveniently and quickly.
  • the identification character can be conveniently obtained by splicing the identification character to the resource locator as a technical solution of the hypertext transfer protocol request having the recognition pattern.
  • FIG. 1 is a detailed block diagram of a hypertext transfer protocol request identification system in the present invention
  • FIG. 2 is a diagram showing a specific embodiment of a hypertext transfer protocol request identification system according to the present invention.
  • FIG. 3 is a flow chart of a method for identifying a hypertext transfer protocol request in the present invention.
  • FIG. 1 shows a hypertext transfer protocol request identification system provided by the present invention.
  • the interconnected protocol requester 100 and the access terminal 200 are included.
  • various APP (Application) software in the mobile phone, a browser in the mobile phone, etc. can be used as the protocol requesting end 100, and they can send a hypertext transfer protocol request to the access terminal 200 (below Referred to as "Http request", and generally contains a resource locator (referred to as "URL") in the Http request sent, for example: http://www.123.com .
  • the access terminal 200 is generally a router or the like.
  • the Http request sent by the protocol requesting end 100 enters the access terminal 200, and the request receiving module 202 in the access terminal 200 receives the Http request, where the request receiving module 202 performs no.
  • Differential reception that is, whether the Http request satisfies the recognition pattern, the reception is performed, and the Http request is transmitted to the identification module 203 in the access terminal 200, and the identification module 203 performs pattern recognition.
  • the identification style of the Http request can be preset by the request style preset module 201 in the access terminal 200.
  • the main function of the recognition style is to distinguish the category of the Http request, because the access terminal 200 responds with the Http 200 information with the redirect code.
  • the Http302 information with the redirected address but if the Http 200 information is returned during the portal authentication, there is a possibility that the portal cannot be redirected. Therefore, the Http request initiated during the portal authentication may be identified, and the identification module 203 determines the received Whether the Http request satisfies the recognition style. If the recognition style is satisfied, it indicates that the received Http request may be used to initiate the portal authentication.
  • replying the Http302 information with the redirected address can ensure the success of the jump portal, if the identification is not satisfied.
  • the style indicates that the received Http request has nothing to do with the portal authentication.
  • replying to the Http200 information with the redirect code can reduce the load of the portal authentication server.
  • the reply module 204 in the access terminal 200 is configured to feed back the reply information to the protocol requesting end 100.
  • FIG. 2 shows a hypertext transfer protocol request identification system provided by the present invention.
  • the request pattern preset module 201 includes an input selection unit 20101, a style input unit 20102, a combination unit 20103, and a storage unit 20104.
  • the combined recognition style is also a URL, but it contains the URL address part, for example: http://www.123.com , and the identification character part, for example :abc.
  • the input selection unit 20101 After selection, the input can be made through the style input unit 20102, which is convenient and quick to set the recognition style.
  • URLs and logo characters There are many combinations of URLs and logo characters.
  • the storage unit saves the combined Http request for acquisition by the identification module.
  • the identification module 203 includes: a style parsing unit 20301 and an parsing result identifying unit 20302;
  • the style parsing unit 20301 parses the received Http request, for example, using the URL and the identifier character as the recognition style, and the style parsing unit 20301 needs to try to obtain the identifier character from the Http request.
  • the identifier character can be obtained, and the identifier character is the same as the identifier character in the recognition style, it can indicate that the Http request is a request initiated by the portal authentication or some Http request that needs to reply to the Http302 information with the redirected address; if not, or Even if the acquisition is not the same as the identification character in the recognition style, it means that the Http200 information with the redirect code can be replied for the purpose of reducing the server load.
  • FIG. 3 shows a hypertext transfer protocol request identification method provided by the present invention.
  • the Http request recognition style is preset in the system, and the received Http request can be identified only after the recognition style is set in advance.
  • the recognition style is also a URL, but it contains the URL address part, for example: http://www.123.com , and the identifier part, for example: Abc.
  • the first example does not include the identification character "bszf", and the latter two examples have the same identification character "bszf" as the identification character in the recognition style, and thus can be judged, the first example
  • the Http request may not be a request for portal authentication or a request to reply to the Http302 information with the redirected address.
  • the Http200 information with the redirect code may be replied to reduce the server load; the latter two Http requests may be It is a request for portal authentication or a request to reply to the Http302 information with a redirected address.
  • the Http302 information with the redirected address needs to be replied to ensure that the protocol requester can obtain the redirected address.
  • Bszf also contains the identifier character "bszf". Since the URL and the character of the identification character are set, we compare the URL address part and the identification character in the three examples. In summary, it can be seen that the first example does not include the identification character "bszf". The latter two examples have the same identification character "bszf" as the identification character in the recognition style, but the URL address portion and the identification URL in the identification example in the third example. Partially different, it can be judged that the first and third cases of the Http request may not be a request for portal authentication or a request to reply to the Http 302 information with a redirected address, and only need to reduce the burden on the server.
  • the second instance of the Http request may be a request for portal authentication or a request to reply to the Http 302 information with the redirected address, in which case the Http 302 with the redirected address needs to be replied To ensure that the requesting end of the protocol can obtain the redirected address.
  • the URL address that triggers the portal authentication is set in the button.

Abstract

The invention provides a hypertext transfer protocol (HTTP) request identification system and method. The system comprises an interconnected protocol request terminal and an access terminal. The protocol request terminal is used to transmit to the access terminal an HTTP request. The access terminal is used receive the HTTP request, and determine according to the HTTP request whether an identification pattern is satisfied, so as to implement identification of the HTTP request. In the technical solution, the access terminal is employed to identify a pattern, and determine on the basis of the received HTTP request whether the identification pattern is satisfied, so as to determine a response, resulting in a technical effect of reducing server loads.

Description

一种超文本传输协议请求识别系统及方法Hypertext transfer protocol request identification system and method 技术领域Technical field
本发明涉及一种超文本传输协议请求识别系统及方法。The present invention relates to a hypertext transfer protocol request identification system and method.
背景技术Background technique
现如今商场、医院等公共场合都提供免费的无线网络,但此类免费的无线网络大都需要通过门户认证才能连接,而发起门户认证的方式有很多,例如:通过微信公众号发起门户认证,用户必须先关注商场、医院的微信公众号,才能发起门户认证,最终完成免费无线网络的连接。微信公众号具有一定的广告宣传的作用,所以微信常被作为公共场合免费无线网络门户认证发起的工具。Nowadays, free wireless networks are available in public places such as shopping malls and hospitals. However, most of these free wireless networks need to be authenticated through portal authentication. There are many ways to initiate portal authentication, for example, by launching portal authentication through WeChat public account. You must first pay attention to the WeChat public account of the mall and hospital before you can initiate portal authentication and finally complete the connection of the free wireless network. WeChat public account has a certain advertising role, so WeChat is often used as a tool for public free wireless network portal authentication.
微信等门户认证发起工具,实际上还是一次超文本传输协议请求过程,任然属于游览器根据请求回复内容跳转门户认证页面进行最终认证的方法。在上述过程中,接入端具有两种超文本传输协议请求回复方式,第一种:接入端劫持用户的超文本传输协议请求,回复暂时性转移错误(简称:“Http 302错误”)信息,并将所述超文本传输协议请求中的资源定位符(简称:“URL”)作为错误信息中的网络重定向地址,游览器会根据此网络重定向地址进行跳转;第二种:接入端劫持用户的超文本传输协议请求,回复具有重定向信息的请求成功信息,并在回复中嵌入Java服务器页面(以下简称“jsp”)重定向代码。The portal authentication initiation tool, such as WeChat, is actually a hypertext transfer protocol request process, and is still a method for the browser to reply to the content authentication portal page for final authentication according to the request. In the above process, the access terminal has two hypertext transfer protocol request reply modes, and the first type: the access terminal hijacks the user's hypertext transfer protocol request, and replies with a temporary transfer error (referred to as "Http 302 error") information. And the resource locator (referred to as "URL") in the hypertext transfer protocol request is used as the network redirect address in the error message, and the browser will jump according to the network redirect address; the second type: The inbound hijacks the user's hypertext transfer protocol request, replies with the request success message with the redirect information, and embeds the Java server page (hereinafter referred to as "jsp") redirect code in the reply.
然而,上述两种方式都具有各自的缺陷,第一种方式由于接入端是通过监听传输控制协议(简称:“TCP”)的80端口,来劫持超文本传输协议请求,事实上不止只有发起认证的工具会发送超文本传输协议请求,所有接入终端上的游览器或者其他软件都会发送超文本传输协议请求,所以在认证成功之前,接入端都会对这些请求回复暂时性转移错误信息,而游览器或者其他软件就会大量的重定向到认证网页,造成认证服务器的负载压力过大,最终导致认证服务器不能正常工作。通过第二种方式,可以有效的屏蔽其他软件发起的超文本传输协议请求,同时游览器在收到请求成功信息后不再发起过多的超文本传输协议请求,该种方式虽然解决了第一种方式中由于大量超文本传输协议请求造成 认证服务器负载过大的问题。但第二种方式中重定向地址是通过jsp重定向代码嵌入到回复信息中的,由于接入终端操作系统的差异性,对jsp重定向代码会存在无法解析的情况,最终导致用户在门户认证时无法跳转至认证网页。However, the above two methods have their own drawbacks. In the first way, since the access terminal hijacks the Hypertext Transfer Protocol request by listening to the 80 port of the Transmission Control Protocol (referred to as "TCP"), in fact, it is not only initiated. The authenticated tool will send a hypertext transfer protocol request, and the browser or other software on all access terminals will send a hypertext transfer protocol request, so the access end will reply to the temporary transfer error message before the authentication succeeds. The browser or other software will be redirected to the authentication page in a large amount, causing the load on the authentication server to be too high, and eventually the authentication server will not work properly. In the second way, the hypertext transfer protocol request initiated by other software can be effectively blocked, and the browser does not initiate too many hypertext transfer protocol requests after receiving the request success information, which solves the first problem. In a way due to a large number of hypertext transfer protocol requests The authentication server is overloaded. However, in the second mode, the redirect address is embedded in the reply message through the jsp redirect code. Due to the difference of the operating system of the access terminal, the jsp redirect code may be unresolvable, and finally the user is authenticated in the portal. I cannot jump to the authentication page.
本发明通过对发起门户认证的超文本传输协议请求进行识别样式化处理,接入端基于识别样式判断超文本传输协议请求是否属于门户认证发起的请求,并根据判断结果,选择回复Http 302信息或Http 200信息。从而达到降低认证服务器负载的效果。The invention clarifies and processes the hypertext transfer protocol request for initiating the portal authentication, and the access end determines, according to the recognition style, whether the hypertext transfer protocol request belongs to the portal authentication initiation request, and according to the judgment result, selects to reply the Http 302 information or Http 200 information. Thereby achieving the effect of reducing the load on the authentication server.
发明内容Summary of the invention
针对上述问题,本发明提供了一种超文本传输协议请求识别系统。In response to the above problems, the present invention provides a hypertext transfer protocol request identification system.
本发明提供的技术方案如下:The technical solution provided by the present invention is as follows:
一种超文本传输协议请求识别系统,包括:相互连接的协议请求端和接入端,A hypertext transfer protocol request identification system includes: a protocol request end and an access end connected to each other,
所述协议请求端,用于发送超文本传输协议请求至所述接入端;The protocol requesting end is configured to send a hypertext transfer protocol request to the access terminal;
所述接入端,用于接收所述超文本传输协议请求,同时基于该超文本传输协议请求判断是否满足识别样式,实现所述超文本传输协议请求的识别。The access end is configured to receive the hypertext transfer protocol request, and determine whether the recognition pattern is satisfied according to the hypertext transfer protocol request, and implement the identification of the hypertext transfer protocol request.
优选地,所述接入端包括:请求样式预设模块、请求接收模块、识别模块以及回复模块;Preferably, the access end includes: a request style preset module, a request receiving module, an identification module, and a reply module;
所述请求样式预设模块,用于预设超文本传输协议请求的识别样式;The request pattern preset module is configured to preset a recognition style of the hypertext transfer protocol request;
所述请求接收模块,与所述协议请求端,所述请求接收模块用于接收所述协议请求端发送的超文本传输协议请求;The request receiving module, and the protocol requesting end, the request receiving module is configured to receive a hypertext transfer protocol request sent by the protocol requesting end;
所述识别模块,分别与所述请求样式预设模块和请求接收模块连接,所述识别模块基于所述请求样式预设模块预设的超文本传输协议请求识别样式,对接收的超文本传输协议请求进行判断,基于判断结果判断控制回复模块进行回复;The identification module is respectively connected to the request pattern preset module and the request receiving module, and the identification module requests the recognition style based on the hypertext transfer protocol preset by the request style preset module, and the received hypertext transfer protocol Requesting to make a judgment, and judging by the judgment result, the control reply module performs a reply;
所述回复模块,分别与所述识别模块和协议请求端连接,所述回复模块基于识别模块的控制,向协议请求端发送回复信息。The reply module is respectively connected to the identification module and the protocol requesting end, and the replying module sends a reply message to the protocol requesting end based on the control of the identifying module.
优选地,所述具有识别样式的超文本传输协议请求包括:资源定位符与标 识字符,且所述标识字符位于所述资源定位符之后。Preferably, the hypertext transfer protocol request with the recognition pattern comprises: a resource locator and a target A character is recognized, and the identification character is located after the resource locator.
优选地,所述请求样式预设模块包括:输入选择单元、样式输入单元、组合单元以及存储单元,Preferably, the request pattern preset module comprises: an input selection unit, a style input unit, a combination unit, and a storage unit,
所述输入选择单元,用于选择输入类型,所述输入类型为输入标识字符,或所述输入类型为输入资源定位符和标识字符。The input selection unit is configured to select an input type, the input type is an input identification character, or the input type is an input resource locator and an identification character.
所述样式输入单元,与所述输入选择单元连接,所述样式输入单元用于输入标识字符,或所述样式输入单元用于输入资源定位符和标识字符;The style input unit is connected to the input selection unit, the style input unit is configured to input a logo character, or the style input unit is configured to input a resource locator and a logo character;
所述组合单元,与所述样式输入单元连接,所述组合单元用于将所述标识字符拼接于所述资源定位符之后,形成具有识别样式的超文本传输协议请求;The combining unit is connected to the style input unit, and the combining unit is configured to splicing the identifier character after the resource locator to form a hypertext transfer protocol request having a recognition style;
所述存储单元,与所述组合单元连接,所述存储单元用于存储所述识别样式。The storage unit is connected to the combination unit, and the storage unit is configured to store the identification pattern.
优选地,所述识别模块包括:相互连接的样式解析单元以及解析结果识别单元,Preferably, the identification module includes: a style analysis unit connected to each other and an analysis result identification unit,
所述样式解析单元,用于根据识别样式对超文本传输协议请求进行解析,并获得解析结果;The pattern parsing unit is configured to parse the hypertext transfer protocol request according to the recognition style, and obtain an analysis result;
所述解析结果识别单元,用于根据解析结果判断回复内容。The analysis result identification unit is configured to determine the reply content according to the analysis result.
针对上述问题,本发明还提供了一种超文本传输协议请求识别方法。In view of the above problems, the present invention also provides a hypertext transfer protocol request identification method.
本发明提供的技术方案如下:The technical solution provided by the present invention is as follows:
在接入端预设用于识别的超文本传输协议请求识别样式;Presetting the hypertext transfer protocol request identification pattern for identification on the access end;
接入端接收超文本传输协议请求;The access terminal receives the hypertext transfer protocol request;
接入端判断所述超文本传输协议请求是否满足识别样式;The access end determines whether the hypertext transfer protocol request satisfies the recognition pattern;
当接收到的超文本传输协议请求满足识别样式时,回复暂时性转移错误信息;Responding to a temporary transfer error message when the received hypertext transfer protocol request satisfies the recognition pattern;
当接收到的超文本传输协议请求未满足识别样式时,回复包含网络重定向地址的请求成功信息。When the received hypertext transfer protocol request does not satisfy the recognition pattern, the response success message including the network redirect address is replied.
优选地,所述预设用于识别的超文本传输协议请求识别样式包括:Preferably, the preset hypertext transfer protocol request identification pattern for identification comprises:
输入标识字符;Enter the identification character;
将所述标识字符拼接于资源定位符之后,形成识别样式; Splicing the identification character after the resource locator to form an identification pattern;
储存所述识别样式。The recognition pattern is stored.
优选地,所述预设用于识别的超文本传输协议请求识别样式包括:Preferably, the preset hypertext transfer protocol request identification pattern for identification comprises:
输入资源定位符以及标识字符;Enter the resource locator and the identification character;
将所述标识字符拼接于资源定位符之后,形成识别样式;Splicing the identification character after the resource locator to form an identification pattern;
储存所述识别样式。The recognition pattern is stored.
优选地,所述判断所述超文本传输协议请求是否满足识别样式包括:Preferably, the determining whether the hypertext transfer protocol request satisfies the recognition style comprises:
是否可以在资源定位符之后获取标识字符;Whether the identifier character can be obtained after the resource locator;
当能获取标识字符时,表示接收到的超文本传输协议请求满足识别样式;When the identifier character can be obtained, it indicates that the received hypertext transfer protocol request satisfies the recognition style;
当未能获取标识字符时,表示接收到的超文本传输协议请求未满足识别样式。When the identification character is not obtained, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
优选地,所述判断所述超文本传输协议请求是否满足识别样式包括:Preferably, the determining whether the hypertext transfer protocol request satisfies the recognition style comprises:
是否可以在资源定位符之后获取标识字符;Whether the identifier character can be obtained after the resource locator;
当未能获取标识字符时,表示接收到的超文本传输协议请求未满足识别样式。When the identification character is not obtained, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
当能获取标识字符时,判断资源定位符与识别样式中资源定位符是否相同;When the identifier character can be obtained, it is determined whether the resource locator is the same as the resource locator in the recognition style;
当相同时,表示接收到的超文本传输协议请求满足识别样式;When the same, it indicates that the received hypertext transfer protocol request satisfies the recognition pattern;
当相同时,表示接收到的超文本传输协议请求未满足识别样式。When the same, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
本发明提供的超文本传输协议请求识别系统及方法,能够带来以下有益效果:The hypertext transfer protocol request identification system and method provided by the present invention can bring the following beneficial effects:
在本发明中,通过接入端识别接收到的超文本传输协议请求是否具有识别样式,并基于识别结果判断回复内容的技术方案,获得了降低认证服务器负载的技术效果。In the present invention, the technical effect of reducing the load of the authentication server is obtained by the access end identifying whether the received hypertext transfer protocol request has an identification pattern and determining a technical solution for replying the content based on the recognition result.
在本发明中,通过在接入端设置请求样式预设模块的技术方案,可以方便快捷的对识别样式进行设置。In the present invention, by setting a technical solution of requesting a style preset module on the access end, the identification style can be set conveniently and quickly.
在本发明中,通过将标识字符拼接至资源定位符之后作为具有识别样式的超文本传输协议请求的技术方案,可以方便获取标识字符。 In the present invention, the identification character can be conveniently obtained by splicing the identification character to the resource locator as a technical solution of the hypertext transfer protocol request having the recognition pattern.
附图说明DRAWINGS
下面将以明确易懂的方式,结合附图说明优选实施方式,对上述特性、技术特征、优点及其实现方式予以进一步说明。The above described features, technical features, advantages and implementations thereof will be further described in the following, in which the preferred embodiments are described in the <RTIgt;
图1为本发明中超文本传输协议请求识别系统的具体框图;1 is a detailed block diagram of a hypertext transfer protocol request identification system in the present invention;
图2为本发明中超文本传输协议请求识别系统的一个具体实施例图;2 is a diagram showing a specific embodiment of a hypertext transfer protocol request identification system according to the present invention;
图3为本发明中超文本传输协议请求识别方法的流程图。3 is a flow chart of a method for identifying a hypertext transfer protocol request in the present invention.
附图标号说明:Description of the reference numerals:
100-协议请求端,200-接入端,201-请求样式预设模块,202-请求接收模块,203-识别模块,204-回复模块,20101-输入选择单元,20102-样式输入单元,20103-组合单元,20104-存储单元,20301-样式解析单元,20302-解析结果识别单元。100-protocol requesting end, 200-access end, 201-requesting style presetting module, 202-requesting receiving module, 203-recognition module, 204-reply module, 20101-input selection unit, 20102-style input unit, 20103- Combination unit, 20104-storage unit, 20301-style parsing unit, 20302-analysis result identification unit.
具体实施方式detailed description
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without obtaining creative labor, and obtain Other embodiments.
如图1所示为本发明提供的一种超文本传输协议请求识别系统。从图中可以看出,在该超文本传输协议请求识别系统中,包括相互连接的协议请求端100和接入端200。FIG. 1 shows a hypertext transfer protocol request identification system provided by the present invention. As can be seen from the figure, in the hypertext transfer protocol request identification system, the interconnected protocol requester 100 and the access terminal 200 are included.
在具体实施例中,手机中的各种APP(Application,应用程序)软件、手机中的游览器等,都可以作为协议请求端100,他们可以向接入端200发送超文本传输协议请求(以下简称“Http请求”),且在发送的Http请求中一般都包含一个资源定位符(简称:“URL”),例如:http://www.123.comIn a specific embodiment, various APP (Application) software in the mobile phone, a browser in the mobile phone, etc. can be used as the protocol requesting end 100, and they can send a hypertext transfer protocol request to the access terminal 200 (below Referred to as "Http request", and generally contains a resource locator (referred to as "URL") in the Http request sent, for example: http://www.123.com .
接入端200,一般是路由器等,协议请求端100发送的Http请求都会进入接入端200,接入端200中的请求接收模块202对Http请求进行接收,这里的请求接收模块202是进行无差别接收,即不管Http请求是否满足识别样式,都会进行接收,并将Http请求传递给接入端200中的识别模块203,由识别模块 203进行样式识别。Http请求的识别样式可以通过接入端200中的请求样式预设模块201进行预设,识别样式的主要作用就是区分Http请求的类别,由于接入端200回复具有重定向代码的Http 200信息优于回复具有重定向地址的Http302信息,但是如果在门户认证时回复Http 200信息存在无法跳转门户网站的可能,所以可以对门户认证时发起的Http请求采用识别样式,识别模块203判断接收到的Http请求是否满足识别样式,如果满足识别样式,就说明接收到的Http请求可能用于发起门户认证,此时回复具有重定向地址的Http302信息,可以保证跳转门户网站的成功,如果不满足识别样式,就说明接收到的Http请求与门户认证无关,此时回复具有重定向代码的Http200信息,可以减少门户认证服务器的负载。接入端200中的回复模块204,用于将上述回复信息回馈给协议请求端100。The access terminal 200 is generally a router or the like. The Http request sent by the protocol requesting end 100 enters the access terminal 200, and the request receiving module 202 in the access terminal 200 receives the Http request, where the request receiving module 202 performs no. Differential reception, that is, whether the Http request satisfies the recognition pattern, the reception is performed, and the Http request is transmitted to the identification module 203 in the access terminal 200, and the identification module 203 performs pattern recognition. The identification style of the Http request can be preset by the request style preset module 201 in the access terminal 200. The main function of the recognition style is to distinguish the category of the Http request, because the access terminal 200 responds with the Http 200 information with the redirect code. In response to the Http302 information with the redirected address, but if the Http 200 information is returned during the portal authentication, there is a possibility that the portal cannot be redirected. Therefore, the Http request initiated during the portal authentication may be identified, and the identification module 203 determines the received Whether the Http request satisfies the recognition style. If the recognition style is satisfied, it indicates that the received Http request may be used to initiate the portal authentication. At this time, replying the Http302 information with the redirected address can ensure the success of the jump portal, if the identification is not satisfied. The style indicates that the received Http request has nothing to do with the portal authentication. At this time, replying to the Http200 information with the redirect code can reduce the load of the portal authentication server. The reply module 204 in the access terminal 200 is configured to feed back the reply information to the protocol requesting end 100.
如图2所示为本发明提供的一种超文本传输协议请求识别系统。从图中可以看出,在图1的基础上,请求样式预设模块201中包括:输入选择单元20101、样式输入单元20102、组合单元20103以及存储单元20104。FIG. 2 shows a hypertext transfer protocol request identification system provided by the present invention. As can be seen from the figure, on the basis of FIG. 1, the request pattern preset module 201 includes an input selection unit 20101, a style input unit 20102, a combination unit 20103, and a storage unit 20104.
对于识别样式,我们一般采用URL和标识字符的组合,其实,组合后的识别样式也是一个URL,只是其中包含URL地址部分,例如:http://www.123.com,和标识字符部分,例如:abc。此时我们可以通过输入选择单元20101选择只对标识字符进行设置或者选择对URL以及标识字符内容进行设置。选择后,可以通过样式输入单元20102进行输入,这一设计可以方便快捷的对识别样式进行设置。URL和标识字符有很多组合方式,我们采用一种方便后期处理的方式作为组合方式,即将标识字符拼接至URL之后,例如:http://www.123.com?ysgs,这一过程通过组合单元20103完成。完成组合之后,存储单元将上述组合后的Http请求进行保存,供识别模块进行获取。For the recognition style, we generally use a combination of URL and identification characters. In fact, the combined recognition style is also a URL, but it contains the URL address part, for example: http://www.123.com , and the identification character part, for example :abc. At this time, we can select to set only the identification characters or select the URL and the identification character content through the input selection unit 20101. After selection, the input can be made through the style input unit 20102, which is convenient and quick to set the recognition style. There are many combinations of URLs and logo characters. We use a convenient post-processing method as a combination method, that is, after the logo characters are spliced to the URL, for example: http://www.123.com? Ysgs, this process is completed by the combination unit 20103. After the combination is completed, the storage unit saves the combined Http request for acquisition by the identification module.
同时在图1的基础上,识别模块203包括:样式解析单元20301以及解析结果识别单元20302;At the same time, on the basis of FIG. 1, the identification module 203 includes: a style parsing unit 20301 and an parsing result identifying unit 20302;
由于是无差别的接收Http请求,所以必须先对Http请求进行解析。样式解析单元20301会对接收到的Http请求进行解析,例如:采用URL与标识字符作为识别样式,则样式解析单元20301需要尝试从Http请求中获取标识字符, 如果能获取标识字符,且标识字符与识别样式中的标识字符相同,则可以表示这个Http请求是门户认证发起的请求或者一些需要回复具有重定向地址的Http302信息的Http请求;如果不能获取,或者即使获取却与识别样式中的标识字符不相同时,则表示可以以降低服务器负载为目的,回复具有重定向代码的Http200信息。Since the Http request is received indiscriminately, the Http request must be parsed first. The style parsing unit 20301 parses the received Http request, for example, using the URL and the identifier character as the recognition style, and the style parsing unit 20301 needs to try to obtain the identifier character from the Http request. If the identifier character can be obtained, and the identifier character is the same as the identifier character in the recognition style, it can indicate that the Http request is a request initiated by the portal authentication or some Http request that needs to reply to the Http302 information with the redirected address; if not, or Even if the acquisition is not the same as the identification character in the recognition style, it means that the Http200 information with the redirect code can be replied for the purpose of reducing the server load.
如图3所示为本发明提供的一种超文本传输协议请求识别方法。具体拉私活,当需要使用系统对Http请求进行识别回复时,先在系统中对Http请求识别样式进行预设,只有预先设置了识别样式后,才可以对接收到的Http请求进行识别。我们一般采用URL和标识字符的组合作为识别样式,其实,组合后的识别样式也是一个URL,只是其中包含URL地址部分,例如:http://www.123.com,和标识字符部分,例如:abc。此时我们可以选择只对标识字符进行设置,即对URL地址部分的内容我们不做限制,或者我们也可以选择对URL以及标识字符内容进行设置,即协议请求端发送的Http请求必须完全满足设置内容才进行相应的回复。以下我们对两种情况进行详细说明:FIG. 3 shows a hypertext transfer protocol request identification method provided by the present invention. Specifically, when the system needs to use the system to identify and reply to the Http request, the Http request recognition style is preset in the system, and the received Http request can be identified only after the recognition style is set in advance. We generally use a combination of URL and logo characters as the recognition style. In fact, the combined recognition style is also a URL, but it contains the URL address part, for example: http://www.123.com , and the identifier part, for example: Abc. At this point, we can choose to set only the identifier characters, that is, we do not limit the content of the URL address part, or we can choose to set the URL and the identifier character content, that is, the Http request sent by the protocol requester must fully satisfy the setting. The content will respond accordingly. Below we explain the two situations in detail:
当只对标识字符进行设置时,可以输入标识字符例如:bszf,URL和标识字符的组合有很多种,我们以将标识字符拼接至URL之后为例,此时,识别样式为:“?bszf”,此识别样式没有对URL地址部分的内容进行限制。当接收到Http请求时,优先判断是否包含标识字符,例如:http://www.123.com,中并不包含“bszf”标识字符,再例如:http://www.456.com?bszf,中包含标识字符“bszf”,还例如:http://www.789.com?bszf,中也包含标识字符“bszf”。由于只对标识字符进行了设置,所以我们不对后两例中的URL地址部分,即http://www.456.comhttp://www.789.com进行比较,只对标识字符部分进行比较。综上可以看出第一例并不包含标识字符“bszf”,后两例虽然URL地址部分不同但具有与识别样式中标识字符相同的标识字符“bszf”,由此可以判断,第一例的Http请求可能不是用于门户认证的请求或者需要回复具有重定向地址的Http302信息的请求,此时只需以减轻服务器负担为目的,回复具有重定向代码的Http200信息;后两例的Http请求可能是用于门户认证的请求或者需要回复具有重定向地址的Http302信息的请求,此时需要回复具有重定向地址的 Http302信息,保证协议请求端能获取重定向地址。When only the logo characters are set, you can enter the logo characters such as bszf. There are many combinations of URLs and logo characters. Let's take the example of splicing the logo characters to the URL. In this case, the recognition style is: “?bszf” This recognition style does not restrict the content of the URL address part. When receiving an Http request, it is preferred to determine whether the identifier character is included, for example: http://www.123.com , which does not contain the "bszf" identifier character, for example: http://www.456.com? Bszf , which contains the identifier character "bszf", also for example: http://www.789.com? Bszf also contains the identifier character "bszf". Since only the logo characters are set, we do not compare the URL address parts of the last two examples, namely http://www.456.com and http://www.789.com , only the logo character part. Comparison. In summary, it can be seen that the first example does not include the identification character "bszf", and the latter two examples have the same identification character "bszf" as the identification character in the recognition style, and thus can be judged, the first example The Http request may not be a request for portal authentication or a request to reply to the Http302 information with the redirected address. In this case, the Http200 information with the redirect code may be replied to reduce the server load; the latter two Http requests may be It is a request for portal authentication or a request to reply to the Http302 information with a redirected address. In this case, the Http302 information with the redirected address needs to be replied to ensure that the protocol requester can obtain the redirected address.
当URL以及标识字符内容进行设置时,可以输入URL,例如:http://www.123.com和标识字符,例如:bszf。URL和标识字符的组合有很多种,我们以将标识字符拼接至URL之后为例,此时,识别样式为:“http://www.456.com?bszf”。当接收到Http请求时,优先判断是否包含标识字符,例如:http://www.123.com,中并不包含“bszf”标识字符,再例如:http://www.456.com?bszf,中就包含标识字符“bszf”,还例如:http://www.789.com?bszf,中也包含标识字符“bszf”。由于之对URL以及标识字符内容进行设置,所以我们对三个例中的URL地址部分以及标识字符都进行比较。综上可以看出第一例并不包含标识字符“bszf”,后两例虽然具有与识别样式中标识字符相同的标识字符“bszf”,但第三例中URL地址部分与识别样式中URL地址部分不相同,由此可以判断,第一、三例的Http请求可能不是用于门户认证的请求或者需要回复具有重定向地址的Http 302信息的请求,此时只需以减轻服务器负担为目的,回复具有重定向代码的Http 200信息;第两例的Http请求可能是用于门户认证的请求或者需要回复具有重定向地址的Http 302信息的请求,此时需要回复具有重定向地址的Http 302信息,保证协议请求端能获取重定向地址。When the URL and the identification character content are set, you can enter the URL, for example: http://www.123.com and the identification character, for example: bszf. There are many combinations of URLs and logo characters. Let's take the example of splicing the logo characters to the URL. In this case, the recognition style is: " http://www.456.com?bszf ". When receiving an Http request, it is preferred to determine whether the identifier character is included, for example: http://www.123.com , which does not contain the "bszf" identifier character, for example: http://www.456.com? Bszf , which contains the identifier character "bszf", also for example: http://www.789.com? Bszf also contains the identifier character "bszf". Since the URL and the character of the identification character are set, we compare the URL address part and the identification character in the three examples. In summary, it can be seen that the first example does not include the identification character "bszf". The latter two examples have the same identification character "bszf" as the identification character in the recognition style, but the URL address portion and the identification URL in the identification example in the third example. Partially different, it can be judged that the first and third cases of the Http request may not be a request for portal authentication or a request to reply to the Http 302 information with a redirected address, and only need to reduce the burden on the server. Respond to the Http 200 information with the redirect code; the second instance of the Http request may be a request for portal authentication or a request to reply to the Http 302 information with the redirected address, in which case the Http 302 with the redirected address needs to be replied To ensure that the requesting end of the protocol can obtain the redirected address.
综上,我们以通过微信公众号认证登陆免费公共无线网络为例。首先,我们可以在接入端设置标识字符,例如:以微信ID号进行设置,内容为“weixinID=123”,因为我们可以对很多Http请求进行格式限定,就容易存在具有相同标识字符的Http请求,所以我们可以进一步对Http请求中的URL地址部分进行设置,此处例如:http://www.mhrz.com,那整个识别样式就是http://www.mhrz.com?weixinID=123。我们一般通过微信公众号开发者平台建立公众号自定义菜单,通过一个按键进行门户认证。按键中设置有触发门户认证的URL地址,由于门户认证请求需要回复Http302信息,所以,设置Http请求必须满足在接入端设置的识别样式,此时就必须设置成http://www.mhrz.com?weixinID=123,接入端才能回复Http302信息。用户在需要连接无线网络时,点击按钮就可以向接入端发送包含上述URL的Http请求, 接入端截获此Http请求,首先获取标识字符weixinID=123,再对http://www.mhrz.com进行判断,发现都满足条件,接入端就回复具有重定向地址的Http302信息。In summary, we take the example of logging into the free public wireless network through WeChat public account authentication. First of all, we can set the identification character on the access side, for example: set with WeChat ID number, the content is "weixinID=123", because we can format many Http requests, it is easy to have Http request with the same identification character. So we can further set up the URL address part of the Http request, here for example: http://www.mhrz.com , then the whole recognition style is http://www.mhrz.com? weixinID=123 . We generally use the WeChat public number developer platform to create a public number custom menu, and a portal to authenticate the portal. The URL address that triggers the portal authentication is set in the button. Since the portal authentication request needs to reply to the Http302 information, the setting Http request must satisfy the identification style set on the access end, and must be set to http://www.mhrz. Com? weixinID=123, the access end can reply to the Http302 information. When the user needs to connect to the wireless network, the user can send an Http request containing the above URL to the access terminal by clicking the button, and the access terminal intercepts the Http request, first obtains the identifier character weixinID=123, and then http://www.mhrz. Com judges that the condition is met, and the access end replies with the Http302 information with the redirected address.
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 It should be noted that the above embodiments can be freely combined as needed. The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims (10)

  1. 一种超文本传输协议请求识别系统,其特征在于,所述超文本传输协议请求识别系统包括:相互连接的协议请求端和接入端,A hypertext transfer protocol request identification system, characterized in that the hypertext transfer protocol request identification system comprises: a protocol request end and an access end connected to each other,
    所述协议请求端,用于发送超文本传输协议请求至所述接入端;The protocol requesting end is configured to send a hypertext transfer protocol request to the access terminal;
    所述接入端,用于接收所述超文本传输协议请求,同时基于该超文本传输协议请求判断是否满足识别样式,实现所述超文本传输协议请求的识别。The access end is configured to receive the hypertext transfer protocol request, and determine whether the recognition pattern is satisfied according to the hypertext transfer protocol request, and implement the identification of the hypertext transfer protocol request.
  2. 如权利要求1所述的超文本传输协议请求识别系统,其特征在于,所述接入端包括:请求样式预设模块、请求接收模块、识别模块以及回复模块;The hypertext transfer protocol request identification system according to claim 1, wherein the access terminal comprises: a request style preset module, a request receiving module, an identification module, and a reply module;
    所述请求样式预设模块,用于预设超文本传输协议请求的识别样式;The request pattern preset module is configured to preset a recognition style of the hypertext transfer protocol request;
    所述请求接收模块,与所述协议请求端,所述请求接收模块用于接收所述协议请求端发送的超文本传输协议请求;The request receiving module, and the protocol requesting end, the request receiving module is configured to receive a hypertext transfer protocol request sent by the protocol requesting end;
    所述识别模块,分别与所述请求样式预设模块和请求接收模块连接,所述识别模块基于所述请求样式预设模块预设的超文本传输协议请求识别样式,对接收的超文本传输协议请求进行判断,基于判断结果判断控制回复模块进行回复;The identification module is respectively connected to the request pattern preset module and the request receiving module, and the identification module requests the recognition style based on the hypertext transfer protocol preset by the request style preset module, and the received hypertext transfer protocol Requesting to make a judgment, and judging by the judgment result, the control reply module performs a reply;
    所述回复模块,分别与所述识别模块和协议请求端连接,所述回复模块基于识别模块的控制,向协议请求端发送回复信息。The reply module is respectively connected to the identification module and the protocol requesting end, and the replying module sends a reply message to the protocol requesting end based on the control of the identifying module.
  3. 如权利要求1或2中任一所述的超文本传输协议请求识别系统,其特征在于,所述具有识别样式的超文本传输协议请求包括:资源定位符与标识字符,且所述标识字符位于所述资源定位符之后。The hypertext transfer protocol request identification system according to any one of claims 1 to 2, wherein the hypertext transfer protocol request having the identification pattern comprises: a resource locator and an identification character, and the identification character is located After the resource locator.
  4. 如权利要求3所述的超文本传输协议请求识别系统,其特征在于,所述请求样式预设模块包括:输入选择单元、样式输入单元、组合单元以及存储单元,The hypertext transfer protocol request identification system according to claim 3, wherein the request pattern preset module comprises: an input selection unit, a style input unit, a combination unit, and a storage unit,
    所述输入选择单元,用于选择输入类型,所述输入类型为输入标识字符,或所述输入类型为输入资源定位符和标识字符;The input selection unit is configured to select an input type, where the input type is an input identification character, or the input type is an input resource locator and an identifier character;
    所述样式输入单元,与所述输入选择单元连接,所述样式输入单元用于输入标识字符,或所述样式输入单元用于输入资源定位符和标识字符;The style input unit is connected to the input selection unit, the style input unit is configured to input a logo character, or the style input unit is configured to input a resource locator and a logo character;
    所述组合单元,与所述样式输入单元连接,所述组合单元用于将所述标 识字符拼接于所述资源定位符之后,形成具有识别样式的超文本传输协议请求;The combining unit is connected to the style input unit, and the combining unit is configured to Forming a hypertext transfer protocol request with an identification pattern after the character is spliced to the resource locator;
    所述存储单元,与所述组合单元连接,所述存储单元用于存储所述识别样式。The storage unit is connected to the combination unit, and the storage unit is configured to store the identification pattern.
  5. 如权利要求3所述的超文本传输协议请求识别系统,其特征在于,所述识别模块包括:相互连接的样式解析单元以及解析结果识别单元,The hypertext transfer protocol request identification system according to claim 3, wherein the identification module comprises: an interconnected style parsing unit and an parsing result identifying unit,
    所述样式解析单元,用于根据识别样式对超文本传输协议请求进行解析,并获得解析结果;The pattern parsing unit is configured to parse the hypertext transfer protocol request according to the recognition style, and obtain an analysis result;
    所述解析结果识别单元,用于根据解析结果判断回复内容。The analysis result identification unit is configured to determine the reply content according to the analysis result.
  6. 一种超文本传输协议请求识别方法,其特征在于,所述超文本传输协议请求识别方法包括:A hypertext transfer protocol request identification method, wherein the hypertext transfer protocol request identification method comprises:
    在接入端预设用于识别的超文本传输协议请求识别样式;Presetting the hypertext transfer protocol request identification pattern for identification on the access end;
    接入端接收超文本传输协议请求;The access terminal receives the hypertext transfer protocol request;
    接入端判断所述超文本传输协议请求是否满足识别样式;The access end determines whether the hypertext transfer protocol request satisfies the recognition pattern;
    当接收到的超文本传输协议请求满足识别样式时,回复暂时性转移错误信息;Responding to a temporary transfer error message when the received hypertext transfer protocol request satisfies the recognition pattern;
    当接收到的超文本传输协议请求未满足识别样式时,回复包含网络重定向地址的请求成功信息。When the received hypertext transfer protocol request does not satisfy the recognition pattern, the response success message including the network redirect address is replied.
  7. 如权利要求6所述的超文本传输协议请求识别方法,其特征在于,所述预设用于识别的超文本传输协议请求识别样式包括:The Hypertext Transfer Protocol request identification method according to claim 6, wherein the preset hypertext transfer protocol request identification pattern for identification comprises:
    输入标识字符;Enter the identification character;
    将所述标识字符作为识别样式;Using the identification character as an identification style;
    储存所述识别样式。The recognition pattern is stored.
  8. 如权利要求6所述的超文本传输协议请求识别方法,其特征在于,所述预设用于识别的超文本传输协议请求识别样式包括:The Hypertext Transfer Protocol request identification method according to claim 6, wherein the preset hypertext transfer protocol request identification pattern for identification comprises:
    输入资源定位符以及标识字符;Enter the resource locator and the identification character;
    将所述标识字符拼接于资源定位符之后,形成识别样式;Splicing the identification character after the resource locator to form an identification pattern;
    储存所述识别样式。 The recognition pattern is stored.
  9. 如权利要求7所述的超文本传输协议请求识别方法,其特征在于,所述判断所述超文本传输协议请求是否满足识别样式包括:The hypertext transfer protocol request identification method according to claim 7, wherein the determining whether the hypertext transfer protocol request satisfies the recognition style comprises:
    是否可以在资源定位符之后获取标识字符;Whether the identifier character can be obtained after the resource locator;
    当能获取标识字符时,表示接收到的超文本传输协议请求满足识别样式;When the identifier character can be obtained, it indicates that the received hypertext transfer protocol request satisfies the recognition style;
    当未能获取标识字符时,表示接收到的超文本传输协议请求未满足识别样式。When the identification character is not obtained, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
  10. 如权利要求8所述的超文本传输协议请求识别方法,其特征在于,所述判断所述超文本传输协议请求是否满足识别样式包括:The hypertext transfer protocol request identification method according to claim 8, wherein the determining whether the hypertext transfer protocol request satisfies the recognition style comprises:
    是否可以在资源定位符之后获取标识字符;Whether the identifier character can be obtained after the resource locator;
    当未能获取标识字符时,表示接收到的超文本传输协议请求未满足识别样式。When the identification character is not obtained, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
    当能获取标识字符时,判断资源定位符与识别样式中资源定位符是否相同;When the identifier character can be obtained, it is determined whether the resource locator is the same as the resource locator in the recognition style;
    当相同时,表示接收到的超文本传输协议请求满足识别样式;When the same, it indicates that the received hypertext transfer protocol request satisfies the recognition pattern;
    当相同时,表示接收到的超文本传输协议请求未满足识别样式。 When the same, it indicates that the received Hypertext Transfer Protocol request does not satisfy the recognition pattern.
PCT/CN2017/077408 2016-04-20 2017-03-21 Hypertext transfer protocol request identification system and method WO2017181801A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610250038.3 2016-04-20
CN201610250038.3A CN105812481A (en) 2016-04-20 2016-04-20 Hypertext transfer protocol request identification system and hypertext transfer protocol request identification method

Publications (1)

Publication Number Publication Date
WO2017181801A1 true WO2017181801A1 (en) 2017-10-26

Family

ID=56458304

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077408 WO2017181801A1 (en) 2016-04-20 2017-03-21 Hypertext transfer protocol request identification system and method

Country Status (2)

Country Link
CN (1) CN105812481A (en)
WO (1) WO2017181801A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314104A (en) * 2018-12-12 2020-06-19 中国移动通信集团北京有限公司 Instant messaging service operation behavior identification method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871853A (en) * 2016-04-11 2016-08-17 上海斐讯数据通信技术有限公司 Portal authenticating method and system
CN105812481A (en) * 2016-04-20 2016-07-27 上海斐讯数据通信技术有限公司 Hypertext transfer protocol request identification system and hypertext transfer protocol request identification method
CN109698832B (en) * 2018-12-28 2021-07-23 杭州迪普科技股份有限公司 Method for rapidly providing Portal authentication and rapidly popping Portal authentication page and related equipment
CN111181963B (en) * 2019-12-30 2022-11-01 华数传媒网络有限公司 Authentication method based on port forwarding hypertext transfer protocol
CN113660667B (en) * 2021-10-18 2021-12-28 四川浮舟科技有限责任公司 Method and system for rapidly monitoring illegal hijacking for operator network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523296A (en) * 2011-12-21 2012-06-27 华为技术有限公司 Method, device and system for optimizing wireless webpage browsing resources
CN103152387A (en) * 2013-01-30 2013-06-12 中兴通讯股份有限公司 Device and method of obtaining hypertext transport protocol (HTTP) user behavior track
CN103973812A (en) * 2014-05-23 2014-08-06 上海斐讯数据通信技术有限公司 Service interface providing method and system based on uniform resource locator in HTTP
CN104394227A (en) * 2014-12-05 2015-03-04 北京奇虎科技有限公司 Method and system for transmitting user data of browser and browser
CN105812481A (en) * 2016-04-20 2016-07-27 上海斐讯数据通信技术有限公司 Hypertext transfer protocol request identification system and hypertext transfer protocol request identification method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825881B (en) * 2013-12-13 2017-05-31 福建三元达网络技术有限公司 The reorientation method and device of WLAN user are realized based on wireless access controller AC

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523296A (en) * 2011-12-21 2012-06-27 华为技术有限公司 Method, device and system for optimizing wireless webpage browsing resources
CN103152387A (en) * 2013-01-30 2013-06-12 中兴通讯股份有限公司 Device and method of obtaining hypertext transport protocol (HTTP) user behavior track
CN103973812A (en) * 2014-05-23 2014-08-06 上海斐讯数据通信技术有限公司 Service interface providing method and system based on uniform resource locator in HTTP
CN104394227A (en) * 2014-12-05 2015-03-04 北京奇虎科技有限公司 Method and system for transmitting user data of browser and browser
CN105812481A (en) * 2016-04-20 2016-07-27 上海斐讯数据通信技术有限公司 Hypertext transfer protocol request identification system and hypertext transfer protocol request identification method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314104A (en) * 2018-12-12 2020-06-19 中国移动通信集团北京有限公司 Instant messaging service operation behavior identification method and device
CN111314104B (en) * 2018-12-12 2022-11-25 中国移动通信集团北京有限公司 Method and device for identifying operation behaviors of instant messaging service

Also Published As

Publication number Publication date
CN105812481A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
WO2017181801A1 (en) Hypertext transfer protocol request identification system and method
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
US20220312166A1 (en) Network Access Method, Device, and System
CN105530175B (en) Message processing method, device and system
CN104158808B (en) Portal authentication method and its device based on APP applications
CN109688280B (en) Request processing method, request processing device, browser and storage medium
CN110072236B (en) Device connection method, device and system
US11711434B2 (en) Information transmission method and device
CN108234505A (en) The login method and system of account
CN102571857B (en) Method and system for realizing logging in XMPP (Xmlbased Messaging and Presence Protocol) server
US9253128B2 (en) Instant messaging with browser collaboration
CN105991640B (en) Handle the method and device of HTTP request
CN110505188B (en) Terminal authentication method, related equipment and authentication system
US20150365420A1 (en) A secure user interaction method performing defined actions on web resources over a separate channel and a system thereof
US10951616B2 (en) Proximity-based device authentication
CN104836812A (en) Portal authentication method, device and system
TWI621078B (en) Business object verification method and device
US11032272B2 (en) Mobile number verification for mobile network-based authentication
JP2014524615A (en) Method, device, and computer-readable storage medium for client interaction of network applications executed by a computer
WO2017181800A1 (en) Adaptive portal authentication page system based on operating system, and method for same
CN105812380A (en) Verification method and device
KR101518470B1 (en) Method for detecting a number of the devices of a plurality of client terminals selected by a web server from the internet request traffics sharing the public IP address and System for detecting selectively the same
EP3332562B1 (en) Optimizing setup for wireless devices
CN110856145B (en) IOT (Internet of things) equipment and user binding method, equipment and medium based on near field authentication
CN111262830B (en) Security authentication method, device, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
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: 17785286

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17785286

Country of ref document: EP

Kind code of ref document: A1