CN105516319B - The method and apparatus for managing HTTP message - Google Patents

The method and apparatus for managing HTTP message Download PDF

Info

Publication number
CN105516319B
CN105516319B CN201510933992.8A CN201510933992A CN105516319B CN 105516319 B CN105516319 B CN 105516319B CN 201510933992 A CN201510933992 A CN 201510933992A CN 105516319 B CN105516319 B CN 105516319B
Authority
CN
China
Prior art keywords
message
http
request message
http request
response message
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201510933992.8A
Other languages
Chinese (zh)
Other versions
CN105516319A (en
Inventor
蔡仕江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510933992.8A priority Critical patent/CN105516319B/en
Publication of CN105516319A publication Critical patent/CN105516319A/en
Application granted granted Critical
Publication of CN105516319B publication Critical patent/CN105516319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of method and apparatus for managing HTTP message.The method comprise the steps that the HTTP request message that receiving terminal apparatus is sent, wherein the HTTP request message is the message lower than 2.0 versions;When recognize carry upgrade field in the HTTP request message when, establish the corresponding relationship of the HTTP request message and preset traffic identifier, wherein HTTP message is upgraded to 2.0 versions for negotiating by the upgrade field;The HTTP request message is sent to server;The http response message that the server is sent is received, the http response message includes the message data of 2.0 versions;When the http response message includes the preset traffic identifier, determine that the http response message is the response message of the HTTP request message.

Description

The method and apparatus for managing HTTP message
Technical field
The present invention relates to mobile communication technology field more particularly to a kind of method and apparatus for managing HTTP message.
Background technique
Hypertext transfer protocol (English: Hyper Text Transfer Protocol, abbreviation: HTTP) is a terminal Between equipment and server request and response transmission control protocol (English: Transmission Control Protocol, Abbreviation: TCP).In general, terminal device initiates a request, the TCP connection for arriving server designated port, HTTP clothes are established The request message that is then sended in that port snoop terminal device of business device, and the response message of the request message is sent to end End equipment.
In request/response chain, mediation device, such as gateway (gateway), agency (proxy) or logical there is also Road (tunnel), for carrying out transfer to request message and response message.Specifically, request message is sent to by terminal device Gateway, then server is sent to by gateway.When server responds the request message, response message is sent to gateway, then by net Pass is sent to terminal device.
After mediation device receives the request message from terminal device and the response message from server, for management (such as carrying out charging) is needed, the request message of self terminal equipment in future is needed to be associated with the response message of the request message.
The common version of HTTP message is 1.1 versions in the prior art, and 2.0 versions are follow-on http protocols. The format of HTTP1.1 message and HTTP2.0 message is entirely different.In HTTP1.1 message, HTTP request message by request row, Request header, null and request data composition, http response message are made of statusline, message header and response data, net It closes and is asked HTTP request message with this according to the message header in the request header and http response message in HTTP request message The response message of message is asked to be associated with.
The basic agreement unit of HTTP2.0 is frame.Each frame has different type and purposes.For example, HEADERS frame and DATA frame constitutes basic HTTP request and http response.Multiplexing is requested in HTTP2.0 agreement, namely by one Distribute the response exchange of multiple HTTP requests on a stream, mediation device by the same stream with the identical request report being received sequentially Text is associated with response message.
However, wherein carrying upgrading in the request message when terminal device sends HTTP1.1 request message to server When negotiating field, and when server agrees to upgrading and sends HTTP2.0 response message to terminal device, mediation device can not should HTTP1.1 request message is associated with HTTP2.0 response message.
Summary of the invention
First aspect of the embodiment of the present invention provides a kind of method for managing HTTP message, comprising:
The HTTP request message that receiving terminal apparatus is sent, wherein the HTTP request message is Lower than the message of 2.0 versions;
When recognize carry upgrade field in the HTTP request message when, establish the HTTP request message with it is preset The corresponding relationship of traffic identifier, wherein HTTP message is upgraded to 2.0 versions for negotiating by the upgrade field;
The HTTP request message is sent to server;
The http response message that the server is sent is received, the http response message includes the message number of 2.0 versions According to;
When the http response message includes the preset traffic identifier, determine that the http response message is the HTTP The response message of request message.
With reference to first aspect, described by the HTTP request report in the first possible embodiment of first aspect Text is sent to server, before further include:
Determine the charging principle of the HTTP request message;
The determination http response message is the response message of the HTTP request message, later further include:
Charging is carried out according to response message of the charging principle to the HTTP request message.
With reference to first aspect, in second of possible embodiment of first aspect, the preset traffic identifier is 1.
With reference to first aspect, in the third possible embodiment of first aspect, the HTTP request message is GET Request message.
With reference to first aspect, described to establish the HTTP request in the 4th kind of possible embodiment of first aspect The corresponding relationship of message and preset traffic identifier, comprising:
Mapping table is established, the mapping table has the preset traffic identifier and message identification, and the message identification is for only The one mark HTTP request message.
Second aspect of the embodiment of the present invention provides a kind of device for managing HTTP message, comprising:
First receiving module, the HTTP request message sent for receiving terminal apparatus, wherein institute Stating HTTP request message is the message lower than 2.0 versions;
Establish module, for when recognize carry upgrade field in the HTTP request message when, establish the HTTP The corresponding relationship of request message and preset traffic identifier, wherein HTTP message is upgraded to 2.0 editions for negotiating by the upgrade field This;
Sending module, for the HTTP request message to be sent to server;
Second receiving module, the http response message sent for receiving the server, the http response message packet Include the message data of 2.0 versions;
Determining module, for determining the http response when the http response message includes the preset traffic identifier Message is the response message of the HTTP request message.
In conjunction with second aspect, in the first possible embodiment of second aspect, the dress of the management HTTP message Setting further includes message accounting, for determining the HTTP request report before the HTTP request message is sent to server The charging principle of text is also used to after determining the response message that the http response message is the HTTP request message, root Charging is carried out according to response message of the charging principle to the HTTP request message.
In conjunction with second aspect, in second of possible embodiment of second aspect, the preset traffic identifier is 1.
In conjunction with second aspect, in the third possible embodiment of second aspect, the HTTP request message is GET Request message.
In conjunction with second aspect, in the 4th kind of possible embodiment of second aspect, the module of establishing is specifically used for Mapping table is established, the mapping table has the preset traffic identifier and message identification, and the message identification is used for unique identification institute State HTTP request message.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the present embodiment, when HTTP request message is carried for negotiating to be upgraded to HTTP2.0, asked by establishing HTTP The corresponding relationship of message Yu preset traffic identifier is sought, so as in the response message for receiving the response data including HTTP2.0 version When, it, can be by the HTTP2.0 response message and lower than 2.0 editions if carrying the preset traffic identifier in the HTTP2.0 response message In this HTTP request message association, the management convenient for mediation device to HTTP message.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of one embodiment of communication system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of one embodiment of the method for the management HTTP message of communication system shown in Fig. 1;
Fig. 3 is the flow diagram of one embodiment of the method for management HTTP message of the invention;
Fig. 4 is the structural schematic diagram of one embodiment of the device of management HTTP message of the invention;
Fig. 5 is the structural schematic diagram of another embodiment of the device of management HTTP message of the invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and Their any deformations, it is intended that cover and non-exclusive include.Such as contain a series of steps or units process, method, System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or Unit, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
To facilitate understanding of the present embodiment of the invention, the communication system that can be introduced in description of the embodiment of the present invention is introduced herein first System.As shown in FIG. 1, FIG. 1 is the structural schematic diagrams of one embodiment of communication system provided in an embodiment of the present invention.Communication system Including terminal device 11, mediation device 12 and server 13.Wherein, terminal device refers to the client for being equipped with application program Equipment, such as mobile phone, computer, notebook, smartwatch etc..Mediation device 12 can be gateway (gateway), agency (proxy) or channel (tunnel), this is not restricted.
Referring to Fig. 2, Fig. 2 is the process of one embodiment of the method for the management HTTP message of communication system shown in Fig. 1 Schematic diagram.Referring to Fig. 2, the process that Fig. 2 is one embodiment of the method for the management HTTP message of communication system shown in Fig. 2 is shown It is intended to.
S21, terminal device and server establish TCP connection.
S22, terminal device send HTTP request message to mediation device.
In the present embodiment, which is the message lower than 2.0 versions.Specifically, the HTTP request message can To be the request message of 0.9 version, 1.0 versions or 1.1 versions, this is not restricted.It is carried in the HTTP request message Http protocol is upgraded to 2.0 versions for negotiating with server by upgrade field.Specifically, the upgrade field may include The keywords such as upgrade or HTTP2-settings.
There are many HTTP request methods, for example, GET, POST, HEAD, PUT, DELETE, OPTIONS, TRACE, CONNECT.In the present embodiment, the requesting method of HTTP request message be GET or other, this is not restricted.
S23, mediation device receive HTTP request message.
S24, mediation device obtain uniform resource locator from the HTTP request message.
Uniform resource locator (English: Uniform Resource Locator, abbreviation: URL) is to can be from interconnection The position of the resource obtained on the net and a kind of succinct expression of access method, are the addresses of standard resource on internet.URL In the request row of HTTP request message.After mediation device receives HTTP request message, DPI solution is carried out to the request message Analysis.Wherein, how mediation device carries out DPI to message and resolves to the prior art, and details are not described herein.Mediation device is according to DPI Parsing result gets the URL in HTTP request message.
S25, mediation device determine the charging principle of the HTTP request message according to URL.
Specifically, being stored with corresponding charging principle for different URL in mediation device.Mediation device gets URL Afterwards, charging principle corresponding with the URL is found.
S26, when mediation device recognizes and carries upgrade field in the HTTP request message, establish the HTTP and ask Seek the corresponding relationship of message Yu preset traffic identifier.
Mediation device receives at least one HTTP request message.After carrying out DPI parsing to each HTTP request message, if It recognizes when carrying upgrade field in HTTP request message, the HTTP request message is established in mediation device and is failed to be sold at auction with preset The corresponding relationship of knowledge.It is noted that mediation device does not change HTTP request message in the present embodiment.It, should in the present embodiment Preset traffic identifier is traffic identifier of the server to the response message when response message of the HTTP request message is 2.0 version.
Specifically, the corresponding relationship of HTTP request message Yu preset traffic identifier can be established by way of establishing mapping table, Wherein, which has the preset traffic identifier and message identification, and the message identification is asked for HTTP described in unique identification Seek message.
In practical application, since terminal device is after establishing TCP connection with server, HTTP2.0 is upgraded to from HTTP1.1 Request can all receive one 1 mark stream response.Therefore, the preset traffic identifier in the present embodiment is traditionally arranged to be 1.When So, however not excluded that send when rule changes later receive a mark not for 1 from the request that HTTP1.1 is upgraded to HTTP2.0 and The case where being the response of the stream of other numerical value, the preset traffic identifier only need to accordingly be changed to the numerical value.
It is noted that there is no inevitable sequencing between the step S26 in the present embodiment and step S25.
The HTTP request message is sent to server by S27, mediation device.
S28, server receive HTTP request message, send the response message of the HTTP request message.
After server receives HTTP request message, when detecting the upgrade field in the request message, if server HTTP2.0 agreement is not supported, then directly in response to the http response message of 1.1 versions;If server supports HTTP2.0 agreement, Return to one 101 (translation-protocol) response first to receive upgrade request.After the response of 101 empty contents terminates, server starts Send HTTP2.0 response message, wherein in the HTTP2.0 response message, head response may remain as the HTTP request message institute Belong to the message response head of version, response data is the message data of 2.0 versions.Message data in the HTTP2.0 response message Including the requested data of HTTP request message.Specifically, the http response message is setting frame or header Frame, this is not restricted.Frame header fields in frame carry traffic identifier (Stream Identifier).S29, mediation device The http response message for receiving server determines the HTTP when the http response message includes the preset traffic identifier Response message is the response message of the HTTP request message.
Mediation device receives at least one response message that server is sent.If response message is 1.1 versions or 1.1 editions Or less version message, then directly asked according to rule in the prior art by what the response message and the response message were responded Message is asked to be associated with.If response message includes the message data of 2.0 versions, when in the message include mediation device in preset stream When mark, determine that http response message is the response message of the HTTP request message in step 26, and by the HTTP request message It is associated with the http response message.The response of S210, mediation device according to the charging principle to the HTTP request message Message carries out charging.
Since mediation device has determined charging principle according to HTTP request message, determining that the request message is corresponding After response message, charging is carried out to the data in the response message using the charging principle.How charging is the prior art, herein It repeats no more.
Http response message is sent to terminal device by S211, mediation device.
In the present embodiment, when HTTP request message is carried for negotiating to be upgraded to HTTP2.0, asked by establishing HTTP The corresponding relationship of message Yu preset traffic identifier is sought, to be reported if the HTTP2.0 is responded when receiving HTTP2.0 response message The preset traffic identifier is carried in text, then the HTTP2.0 response message can be associated with the HTTP request message lower than 2.0 versions On, the management convenient for mediation device to HTTP message.
In practical application, mediation device, which needs to associate HTTP request message and its response message, to be not merely used in Mediation device carries out message in the process of charging, can also be used in in other management of message, this is not restricted.
Above by Fig. 1 to Fig. 2 to the workflow in the embodiment and communication system of communication system of the invention Each embodiment is described.The method of the management HTTP message in the present invention is described below, is executed real shown in Fig. 3 The executing subject for applying the method for the management HTTP message in example can be mediation device in Fig. 1 and embodiment illustrated in fig. 2.
Referring to Fig. 3, one embodiment of the method for management HTTP message of the invention, comprising:
301, the HTTP request message that receiving terminal apparatus is sent, wherein the HTTP request report Text is the message lower than 2.0 versions.
In the present embodiment, terminal device can be the terminal device in Fig. 1 and embodiment illustrated in fig. 2.
302, when recognize carry upgrade field in the HTTP request message when, establish the HTTP request message with The corresponding relationship of preset traffic identifier, wherein HTTP message is upgraded to 2.0 versions for negotiating by the upgrade field.
303, the HTTP request message is sent to server.
304, the http response message that the server is sent is received, the http response message includes the report of 2.0 versions Literary data.
305, when the http response message includes the preset traffic identifier, determine that the http response message is described The response message of HTTP request message.
In the present embodiment, when HTTP request message is carried for negotiating to be upgraded to the field of HTTP2.0, pass through foundation The corresponding relationship of HTTP request message and preset traffic identifier, so as in the sound for receiving the response data including HTTP2.0 version It, can be by the HTTP2.0 response message and low if carrying the preset traffic identifier in the HTTP2.0 response message when answering message In the management in the HTTP request message association of 2.0 versions, convenient for mediation device to HTTP message.
The explanation of the present embodiment can illustrate to be understood, not do herein with the description of embodiment illustrated in fig. 2 refering to fig. 1 It repeats more.
Optionally, in the present embodiment, the HTTP request message is sent to server in step 303, before further include:
41, the charging principle of the HTTP request message is determined;
Determine that the http response message is the response message of the HTTP request message in step 305, later further include:
42, charging is carried out according to response message of the charging principle to the HTTP request message.
Optionally, in the present embodiment, the preset traffic identifier is 1.
Optionally, in the present embodiment, the HTTP request message is GET request message.
Optionally, in step 302, described to establish the HTTP request message and preset traffic identifier in the present embodiment Corresponding relationship, comprising:
Mapping table is established, the mapping table has the preset traffic identifier and message identification, and the message identification is for only The one mark HTTP request message.
The method of the management HTTP message in the embodiment of the present invention is described above, below to the embodiment of the present invention In the device of management HTTP message be described.
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of one embodiment of the device of management HTTP message of the invention.This In embodiment, the device 400 for managing HTTP message includes:
First receiving module 401, for receiving terminal apparatus send HTTP request message, In, the HTTP request message is the message lower than 2.0 versions;
Establish module 402, for when recognize carry upgrade field in the HTTP request message when, described in foundation The corresponding relationship of HTTP request message and preset traffic identifier, wherein the upgrade field upgrades to HTTP message for negotiating 2.0 version;
Sending module 403, for the HTTP request message to be sent to server;
Second receiving module 404, the http response message sent for receiving the server, the http response message Message data including 2.0 versions;
Determining module 405, for when the http response message includes the preset traffic identifier, determining that the HTTP is rung Answering message is the response message of the HTTP request message.
Optionally, the device 400 of the management HTTP message further includes accounting module 406, for asking by the HTTP It asks message to be sent to before server, determines the charging principle of the HTTP request message, be also used to determining the HTTP sound After answering the response message that message is the HTTP request message, according to the charging principle to the sound of the HTTP request message Message is answered to carry out charging.
Optionally, the preset traffic identifier is 1.
Optionally, the HTTP request message is GET request message.
Optionally, the module 402 of establishing is specifically used for establishing mapping table, and the mapping table has the preset traffic identifier And message identification, the message identification is for HTTP request message described in unique identification.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another embodiment of the device of management HTTP message of the invention. In the present embodiment, the device 500 for managing HTTP message includes memory 501, one or more processors 502 and one or more A program, wherein one or more of programs are stored in the memory 501 and are configured as by one or more A processor 502 executes.In some embodiments of the invention, memory 501 and one or more processors 502 can be by total Line or other means connection, wherein in Fig. 5 for being connected by bus 504.
The processor 502 calls one or more of programs, executes following operation:
The HTTP request message that receiving terminal apparatus is sent, wherein the HTTP request message is Lower than the message of 2.0 versions;
When recognize carry upgrade field in the HTTP request message when, establish the HTTP request message with it is preset The corresponding relationship of traffic identifier, wherein HTTP message is upgraded to 2.0 versions for negotiating by the upgrade field;
The HTTP request message is sent to server;
The http response message that the server is sent is received, the http response message includes the message number of 2.0 versions According to;
When the http response message includes the preset traffic identifier, determine that the http response message is the HTTP The response message of request message.
Optionally, the processor 502 is before being sent to server for the HTTP request message, also determine described in The charging principle of HTTP request message, determine the http response message be the HTTP request message response message it Afterwards, charging is carried out also according to response message of the charging principle to the HTTP request message.
Optionally, the preset traffic identifier is 1.
Optionally, the HTTP request message is GET request message.
Optionally, the processor 502 is when establishing the corresponding relationship of the HTTP request message and preset traffic identifier, tool Body has the preset traffic identifier and message identification for establishing mapping table, the mapping table, and the message identification is for unique Identify the HTTP request message.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method for managing HTTP message characterized by comprising
Receiving terminal apparatus send HTTP request message, wherein the HTTP request message be lower than The message of 2.0 versions;
When recognize carry upgrade field in the HTTP request message when, establish the HTTP request message and fail to be sold at auction with preset The corresponding relationship of knowledge, wherein HTTP message is upgraded to 2.0 versions for negotiating by the upgrade field;
The HTTP request message is sent to server;
The http response message that the server is sent is received, the http response message includes the message data of 2.0 versions;
When the http response message includes the preset traffic identifier, determine that the http response message is the HTTP request The response message of message.
2. the method for management HTTP message according to claim 1, which is characterized in that described by the HTTP request message It is sent to server, before further include:
Determine the charging principle of the HTTP request message;
The determination http response message is the response message of the HTTP request message, later further include:
Charging is carried out according to response message of the charging principle to the HTTP request message.
3. the method for management HTTP message according to claim 1, which is characterized in that the preset traffic identifier is 1.
4. the method for management HTTP message according to claim 1, which is characterized in that the HTTP request message is GET Request message.
5. the method for management HTTP message according to claim 1, which is characterized in that described to establish the HTTP request report The literary corresponding relationship with preset traffic identifier, comprising:
Mapping table is established, the mapping table has the preset traffic identifier and message identification, and the message identification is for uniquely marking Know the HTTP request message.
6. a kind of device for managing HTTP message characterized by comprising
First receiving module, the HTTP request message sent for receiving terminal apparatus, wherein described HTTP request message is the message lower than 2.0 versions;
Establish module, for when recognize carry upgrade field in the HTTP request message when, establish the HTTP request The corresponding relationship of message and preset traffic identifier, wherein HTTP message is upgraded to 2.0 versions for negotiating by the upgrade field;
Sending module, for the HTTP request message to be sent to server;
Second receiving module, the http response message sent for receiving the server, the http response message include 2.0 The message data of version;
Determining module, for determining the http response message when the http response message includes the preset traffic identifier For the response message of the HTTP request message.
7. the device of management HTTP message according to claim 6, which is characterized in that the device of the management HTTP message It further include message accounting, for determining the HTTP request message before the HTTP request message is sent to server Charging principle, be also used to determine the http response message be the HTTP request message response message after, according to The charging principle carries out charging to the response message of the HTTP request message.
8. the device of management HTTP message according to claim 6, which is characterized in that the preset traffic identifier is 1.
9. the device of management HTTP message according to claim 6, which is characterized in that the HTTP request message is GET Request message.
10. the device of management HTTP message according to claim 6, which is characterized in that the module of establishing is specifically used for Mapping table is established, the mapping table has the preset traffic identifier and message identification, and the message identification is used for unique identification institute State HTTP request message.
CN201510933992.8A 2015-12-15 2015-12-15 The method and apparatus for managing HTTP message Active CN105516319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510933992.8A CN105516319B (en) 2015-12-15 2015-12-15 The method and apparatus for managing HTTP message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510933992.8A CN105516319B (en) 2015-12-15 2015-12-15 The method and apparatus for managing HTTP message

Publications (2)

Publication Number Publication Date
CN105516319A CN105516319A (en) 2016-04-20
CN105516319B true CN105516319B (en) 2019-02-19

Family

ID=55723949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510933992.8A Active CN105516319B (en) 2015-12-15 2015-12-15 The method and apparatus for managing HTTP message

Country Status (1)

Country Link
CN (1) CN105516319B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429724B (en) * 2017-02-15 2022-06-03 贵州白山云科技股份有限公司 Method and device for selecting encryption suite in handshake processing process
CN110166506B (en) * 2018-02-12 2021-11-19 ***通信有限公司研究院 Method for connecting hypertext transfer protocol Http and node equipment
CN112055020A (en) * 2020-09-04 2020-12-08 北京明朝万达科技股份有限公司 Message screening method and device and data transmission system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505307A (en) * 2009-03-09 2009-08-12 华为技术有限公司 Message processing method, network node and system oriented to service architecture
CN102004639A (en) * 2010-09-28 2011-04-06 深圳市共进电子有限公司 Embedded script generation module and method for generating embedded script
CN102938782A (en) * 2012-10-30 2013-02-20 中兴通讯股份有限公司 Message processing method, device and system
CN104918072A (en) * 2014-03-14 2015-09-16 奥多比公司 Low latency live video streaming

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4977624B2 (en) * 2005-01-18 2012-07-18 ヤフー! インコーポレイテッド Matching and ranking of sponsored search listings that incorporate web search technology and web content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505307A (en) * 2009-03-09 2009-08-12 华为技术有限公司 Message processing method, network node and system oriented to service architecture
CN102004639A (en) * 2010-09-28 2011-04-06 深圳市共进电子有限公司 Embedded script generation module and method for generating embedded script
CN102938782A (en) * 2012-10-30 2013-02-20 中兴通讯股份有限公司 Message processing method, device and system
CN104918072A (en) * 2014-03-14 2015-09-16 奥多比公司 Low latency live video streaming

Also Published As

Publication number Publication date
CN105516319A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
US7702317B2 (en) System and method to query wireless network offerings
CN102904959B (en) Network accelerating method and gateway
CN107463453B (en) Method, device, equipment and storage medium for communication between different applications of same terminal
CN102195882B (en) According to method and the device of the routing of data flow application type
CN104219127A (en) Creation method and device of virtual network instance
CN103535011A (en) Routing method, device, and system in content delivery network (CDN)
CN105516319B (en) The method and apparatus for managing HTTP message
CN107203470B (en) Page adjustment method and device
CN105871723A (en) Data transmission method, device and system
CN109981745A (en) A kind of journal file processing method and server
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN105099769A (en) Method, device and system for processing abnormal operations of service platform
CN111083204B (en) File transmission method, device and storage medium
CN104518968A (en) Message processing method and transparent proxy server
CN105282094B (en) A kind of collecting method and system
CN105281987B (en) Router and data uploading method, device, system
CN104969521A (en) Data sending and processing method and router
CN109150844A (en) Determine the methods, devices and systems of digital certificate
CN105245446B (en) A kind of file transmitting method and gateway
CN107483294B (en) Method and device for monitoring network request
KR20130072907A (en) Method and system for shortening url
CN102918527B (en) Investigation method and system for web application hosting
CN110324436A (en) A kind of Proxy Method and device of transport-layer proxy
CN106210176B (en) Information-pushing method, apparatus and system
CN104822140A (en) Data query method and network communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant