[go: up one dir, main page]

CN104038914B - A kind of method and device of Cookie error correction - Google Patents

A kind of method and device of Cookie error correction Download PDF

Info

Publication number
CN104038914B
CN104038914B CN201310075924.3A CN201310075924A CN104038914B CN 104038914 B CN104038914 B CN 104038914B CN 201310075924 A CN201310075924 A CN 201310075924A CN 104038914 B CN104038914 B CN 104038914B
Authority
CN
China
Prior art keywords
mobile terminal
cookie information
request message
service request
service
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
CN201310075924.3A
Other languages
Chinese (zh)
Other versions
CN104038914A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201310075924.3A priority Critical patent/CN104038914B/en
Priority to PCT/CN2013/082111 priority patent/WO2013189420A2/en
Publication of CN104038914A publication Critical patent/CN104038914A/en
Application granted granted Critical
Publication of CN104038914B publication Critical patent/CN104038914B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method of Cookie error correction, including:Determine the cookie information that carries in the business request information that mobile terminal is sent and the mobile terminal that prestores first service request when cookie information it is identical when, the cookie information carried in the mobile terminal service request message is sent to service provider SP;The cookie information for determining to carry in the business request information that the mobile terminal is sent and the mobile terminal that prestores first service request when cookie information it is different when, the cookie information carried in the mobile terminal service request message is substituted for the mobile terminal prestored first service request when cookie information, send to service provider SP.The invention also discloses a kind of device for the Cookie error correction for realizing the above method, technical solution using the present invention, improves user satisfaction.

Description

Cookie error correction method and device
Technical Field
The present invention relates to Wireless Application Protocol (WAP) technology, and in particular, to a method and apparatus for Cookie error correction.
Background
With the continuous development of mobile phones, the models of mobile phone browsers are gradually increased, WAP services of mobile phones are also rapidly developed, and because Hypertext transfer Protocol (HTTP) used in the WAP services is relatively open, there are many imperfect places in the processing aspect of mobile phone browsers, for example, a part of mobile phones carry wrong Cookie information when initiating a request, so that a mobile phone user cannot correctly access a corresponding Service Provider (SP); however, there are many types of mobile phones currently, and when the above problems occur, the operator cannot control all types of mobile phones one by one, and therefore cannot actively control the above problems, and a mobile phone manufacturer has a long processing period for the above problems, which lengthens a fault processing period of the mobile phone, and seriously affects the satisfaction of a user.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method and an apparatus for correcting a Cookie, which can solve the problem that a mobile terminal cannot access a corresponding SP because the mobile terminal carries wrong Cookie information, meet the practical requirements of a user in time, and improve the satisfaction of the user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a Cookie error correction method, which comprises the following steps:
determining that Cookie information carried in a service request message sent by a mobile terminal is the same as the prestored Cookie information when the mobile terminal requests for the first service, and sending the Cookie information carried in the service request message of the mobile terminal to a Service Provider (SP);
and when the Cookie information carried in the service request message sent by the mobile terminal is determined to be different from the Cookie information which is stored in advance when the mobile terminal requests the first service, replacing the Cookie information carried in the service request message of the mobile terminal with the Cookie information which is stored in advance when the mobile terminal requests the first service, and sending the Cookie information to a Service Provider (SP).
Preferably, the determining that the Cookie information carried in the service request message sent by the mobile terminal is the same as the pre-stored Cookie information when the mobile terminal requests for the first service includes:
determining that the number of the mobile terminal, the value of the Domain, the path and the name in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first time service are the same as the value of the Cookie information carried in the service request message sent by the mobile terminal, and when the Domain and the path in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first time service are the same as the Cookie information carried in the service request message sent by the mobile terminal, the Cookie information carried in the service request message sent by the mobile terminal is the same as the prestored Cookie information carried in the service request message sent by the mobile terminal.
Preferably, the determining that the Cookie information carried in the service request message sent by the mobile terminal is different from the pre-stored Cookie information when the mobile terminal requests for the first service includes:
determining that the number of the mobile terminal, the value of Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal are different from the value of the Cookie information carried in the service request message sent by the mobile terminal, wherein the value of the Domain, path and name values in the Cookie information is corresponding to the prestored Cookie information when the mobile terminal requests for the first service; and/or when the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal are different from the prestored Cookie information carried in the service request message sent by the mobile terminal in the information corresponding to the Cookie information when the mobile terminal requests for the first time of service, the Cookie information carried in the service request message sent by the mobile terminal is different from the prestored Cookie information when the mobile terminal accesses for the first time of service.
Preferably, the replacing the Cookie information carried in the mobile terminal service request message with the pre-stored Cookie information when the mobile terminal requests for the first service includes:
replacing a value in Cookie information carried in a service request message sent by the mobile terminal with a value corresponding to the mobile terminal number, the Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service; and/or the presence of a gas in the gas,
and replacing the Cookie information carried in the service request message sent by the mobile terminal with the corresponding information of the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service.
Preferably, the method further comprises:
when determining that the service request message sent by the mobile terminal does not carry Cookie information, forwarding the service request message sent by the mobile terminal to the SP;
and when a response message aiming at the service request message and sent by the SP is received, analyzing and storing the Cookie information in the response message, and sending the Cookie information to the mobile terminal.
Preferably, after forwarding the service request message sent by the mobile terminal to the SP, the method further includes:
and storing the mobile terminal identification information, the mobile terminal type information, the Domain information and the Path information in the mobile terminal service request message.
A Cookie error correction device comprises a storage module, a determination module, a replacement module and a sending module; wherein,
the storage module is used for storing Cookie information when the mobile terminal requests for the first service;
the determining module is used for determining whether the Cookie information carried in the service request message sent by the mobile terminal is the same as the Cookie information which is stored in the storage module in advance when the mobile terminal requests for the first service, and if so, the sending module is triggered and the replacing module is not triggered simultaneously;
the replacing module is used for replacing the Cookie information carried in the mobile terminal service request message with the prestored Cookie information when the mobile terminal requests for the first service and triggering the sending module;
the sending module is used for sending the Cookie information carried in the mobile terminal service request message to a Service Provider (SP); or sending the pre-stored Cookie information when the mobile terminal requests for the first service to the SP.
Preferably, the determining module is further configured to determine that the number of the mobile terminal, the value of Domain, path, and name in the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal makes a first service request are the same as the value of the Cookie information carried in the service request message sent by the mobile terminal, and the value of Domain and path in the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal makes a first service request are the same as the value of the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal makes a first service request, and the value of Domain and path in the service request message sent by the mobile terminal are the same as the value of the Cookie information carried in the service request message sent by the mobile terminal, and the Cookie information carried in the service request message sent by the mobile terminal is the same as the pre-stored Cookie information when the mobile terminal makes a first service request;
determining that the number of the mobile terminal, the value of Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal are different from the value of the Cookie information carried in the service request message sent by the mobile terminal, wherein the value of the Domain, path and name values in the Cookie information is corresponding to the prestored Cookie information when the mobile terminal requests for the first service; and/or when the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal are different from the prestored Cookie information carried in the service request message sent by the mobile terminal in the information corresponding to the Cookie information when the mobile terminal requests for the first time of service, the Cookie information carried in the service request message sent by the mobile terminal is different from the prestored Cookie information when the mobile terminal accesses for the first time of service.
Preferably, the replacing module is further configured to replace a value in Cookie information carried in a service request message sent by the mobile terminal with a value corresponding to the mobile terminal number, the Domain, path, and name values in the Cookie information carried in the service request message sent by the mobile terminal, in the Cookie information when the mobile terminal requests for the first service stored in advance; and/or the presence of a gas in the gas,
and the mobile terminal is further configured to replace the Cookie information carried in the service request message sent by the mobile terminal with the corresponding information of the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal requests for the first service.
Preferably, the apparatus further comprises a receiving unit and a parsing unit, wherein:
a receiving unit, configured to receive a response message sent by the SP for the service request message;
the analysis unit is used for analyzing the Cookie information in the response message;
the sending module is further configured to forward a service request message sent by the mobile terminal to the SP; and sending the Cookie information in the response message aiming at the service request message sent by the SP to the mobile terminal.
Preferably, the storage module is further configured to store the mobile terminal identification information, the mobile terminal type information, the Domain information, and the Path information in the mobile terminal service request message.
The method and the device for correcting the Cookie error increase the processing flow of the Cookie error correction on the basis of the Cookie processing flow specified by the original WAP gateway equipment, provide a friendly interface for an operator to set and manage, can access any SP by any mobile terminal to carry out the Cookie error correction, can meet the practical requirements of users in time and improve the satisfaction degree of the users.
Drawings
FIG. 1 is a schematic diagram of a flowchart of a Cookie error correction method according to the present invention;
fig. 2 is a schematic diagram of an implementation flow when a mobile terminal accesses a service in an SP for the first time;
fig. 3 is a schematic flow chart of the implementation process of performing Cookie error correction on the mobile terminal by using the method of the present invention when the mobile terminal accesses the SP again.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings.
Fig. 1 is a schematic flow chart of an implementation process of a Cookie error correction method of the present invention, as shown in fig. 1, the method includes:
step 101: determining that Cookie information carried in a service request message sent by a mobile terminal is the same as the prestored Cookie information when the mobile terminal requests for the first service, and sending the Cookie information carried in the service request message of the mobile terminal to a Service Provider (SP);
step 102: and when the Cookie information carried in the service request message sent by the mobile terminal is determined to be different from the Cookie information which is stored in advance when the mobile terminal requests the first service, replacing the Cookie information carried in the service request message of the mobile terminal with the Cookie information which is stored in advance when the mobile terminal requests the first service, and sending the Cookie information to a Service Provider (SP).
In the present invention, the determining that the Cookie information carried in the service request message sent by the mobile terminal is the same as the pre-stored Cookie information when the mobile terminal requests for the first service includes:
determining that the number of the mobile terminal, the value of the Domain, the path and the name in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first time service are the same as the value of the Cookie information carried in the service request message sent by the mobile terminal, and when the Domain and the path in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first time service are the same as the Cookie information carried in the service request message sent by the mobile terminal, the Cookie information carried in the service request message sent by the mobile terminal is the same as the prestored Cookie information carried in the service request message sent by the mobile terminal.
The determining that the Cookie information carried in the service request message sent by the mobile terminal is different from the prestored Cookie information when the mobile terminal requests for the first service comprises:
determining that the number of the mobile terminal, the value of Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal are different from the value of the Cookie information carried in the service request message sent by the mobile terminal, wherein the value of the Domain, path and name values in the Cookie information is corresponding to the prestored Cookie information when the mobile terminal requests for the first service; and/or when the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal are different from the prestored Cookie information carried in the service request message sent by the mobile terminal in the information corresponding to the Cookie information when the mobile terminal requests for the first time of service, the Cookie information carried in the service request message sent by the mobile terminal is different from the prestored Cookie information when the mobile terminal accesses for the first time of service.
The replacing the Cookie information carried in the mobile terminal service request message with the prestored Cookie information when the mobile terminal requests for the first service comprises:
replacing a value in Cookie information carried in a service request message sent by the mobile terminal with a value corresponding to the mobile terminal number, the Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service; and/or the presence of a gas in the gas,
and replacing the Cookie information carried in the service request message sent by the mobile terminal with the corresponding information of the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service.
When the service request message sent by the mobile terminal does not carry Cookie information, an operator server may determine that the mobile terminal accesses the SP through the operator server for the first time, and fig. 2 is a schematic diagram of an implementation flow when the mobile terminal accesses the service in the SP for the first time, where as shown in fig. 2, a processing flow when the mobile terminal accesses the service in the SP for the first time includes the following steps:
step 201: the mobile terminal sends a service request message to an operator server;
step 202: the operator server forwards a service request message sent by the mobile terminal to the SP;
step 203: the operator server stores the mobile terminal identification information, the mobile terminal type information, the Domain information and the Path information in the mobile terminal service request message;
step 204: and when the operator server receives a response message aiming at the service request message sent by the SP, analyzing and storing the Cookie information in the response message, and sending the Cookie information to the mobile terminal.
Here, the Cookie information is mainly Cookie information carried in Set-Cookie header information, and mainly includes: name, value, Domain, path, etc.;
the steps 201 to 204 are implementation procedures when the mobile terminal accesses the SP for the first time, and after the mobile terminal accesses the SP for the first time and the SP returns response information, the mobile terminal identification information, the mobile terminal type information, the Domain information, the Path information and the like are stored, and the Cookie information carried in the response information returned by the SP lays a foundation for subsequent Cookie error correction.
Compared with the prior Cookie processing flow, the method increases the Cookie error correction processing flow on the Cookie processing flow specified by the prior WAP gateway equipment, provides a way for analyzing and correcting the Cookie on the operator equipment for the mobile terminal supporting the Cookie, and ensures that an operator administrator can shorten the time for processing the mobile phone Cookie information carrying errors, improves the efficiency of the operator and further improves the satisfaction degree of users.
The essence of the technical solution of the present invention is further clarified by specific examples below.
Fig. 3 is a schematic flow chart of a process for implementing Cookie error correction on a mobile terminal by using the method of the present invention when the mobile terminal accesses the SP again, and as shown in fig. 3, the specific steps are as follows:
step 301: the operator server sets mobile terminal information and a trust SP, and stores the mobile terminal information and the trust SP;
here, the operator server can set the mobile terminal information and trust the SP through the operation maintenance and design interface module, so that the operation business provides a Cookie error correction process only for a user who accesses the specific SP by the specific mobile terminal;
step 302: the method comprises the steps that a mobile terminal sends a service request message to an operator server to request the mobile terminal to access a specific service in an SP;
step 303: the operator server judges whether the mobile terminal and the SP are contained in the mobile terminal information and the trust SP, if yes, step 304 is executed; otherwise, go to step 307;
step 304: the operator server corrects the Cookie information carried in the service request message sent by the mobile terminal, namely, the operator server judges whether the Cookie information carried in the service request message sent by the mobile terminal is the same as the Cookie information which is stored in advance when the mobile terminal requests for the first service, if so, the step 305 is executed; otherwise, go to step 306;
step 305: the operator server sends Cookie information carried in the mobile terminal service request message to the SP;
step 306: the operator server replaces Cookie information carried in the service request message sent by the mobile terminal with prestored Cookie information when the mobile terminal requests for the first service, and sends the replaced Cookie information to the SP;
step 307: and the operator server sends the Cookie information carried in the service request message sent by the mobile terminal to the SP.
In the invention, the error correction of the Cookie information carried in the request message of the mobile terminal requesting the SP again by the operator server comprises the following steps:
the operator server judges whether the Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal are the same as the prestored corresponding values in the Cookie information when the mobile terminal requests for the first service, if so, the step a is executed, otherwise, the step d is executed;
step a: if yes, executing step c; otherwise, executing step e;
step c: the operator server sends Cookie information carried in the service request message sent by the mobile terminal to the SP;
step d: the operator server replaces the value in the Cookie information carried in the service request message sent by the mobile terminal with the value corresponding to the mobile terminal number, the Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal in the Cookie information when the mobile terminal requests for the first service stored in advance; then executing the step a;
step e: and the operator server replaces the Cookie information carried in the service request message sent by the mobile terminal with the corresponding information of Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service, and then sends the Cookie information carried in the service request message sent by the mobile terminal to the SP.
Step 308: after the mobile terminal finishes the one-time access of the SP, sending offline request information to the operator server;
step 309: the operator server judges whether the Cookie information stored in advance when the mobile terminal requests for the first service contains an Expire parameter, if so, the step 310 is executed; otherwise, go to step 311;
step 310: the operator server stores the Cookie information when the mobile terminal requests for the first service and ends the current process;
step 311: and the operator server deletes the Cookie information which is prestored when the mobile terminal requests for the first service, and finishes the current flow.
The invention also discloses a Cookie error correction device, which comprises a storage module, a determination module, a replacement module and a sending module; wherein,
the storage module is used for storing Cookie information when the mobile terminal requests for the first service;
the determining module is used for determining whether the Cookie information carried in the service request message sent by the mobile terminal is the same as the Cookie information which is stored in the storage module in advance when the mobile terminal requests for the first service, and if so, the sending module is triggered and the replacing module is not triggered simultaneously;
the replacing module is used for replacing the Cookie information carried in the mobile terminal service request message with the prestored Cookie information when the mobile terminal requests for the first service and triggering the sending module;
the sending module is used for sending the Cookie information carried in the mobile terminal service request message to a Service Provider (SP); or sending the pre-stored Cookie information when the mobile terminal requests for the first service to the SP.
The determining module is further configured to determine that the number of the mobile terminal, the value of Domain, path, and name in the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal makes a first service request are the same as the value of the Cookie information carried in the service request message sent by the mobile terminal, and that the Domain and the path in the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal makes a first service request are the same as the Cookie information carried in the service request message sent by the mobile terminal, and that the Cookie information carried in the service request message sent by the mobile terminal is the same as the pre-stored Cookie information when the mobile terminal makes a first service request;
determining that the number of the mobile terminal, the value of Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal are different from the value of the Cookie information carried in the service request message sent by the mobile terminal, wherein the value of the Domain, path and name values in the Cookie information is corresponding to the prestored Cookie information when the mobile terminal requests for the first service; and/or when the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal are different from the prestored Cookie information carried in the service request message sent by the mobile terminal in the information corresponding to the Cookie information when the mobile terminal requests for the first time of service, the Cookie information carried in the service request message sent by the mobile terminal is different from the prestored Cookie information when the mobile terminal accesses for the first time of service.
The replacing module is further configured to replace a value in Cookie information carried in a service request message sent by the mobile terminal with a value corresponding to the mobile terminal number, the Domain, path, and name values in the Cookie information carried in the service request message sent by the mobile terminal, in the Cookie information stored in advance when the mobile terminal requests for the first service; and/or the presence of a gas in the gas,
and the mobile terminal is further configured to replace the Cookie information carried in the service request message sent by the mobile terminal with the corresponding information of the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal requests for the first service.
The device further comprises a receiving unit and an analyzing unit, wherein:
a receiving unit, configured to receive a response message sent by the SP for the service request message;
the analysis unit is used for analyzing the Cookie information in the response message;
the sending module is further configured to forward a service request message sent by the mobile terminal to the SP; and sending the Cookie information in the response message aiming at the service request message sent by the SP to the mobile terminal.
The invention can also provide an operation maintenance and design interface module for the operator, which is convenient for the operator to set the mobile terminal information and trust SP so as to provide the Cookie error correction process for the user of the specific mobile terminal accessing the specific SP.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (11)

1. A method for Cookie error correction, the method comprising:
judging whether Cookie information carried in a service request message sent by a mobile terminal is the same as the Cookie information which is stored in advance when the mobile terminal requests for the first service;
determining that Cookie information carried in a service request message sent by the mobile terminal is the same as the prestored Cookie information when the mobile terminal requests for the first service, and sending the Cookie information carried in the service request message of the mobile terminal to a Service Provider (SP);
and when the Cookie information carried in the service request message sent by the mobile terminal is determined to be different from the Cookie information which is stored in advance when the mobile terminal requests the first service, replacing the Cookie information carried in the service request message of the mobile terminal with the Cookie information which is stored in advance when the mobile terminal requests the first service, and sending the Cookie information to a Service Provider (SP).
2. The method of claim 1, wherein the determining that the Cookie information carried in the service request message sent by the mobile terminal is the same as the pre-stored Cookie information when the mobile terminal requests for the first service comprises:
determining that the value of the Domain, the path and the name in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service is the same as the value of the Cookie information carried in the service request message sent by the mobile terminal, and determining that the value of the Domain, the path and the name in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service is the same as the value of the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service, and the value of the Domain and the path in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information carried in the service request message sent by the mobile terminal in the.
3. The method according to claim 1, wherein the determining that the Cookie information carried in the service request message sent by the mobile terminal is different from the pre-stored Cookie information when the mobile terminal requests for the first service comprises:
determining that the value of the number of the mobile terminal, the Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service is different from the value in the Cookie information carried in the service request message sent by the mobile terminal; and/or when the information corresponding to the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service is different from the Cookie information carried in the service request message sent by the mobile terminal, the Cookie information carried in the service request message sent by the mobile terminal is different from the prestored Cookie information when the mobile terminal accesses for the first service.
4. The method of claim 1, wherein the replacing the Cookie information carried in the mobile terminal service request message with the pre-stored Cookie information when the mobile terminal requests for the first service comprises:
replacing a value in Cookie information carried in a service request message sent by the mobile terminal with a value corresponding to the mobile terminal number, the Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service; and/or the presence of a gas in the gas,
and replacing the Cookie information carried in the service request message sent by the mobile terminal with the corresponding information of the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service.
5. The method according to any one of claims 1 to 4, further comprising:
when determining that the service request message sent by the mobile terminal does not carry Cookie information, forwarding the service request message sent by the mobile terminal to the SP;
and when a response message aiming at the service request message and sent by the SP is received, analyzing and storing the Cookie information in the response message, and sending the Cookie information to the mobile terminal.
6. The method of claim 5, wherein after forwarding the service request message sent by the mobile terminal to the SP, the method further comprises:
and storing the mobile terminal identification information, the mobile terminal type information, the Domain information and the Path information in the mobile terminal service request message.
7. The device for correcting the Cookie error is characterized by comprising a storage module, a determination module, a replacement module and a sending module; wherein,
the storage module is used for storing Cookie information when the mobile terminal requests for the first service;
the determining module is used for determining whether the Cookie information carried in the service request message sent by the mobile terminal is the same as the Cookie information which is stored in the storage module in advance when the mobile terminal requests for the first service, and if so, the sending module is triggered and the replacing module is not triggered simultaneously;
the replacing module is used for replacing the Cookie information carried in the mobile terminal service request message with the prestored Cookie information when the mobile terminal requests for the first service and triggering the sending module;
the sending module is used for sending the Cookie information carried in the mobile terminal service request message to a Service Provider (SP); or sending the pre-stored Cookie information when the mobile terminal requests for the first service to the SP.
8. The apparatus of claim 7, wherein the determining module is further configured to determine a value corresponding to the number of the mobile terminal, the Domain, path, and name values in the Cookie information carried in the service request message sent by the mobile terminal, in the Cookie information when the mobile terminal requests for the first service, which is stored in advance, the value is the same as the value in the Cookie information carried in the service request message sent by the mobile terminal, and the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal correspond to the prestored Cookie information when the mobile terminal requests for the first service, and when the Cookie information carried in the service request message sent by the mobile terminal is the same, cookie information carried in a service request message sent by the mobile terminal is the same as the prestored Cookie information when the mobile terminal requests for the first service;
determining that the value of the number of the mobile terminal, the Domain, path and name values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service is different from the value in the Cookie information carried in the service request message sent by the mobile terminal; and/or when the information corresponding to the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the prestored Cookie information when the mobile terminal requests for the first service is different from the Cookie information carried in the service request message sent by the mobile terminal, the Cookie information carried in the service request message sent by the mobile terminal is different from the prestored Cookie information when the mobile terminal accesses for the first service.
9. The apparatus according to claim 7, wherein the replacing module is further configured to replace a value in Cookie information carried in a service request message sent by the mobile terminal with a value corresponding to the mobile terminal number, the Domain, path, and name values in the Cookie information carried in the service request message sent by the mobile terminal, in the Cookie information stored in advance when the mobile terminal requests for the first service; and/or the presence of a gas in the gas,
and the mobile terminal is further configured to replace the Cookie information carried in the service request message sent by the mobile terminal with the corresponding information of the Domain and path values in the Cookie information carried in the service request message sent by the mobile terminal in the pre-stored Cookie information when the mobile terminal requests for the first service.
10. The apparatus according to claim 7, 8 or 9, wherein the apparatus further comprises a receiving unit and a parsing unit, wherein:
a receiving unit, configured to receive a response message sent by the SP for the service request message;
the analysis unit is used for analyzing the Cookie information in the response message;
the sending module is further configured to forward a service request message sent by the mobile terminal to the SP; and sending the Cookie information in the response message aiming at the service request message sent by the SP to the mobile terminal.
11. The apparatus of claim 10,
the storage module is further configured to store the mobile terminal identifier information, the mobile terminal type information, the Domain information, and the Path information in the mobile terminal service request message.
CN201310075924.3A 2013-03-08 2013-03-08 A kind of method and device of Cookie error correction Active CN104038914B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310075924.3A CN104038914B (en) 2013-03-08 2013-03-08 A kind of method and device of Cookie error correction
PCT/CN2013/082111 WO2013189420A2 (en) 2013-03-08 2013-08-22 Cookie error correction method, device, and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310075924.3A CN104038914B (en) 2013-03-08 2013-03-08 A kind of method and device of Cookie error correction

Publications (2)

Publication Number Publication Date
CN104038914A CN104038914A (en) 2014-09-10
CN104038914B true CN104038914B (en) 2018-04-24

Family

ID=49769561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310075924.3A Active CN104038914B (en) 2013-03-08 2013-03-08 A kind of method and device of Cookie error correction

Country Status (2)

Country Link
CN (1) CN104038914B (en)
WO (1) WO2013189420A2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388657B (en) * 2018-03-06 2022-04-05 五八有限公司 Cookie storage method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093092A1 (en) * 2000-05-29 2001-12-06 Nokia Corporation Synchronization method
CN101197843A (en) * 2007-11-13 2008-06-11 华为技术有限公司 Page redirection method and wireless application protocol gateway
CN101340371A (en) * 2008-08-12 2009-01-07 杭州华三通信技术有限公司 Session keeping method and load balance apparatus
CN102088465A (en) * 2011-03-16 2011-06-08 中国科学院软件研究所 Hyper text transport protocol (HTTP) Cookie protection method based on preposed gateway

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100579122C (en) * 2006-03-14 2010-01-06 中兴通讯股份有限公司 Implementation method of WAP gateway browsing service COOKIE

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093092A1 (en) * 2000-05-29 2001-12-06 Nokia Corporation Synchronization method
CN101197843A (en) * 2007-11-13 2008-06-11 华为技术有限公司 Page redirection method and wireless application protocol gateway
CN101340371A (en) * 2008-08-12 2009-01-07 杭州华三通信技术有限公司 Session keeping method and load balance apparatus
CN102088465A (en) * 2011-03-16 2011-06-08 中国科学院软件研究所 Hyper text transport protocol (HTTP) Cookie protection method based on preposed gateway

Also Published As

Publication number Publication date
CN104038914A (en) 2014-09-10
WO2013189420A3 (en) 2014-02-13
WO2013189420A2 (en) 2013-12-27

Similar Documents

Publication Publication Date Title
US8340678B1 (en) Indicating radio bearer information to network applications
JP5426499B2 (en) Terminal device settings
EP2456246A1 (en) Network selection method based on multi-link and apparatus thereof
TWI393464B (en) Apparatus and methods for network identification of open market wireless devices
US11777834B2 (en) IP multimedia subsystem (IMS) communication testing
US10911605B2 (en) Provisioning a trial service to a mobile device
US8498286B2 (en) Radius gateway on policy charging and rules function (PCRF) for wireline/wireless converged solution
US8972587B1 (en) Arbitration server for determining remediation measures in response to an error message from a content provider
WO2013131472A1 (en) Message processing method, device and system
US20160191523A1 (en) Service authority determination method and device
US20140109223A1 (en) Providing a real-time anomalous event detection and notification service in a wireless network
CN105681158B (en) A kind of method, apparatus and system for improving IP short message and delivering accuracy
US20140101040A1 (en) Method and apparatus for charging in a communication network
US20200145796A1 (en) Dynamic provision of application related sponsored data connectivity
US20110044334A1 (en) Communication system and communication method
JP6479978B2 (en) Handling of reduced partial CDRs in an off-line billing system
CN104038914B (en) A kind of method and device of Cookie error correction
CN102075386A (en) Identification method and device
US20100290357A1 (en) Apparatus and method of determining maximum segment size of data call in mobile communication system
EP2532143A1 (en) Method and apparatus for routing xcap requests
CN108846096B (en) Web page prompting method, terminal, gateway device and user edge device
CN106550001B (en) Method and device for redirection
CN103716792A (en) Malicious call information processing method and apparatus
WO2012109893A1 (en) Activation method, activation apparatus and communication system
US20170331950A1 (en) Provision of caller information

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