CN105516319A - Method and device for managing HTTP messages - Google Patents

Method and device for managing HTTP messages Download PDF

Info

Publication number
CN105516319A
CN105516319A CN201510933992.8A CN201510933992A CN105516319A CN 105516319 A CN105516319 A CN 105516319A CN 201510933992 A CN201510933992 A CN 201510933992A CN 105516319 A CN105516319 A CN 105516319A
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.)
Granted
Application number
CN201510933992.8A
Other languages
Chinese (zh)
Other versions
CN105516319B (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)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and a device for managing HTTP messages. The method provided by the embodiment of the invention comprises the steps of receiving a hyper text transfer protocol (HTTP) request message sent by a terminal device, wherein the HTTP request message is the message with the version lower than 2.0; when recognizing that the HTTP request message carries an update field, establishing a corresponding relationship between the HTTP request message and a preset flow identifier, wherein the update field is used for updating the version of HTTP message to be 2.0 through negotiation; sending the HTTP request message to a server; receiving an HTTP response message sent by the server, wherein the HTTP response message comprises messages data with the version of 2.0; and when the HTTP response message comprises the preset flow identifier, determining that the HTTP response message is the response message of the HTTP request message.

Description

The method and apparatus of management HTTP message
Technical field
The present invention relates to mobile communication technology field, particularly relate to a kind of method and apparatus managing HTTP message.
Background technology
HTML (Hypertext Markup Language) is (English: HyperTextTransferProtocol, abbreviation: HTTP) be the transmission control protocol of asking between terminal equipment and server and reply (English: TransmissionControlProtocol, an abbreviation: TCP).Usually, a request initiated by terminal equipment, sets up a TCP to server designated port and connects, and http server is then at the request message that port monitor terminal equipment sends over, and the response message sending this request message is to terminal equipment.
In request/response chain, also there will be mediation device, such as gateway (gateway), agency (proxy) or passage (tunnel), for carrying out transfer to request message and response message.Specifically, request message is sent to gateway by terminal equipment, then is sent to server by gateway.When server responds this request message, response message is sent to gateway, then is sent to terminal equipment by gateway.
After mediation device receives the request message from terminal equipment and the response message from server, for the needs (such as carrying out charging) of management, the request message of self terminal equipment is in the future needed to associate with the response message of this request message.
In prior art, the conventional version of HTTP message is 1.1 versions, and 2.0 versions are follow-on http protocols.The form of HTTP1.1 message and HTTP2.0 message is completely different.In HTTP1.1 message, HTTP request message is made up of request line, request header, null and request msg, http response message is made up of statusline, message header and response data, and HTTP request message associates with the response message of this request message with the message header in http response message according to the request header in HTTP request message by gateway.
The basic agreement unit of HTTP2.0 is frame.Each frame has different types and purposes.Such as, HEADERS frame and DATA frame constitute basic HTTP request and http response.Ask multiplexed in HTTP2.0 agreement, also namely exchange by distributing the response of multiple HTTP request on a stream, mediation device associates in same stream with response message with the identical request message be received sequentially.
But, when terminal equipment sends HTTP1.1 request message to server, when wherein carrying upgrading negotiation field in this request message, and server agree to upgrading and to terminal equipment send HTTP2.0 response message time, this HTTP1.1 request message cannot associate with HTTP2.0 response message by mediation device.
Summary of the invention
Embodiment of the present invention first aspect provides a kind of method managing HTTP message, comprising:
The HTTP request message that receiving terminal apparatus sends, wherein, described HTTP request message is the message lower than 2.0 versions;
When recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier, wherein, described upgrade field be used for consult HTTP message is upgraded to 2.0 versions;
Described HTTP request message is sent to server;
Receive the http response message that described server sends, described http response message comprises the message data of 2.0 versions;
When described http response message comprises described preset traffic identifier, determine that described http response message is the response message of described HTTP request message.
In conjunction with first aspect, in the first possible execution mode of first aspect, described described HTTP request message is sent to server, also comprises before:
Determine the charging principle of described HTTP request message;
Describedly determine that described http response message is the response message of described HTTP request message, also comprise afterwards:
Charging is carried out according to the response message of described charging principle to described HTTP request message.
In conjunction with first aspect, in the execution mode that the second of first aspect is possible, described preset traffic identifier is 1.
In conjunction with first aspect, in the third possible execution mode of first aspect, described HTTP request message is GET request message.
In conjunction with first aspect, in the 4th kind of possible execution mode of first aspect, the described corresponding relation setting up described HTTP request message and preset traffic identifier, comprising:
Set up mapping table, described mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.
Embodiment of the present invention second aspect provides a kind of device managing HTTP message, comprising:
First receiver module, for the HTTP request message that receiving terminal apparatus sends, wherein, described HTTP request message is the message lower than 2.0 versions;
Set up module, for when recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier, wherein, described upgrade field be used for consult HTTP message is upgraded to 2.0 versions;
Sending module, for being sent to server by described HTTP request message;
Second receiver module, for receiving the http response message that described server sends, described http response message comprises the message data of 2.0 versions;
Determination module, for when described http response message comprises described preset traffic identifier, determines that described http response message is the response message of described HTTP request message.
In conjunction with second aspect, in the first possible execution mode of second aspect, the device of described management HTTP message also comprises message accounting, for before described HTTP request message is sent to server, determine the charging principle of described HTTP request message, also for after determining that described http response message is the response message of described HTTP request message, carry out charging according to the response message of described charging principle to described HTTP request message.
In conjunction with second aspect, in the execution mode that the second of second aspect is possible, described preset traffic identifier is 1.
In conjunction with second aspect, in the third possible execution mode of second aspect, described HTTP request message is GET request message.
In conjunction with second aspect, in the 4th kind of possible execution mode of second aspect, described module of setting up is specifically for setting up mapping table, and described mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.。
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In the present embodiment, when HTTP request message carries for consulting to be upgraded to HTTP2.0, by setting up the corresponding relation of HTTP request message and preset traffic identifier, so that when receiving the response message of the response data comprising HTTP2.0 version, if carry this preset traffic identifier in this HTTP2.0 response message, then this HTTP2.0 response message can be associated with the HTTP request message lower than 2.0 versions, be convenient to the management of mediation device to HTTP message.
Accompanying drawing explanation
The structural representation of an embodiment of the communication system that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of an embodiment of the method for the management HTTP message that Fig. 2 is communication system shown in Fig. 1;
Fig. 3 is the schematic flow sheet of an embodiment of the method for management HTTP message of the present invention;
Fig. 4 is the structural representation of an embodiment of the device of management HTTP message of the present invention;
Fig. 5 is the structural representation of another embodiment of the device of management HTTP message of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " 4th " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing different objects, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic step of these processes, method, product or equipment or unit.
To facilitate understanding of the present embodiment of the invention, first introduce during the embodiment of the present invention describes at this communication system that can introduce.As shown in Figure 1, the structural representation of an embodiment of communication system that provides for the embodiment of the present invention of Fig. 1.Communication system comprises terminal equipment 11, mediation device 12 and server 13.Wherein, terminal equipment refers to the equipment of the client being provided with application program, such as mobile phone, computer, notebook, intelligent watch etc.Mediation device 12 can be gateway (gateway), agency (proxy) or passage (tunnel), and this is not restricted.
Refer to Fig. 2, the schematic flow sheet of an embodiment of the method for the management HTTP message that Fig. 2 is communication system shown in Fig. 1.Refer to Fig. 2, the schematic flow sheet of an embodiment of the method for the management HTTP message that Fig. 2 is communication system shown in Fig. 2.
S21, terminal equipment and server are set up TCP and are connected.
S22, terminal equipment send HTTP request message to mediation device.
In the present embodiment, this HTTP request message is the message lower than 2.0 versions.Concrete, this HTTP request message can be the request message of 0.9 version, 1.0 versions or 1.1 versions, and this is not restricted.Upgrade field is carried, for http protocol being upgraded to 2.0 versions with server negotiate in this HTTP request message.Concrete, this upgrade field can comprise the keywords such as upgrade or HTTP2-settings.
HTTP request method has multiple, such as 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 URL(uniform resource locator) from described HTTP request message.
URL(uniform resource locator) (English: UniformResourceLocator, abbreviation: URL) being a kind of expression succinctly of position to the resource that can obtain from the Internet and access method, is the address of standard resource on the Internet.URL is arranged in the request line of HTTP request message.After mediation device receives HTTP request message, DPI parsing is carried out to this request message.Wherein, how mediation device carries out DPI to message resolves to prior art, does not repeat them here.Mediation device gets the URL in HTTP request message according to DPI analysis result.
S25, mediation device determine the charging principle of described HTTP request message according to URL.
Concrete, store corresponding charging principle for different URL in mediation device.After mediation device gets URL, find the charging principle corresponding with this URL.
S26, when mediation device recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier.
Mediation device receives at least one HTTP request message.After DPI parsing is carried out to each HTTP request message, when carrying upgrade field if recognize in HTTP request message, in mediation device, set up the corresponding relation of this HTTP request message and preset traffic identifier.It is noted that mediation device does not change HTTP request message in the present embodiment.In the present embodiment, the traffic identifier of this preset traffic identifier is server when being 2.0 version to the response message of this HTTP request message this response message.
Concrete, the mode by setting up mapping table sets up the corresponding relation of HTTP request message and preset traffic identifier, and wherein, this mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.
In practical application, because terminal equipment is being set up after TCP is connected with server, the request being upgraded to HTTP2.0 from HTTP1.1 all can receive the response of the stream of one 1 mark.Therefore, the preset traffic identifier in the present embodiment is traditionally arranged to be 1.Certainly, send the request receiving being upgraded to HTTP2.0 from HTTP1.1 when rule changes after not getting rid of and not be 1 but the situation of the response of the stream of other numerical value to a mark, this preset traffic identifier only needs correspondingly to change over this numerical value.
It is noted that there is no inevitable sequencing between step S26 in the present embodiment and step S25.
Described HTTP request message is sent to server by S27, mediation device.
S28, server receive HTTP request message, send the response message of this HTTP request message.
After server receives HTTP request message, when the upgrade field in this request message being detected, if server does not support HTTP2.0 agreement, then directly respond the http response message of 1.1 versions; If server supports HTTP2.0 agreement, then first return one 101 (translation-protocol) response and receive upgrade request.After 101 empty contents responses stop, server starts to send HTTP2.0 response message, and wherein, in this HTTP2.0 response message, head response may the still message response head of version belonging to this HTTP request message, and response data is the message data of 2.0 versions.Message data in this HTTP2.0 response message comprises the data that described HTTP request message is asked.Concrete, this http response message is setting frame or header frame, and this is not restricted.Frame header fields in frame carries traffic identifier (StreamIdentifier).The http response message of S29, mediation device reception server, when described http response message comprises described preset traffic identifier, determines that described http response message is the response message of described HTTP request message.
At least one response message that mediation device reception server sends.If response message is the message of 1.1 versions or the following version of 1.1 versions, then directly according to rule of the prior art, the request message that this response message and this response message respond to be associated.If response message comprises the message data of 2.0 versions, when comprising the preset traffic identifier in mediation device when this message, determine that http response message is the response message of the HTTP request message in step 26, and this HTTP request message is associated with this http response message.S210, mediation device carry out charging according to the response message of described charging principle to described HTTP request message.
Because mediation device determines charging principle according to HTTP request message, after determining the response message that this request message is corresponding, this charging principle is adopted to carry out charging to the data in this response message.How charging is prior art, does not repeat them here.
Http response message is sent to terminal equipment by S211, mediation device.
In the present embodiment, when HTTP request message carries for consulting to be upgraded to HTTP2.0, by setting up the corresponding relation of HTTP request message and preset traffic identifier, so that when receiving HTTP2.0 response message, if carry this preset traffic identifier in this HTTP2.0 response message, then this HTTP2.0 response message can be associated with the HTTP request message lower than 2.0 versions, be convenient to the management of mediation device to HTTP message.
In practical application, mediation device needs HTTP request message and response message thereof to associate and is not merely used in mediation device and carries out message in the flow process of charging, and also can be used in other management to message, this is not restricted.
By Fig. 1 to Fig. 2, each embodiment of the workflow in the embodiment of communication system of the present invention and communication system is described above.Below the method for the management HTTP message in the present invention is described, perform embodiment illustrated in fig. 3 in the executive agent of method of management HTTP message can be Fig. 1 and embodiment illustrated in fig. 2 in mediation device.
Refer to Fig. 3, an embodiment of the method for management HTTP message of the present invention, comprising:
301, the HTTP request message of receiving terminal apparatus transmission, wherein, described HTTP request message is the message lower than 2.0 versions.
In the present embodiment, terminal equipment can be Fig. 1 and embodiment illustrated in fig. 2 in terminal equipment.
302, when recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier, wherein, described upgrade field be used for consult HTTP message is upgraded to 2.0 versions.
303, described HTTP request message is sent to server.
304, receive the http response message that described server sends, described http response message comprises the message data of 2.0 versions.
305, when described http response message comprises described preset traffic identifier, determine that described http response message is the response message of described HTTP request message.
In the present embodiment, when HTTP request message carries for consulting the field being upgraded to HTTP2.0, by setting up the corresponding relation of HTTP request message and preset traffic identifier, so that when receiving the response message of the response data comprising HTTP2.0 version, if carry this preset traffic identifier in this HTTP2.0 response message, then this HTTP2.0 response message can be associated with the HTTP request message lower than 2.0 versions, be convenient to the management of mediation device to HTTP message.
The explanation of the present embodiment can consult Fig. 1 and description embodiment illustrated in fig. 2 explanation is understood, and does not do too much repeating herein.
Optionally, in the present embodiment, in step 303, described HTTP request message is sent to server, also comprises before:
41, the charging principle of described HTTP request message is determined;
Determine that described http response message is the response message of described HTTP request message in step 305, also comprise afterwards:
42, charging is carried out according to the response message of described charging principle to described HTTP request message.
Optionally, in the present embodiment, described preset traffic identifier is 1.
Optionally, in the present embodiment, described HTTP request message is GET request message.
Optionally, in the present embodiment, in step 302, the described corresponding relation setting up described HTTP request message and preset traffic identifier, comprising:
Set up mapping table, described mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.
Above the method for the management HTTP message in the embodiment of the present invention is described, below the device of the management HTTP message in the embodiment of the present invention is described.
Refer to Fig. 4, Fig. 4 is the structural representation of an embodiment of the device of management HTTP message of the present invention.In the present embodiment, the device 400 of management HTTP message comprises:
First receiver module 401, for the HTTP request message that receiving terminal apparatus sends, wherein, described HTTP request message is the message lower than 2.0 versions;
Set up module 402, for when recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier, wherein, described upgrade field be used for consult HTTP message is upgraded to 2.0 versions;
Sending module 403, for being sent to server by described HTTP request message;
Second receiver module 404, for receiving the http response message that described server sends, described http response message comprises the message data of 2.0 versions;
Determination module 405, for when described http response message comprises described preset traffic identifier, determines that described http response message is the response message of described HTTP request message.
Optionally, the device 400 of described management HTTP message also comprises accounting module 406, for before described HTTP request message is sent to server, determine the charging principle of described HTTP request message, also for after determining that described http response message is the response message of described HTTP request message, carry out charging according to the response message of described charging principle to described HTTP request message.
Optionally, described preset traffic identifier is 1.
Optionally, described HTTP request message is GET request message.
Optionally, described module 402 of setting up is specifically for setting up mapping table, and described mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.
Refer to Fig. 5, Fig. 5 is the structural representation of another embodiment of the device of management HTTP message of the present invention.In the present embodiment, the device 500 of management HTTP message comprises memory 501, one or more processor 502 and one or more program, and wherein said one or more program to be stored in described memory 501 and to be configured to be performed by described one or more processor 502.In some embodiments of the invention, memory 501 is connected by bus or alternate manner with one or more processor 502, wherein, to be connected by bus 504 in Fig. 5.
Described processor 502 calls described one or more program, performs following operation:
The HTTP request message that receiving terminal apparatus sends, wherein, described HTTP request message is the message lower than 2.0 versions;
When recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier, wherein, described upgrade field be used for consult HTTP message is upgraded to 2.0 versions;
Described HTTP request message is sent to server;
Receive the http response message that described server sends, described http response message comprises the message data of 2.0 versions;
When described http response message comprises described preset traffic identifier, determine that described http response message is the response message of described HTTP request message.
Optionally, described processor 502 is before being sent to server by described HTTP request message, also determine the charging principle of described HTTP request message, after determining that described http response message is the response message of described HTTP request message, also carry out charging according to the response message of described charging principle to described HTTP request message.
Optionally, described preset traffic identifier is 1.
Optionally, described HTTP request message is GET request message.
Optionally, described processor 502 is when setting up the corresponding relation of described HTTP request message and preset traffic identifier, specifically for setting up mapping table, described mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. manage a method for HTTP message, it is characterized in that, comprising:
The HTTP request message that receiving terminal apparatus sends, wherein, described HTTP request message is the message lower than 2.0 versions;
When recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier, wherein, described upgrade field be used for consult HTTP message is upgraded to 2.0 versions;
Described HTTP request message is sent to server;
Receive the http response message that described server sends, described http response message comprises the message data of 2.0 versions;
When described http response message comprises described preset traffic identifier, determine that described http response message is the response message of described HTTP request message.
2. the method for management HTTP message according to claim 1, is characterized in that, described described HTTP request message is sent to server, also comprises before:
Determine the charging principle of described HTTP request message;
Describedly determine that described http response message is the response message of described HTTP request message, also comprise afterwards:
Charging is carried out according to the response message of described charging principle to described HTTP request message.
3. the method for management HTTP message according to claim 1, is characterized in that, described preset traffic identifier is 1.
4. the method for management HTTP message according to claim 1, is characterized in that, described HTTP request message is GET request message.
5. the method for management HTTP message according to claim 1, is characterized in that, the described corresponding relation setting up described HTTP request message and preset traffic identifier, comprising:
Set up mapping table, described mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.
6. manage a device for HTTP message, it is characterized in that, comprising:
First receiver module, for the HTTP request message that receiving terminal apparatus sends, wherein, described HTTP request message is the message lower than 2.0 versions;
Set up module, for when recognize carry upgrade field in described HTTP request message time, set up the corresponding relation of described HTTP request message and preset traffic identifier, wherein, described upgrade field be used for consult HTTP message is upgraded to 2.0 versions;
Sending module, for being sent to server by described HTTP request message;
Second receiver module, for receiving the http response message that described server sends, described http response message comprises the message data of 2.0 versions;
Determination module, for when described http response message comprises described preset traffic identifier, determines that described http response message is the response message of described HTTP request message.
7. the device of management HTTP message according to claim 1, it is characterized in that, the device of described management HTTP message also comprises message accounting, for before described HTTP request message is sent to server, determine the charging principle of described HTTP request message, also for after determining that described http response message is the response message of described HTTP request message, carry out charging according to the response message of described charging principle to described HTTP request message.
8. the device of management HTTP message according to claim 1, is characterized in that, described preset traffic identifier is 1.
9. the device of management HTTP message according to claim 1, is characterized in that, described HTTP request message is GET request message.
10. the device of management HTTP message according to claim 1, it is characterized in that, described module of setting up is specifically for setting up mapping table, and described mapping table has described preset traffic identifier and message identification, and described message identification is used for HTTP request message described in unique identification.
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 true CN105516319A (en) 2016-04-20
CN105516319B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429724A (en) * 2017-02-15 2018-08-21 贵州白山云科技有限公司 The selection method and device of encryption suite during a kind of handshake process
CN110166506A (en) * 2018-02-12 2019-08-23 中国移动通信有限公司研究院 The connection method of hypertext transfer protocol Http and node device
CN112055020A (en) * 2020-09-04 2020-12-08 北京明朝万达科技股份有限公司 Message screening method and device and data transmission system

Citations (5)

* 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
US20100174710A1 (en) * 2005-01-18 2010-07-08 Yahoo! Inc. Matching and ranking of sponsored search listings incorporating web search technology and web content
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100174710A1 (en) * 2005-01-18 2010-07-08 Yahoo! Inc. Matching and ranking of sponsored search listings incorporating web search technology and web content
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429724A (en) * 2017-02-15 2018-08-21 贵州白山云科技有限公司 The selection method and device of encryption suite during a kind of handshake process
CN110166506A (en) * 2018-02-12 2019-08-23 中国移动通信有限公司研究院 The connection method of hypertext transfer protocol Http and node device
CN112055020A (en) * 2020-09-04 2020-12-08 北京明朝万达科技股份有限公司 Message screening method and device and data transmission system

Also Published As

Publication number Publication date
CN105516319B (en) 2019-02-19

Similar Documents

Publication Publication Date Title
US7702317B2 (en) System and method to query wireless network offerings
EP3481017A1 (en) Network slice selection method, apparatus and system
CN107809383B (en) MVC-based path mapping method and device
CN102904959B (en) Network accelerating method and gateway
CN107463453B (en) Method, device, equipment and storage medium for communication between different applications of same terminal
KR20180132287A (en) Method for automatic monitoring end to end performance of end-user and apparatus for using the same
US20120102479A1 (en) Automated service version upgrading
CN105516319A (en) Method and device for managing HTTP messages
CN105099769A (en) Method, device and system for processing abnormal operations of service platform
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
US20170111480A1 (en) Page insertion method and device
CN104518968A (en) Message processing method and transparent proxy server
CN115004650B (en) Node configuration method, node configuration device, distributed system and computer readable medium
CN105827424A (en) Data acquisition method and data acquisition device
CN102571688B (en) Device, system and method for synchronizing browser bookmark
CN112217845B (en) Data transmission method based on Netconf protocol and related equipment
CN105556918A (en) Resource downloading method, electronic device, and apparatus
CN107517247B (en) System and method for converting socket interface into http interface applied to financial industry
CN102571935B (en) A kind of method of transfer of data, client, server and system
CN109672732B (en) Interface adaptation method, device and system
CN107483294B (en) Method and device for monitoring network request
CN114070824B (en) Registration method of Internet of things equipment, registration cloud server and medium
CN113965571B (en) Management method, device, equipment and medium of distributed embedded equipment
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN102918527B (en) Investigation method and system for web application hosting

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