CN104602222A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN104602222A
CN104602222A CN201410815435.1A CN201410815435A CN104602222A CN 104602222 A CN104602222 A CN 104602222A CN 201410815435 A CN201410815435 A CN 201410815435A CN 104602222 A CN104602222 A CN 104602222A
Authority
CN
China
Prior art keywords
electronic equipment
mcc
mnc
user agent
network
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
CN201410815435.1A
Other languages
Chinese (zh)
Other versions
CN104602222B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410815435.1A priority Critical patent/CN104602222B/en
Publication of CN104602222A publication Critical patent/CN104602222A/en
Application granted granted Critical
Publication of CN104602222B publication Critical patent/CN104602222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • 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]

Abstract

The invention discloses an information processing method and an electronic device. The method comprises the steps of acquiring MCC (Mobile Country Code) and MNC (Mobile Network Code) of the network of the electronic device; comparing the acquired MCC and MNC with the MCC and MNC of a user of the electronic device; searching user agent information corresponding to the acquired MCC and MNC if that acquired MCC and the MNC are inconsistent with the MCC and MNC of the user of the electronic device; setting the searched user agent information into the user agent information of the electronic device.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to intelligent electronic device technical field, particularly relate to a kind of information processing method and electronic equipment.
Background technology
At present, the equipment of the core network of part carrier network can to HTML (Hypertext Markup Language) (HTTP, HypertextTransfer Protocol) user agent (User Agent) information of asking checks, equipment of the core network can refuse the HTTP request that User Agent information is not inconsistent; This just causes some when electronic equipment normally connects carrier network, due to the offering question of User Agent information, causes the HTTP request of electronic equipment to be refused by carrier network.Such as: it is domestic that the user mobile phone of Chinese carrier network roams into Vietnam, browser access website is used after the carrier network that access Vietnam is domestic, now browser can initiate HTTP request, and be still the UserAgent information of Chinese carrier network or the User Agent information of a certain particular manufacturer because the User Agent information of this mobile phone browser is arranged, what still carry in the message header of therefore its HTTP request is the User Agent information of Chinese carrier network or the UserAgent information of a certain particular manufacturer; So, the equipment of the core network of the carrier network that Vietnam is domestic finds that the User Agent information of carrying is not inconsistent when carrying out User Agent information check to this HTTP request, thus this HTTP request can be refused, cause the user of this mobile phone cannot successful access website, and now the network of user mobile phone connect really normal.Above situation brings inconvenience to the routine use of user, is also technical problem urgently to be resolved hurrily at present.
Summary of the invention
For solving the technical problem of existing existence, the embodiment of the present invention provides a kind of information processing method and electronic equipment.
On the one hand, embodiments provide a kind of information processing method, be applied to electronic equipment, described method comprises:
Obtain Mobile Country Code MCC MCC and the Mobile Network Code MNC of described electronic equipment place network;
By described MCC and MNC obtained, compare with MCC and MNC belonging to the user of described electronic equipment, when MCC and MNC belonging to MCC and MNC of acquisition and the user of described electronic equipment is inconsistent, inquire about the user agent User Agent information corresponding with obtained MCC and MNC;
The User Agent information that inquiry obtains is set to the User Agent information of described electronic equipment self.
In such scheme, described method also comprises: when the HTTP request that described electronic equipment sends is without response, obtain MCC and MNC of described electronic equipment place network.
In such scheme, described method also comprises: MCC and MNC obtaining described electronic equipment place network from the message that the equipment of the core network of the carrier network of the current access of described electronic equipment issues.
In such scheme, described method also comprises: described electronic equipment presetting database, and described database comprises the mapping relations of MCC and MNC and corresponding User Agent information;
The User Agent information that described inquiry is corresponding with obtained MCC and MNC, comprising:
According to described MCC and MNC obtained, inquire about described database, obtain the User Agent information corresponding to MCC and MNC matched in described database.
On the other hand, the embodiment of the present invention additionally provides a kind of electronic equipment, comprising:
Network information acquiring unit, for obtaining Mobile Country Code MCC MCC and the Mobile Network Code MNC of described electronic equipment place network;
User agent User Agent information query unit, for described MCC and MNC that will obtain, compare with MCC and MNC belonging to the user of described electronic equipment, when MCC and MNC belonging to MCC and MNC of acquisition and the user of described electronic equipment is inconsistent, inquire about the user agent User Agent information corresponding with MCC and MNC obtained;
User Agent information setting unit, the User Agent information for inquiry being obtained is set to the User Agent information of described electronic equipment self.
In such scheme, described network information acquiring unit is further used for, and when the HTTP request that described electronic equipment sends is without response, obtains MCC and MNC of described electronic equipment place network.
In such scheme, described network information acquiring unit is further used for, and obtains MCC and MNC of described electronic equipment place network from the message that the equipment of the core network of the carrier network of the current access of described electronic equipment issues.
In such scheme, described electronic equipment also comprises memory cell, and for storing described electronic equipment presetting database, described database comprises the mapping relations of MCC and MNC and corresponding User Agent information;
Described User Agent information query unit is further used for, and according to described MCC and MNC obtained, inquires about described database, obtains the UserAgent information corresponding to MCC and MNC matched in described database.
A kind of information processing method that the embodiment of the present invention provides and electronic equipment, when the HTTP request that electronic equipment sends is without response, obtain MCC and MNC of electronic equipment place network, judge that whether its MCC and MNC belonging to user with electronic equipment is consistent, and when judging inconsistent, the User Agent information of electronic equipment browser being arranged and modifies; So, for arranging due to User Agent information (as the User Agent information that arranges with current residing for the User Agent information of countries and regions and carrier network be not inconsistent) the HTTP request that causes of problem without response case, the embodiment of the present invention can be arranged by the User Agent information of amendment browser, recovers electronic equipment by the normal accesses network of browser.
Accompanying drawing explanation
Fig. 1 is the information processing method flow chart of the embodiment of the present invention one;
Fig. 2 is the electronic devices structure schematic diagram of the embodiment of the present invention two.
Embodiment
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
Embodiment one
The embodiment of the present invention one provides a kind of information processing method, is applied to electronic equipment, and as shown in Figure 1, described method comprises:
Step 101, obtains Mobile Country Code MCC (MCC, Mobile CountryCode) and the Mobile Network Code (MNC, Mobile Network Code) of described electronic equipment place network.
Wherein, described MCC is in order to characterize the national information of described electronic equipment place network, and described MNC is in order to characterize the operator's informaiton of described electronic equipment place network; Different MCC and MNC correspond to different User Agent and arranges, and described User Agent can be the User Agent information of carrier network or the User Agent information of a certain particular manufacturer.The corresponding relation of a kind of MCC and MNC and User Agent is as shown in table 1 below:
MCC1、MNC1 User Agent 1 (the User Agent of carrier network)
MCC1、MNC2 User Agent 2 (the User Agent of carrier network)
MCC2、MNC3 User Agent 3 (the User Agent of manufacturer's network)
MCC3、MNC4 User Agent 4 (the User Agent of manufacturer's network)
Table 1
Because the equipment of the core network of some carrier networks can check the User Agent information of HTTP request, equipment of the core network can refuse the HTTP request that User Agent information is not inconsistent; This can cause some when electronic equipment normally connects carrier network, due to the offering question of User Agent information, causes the HTTP request of electronic equipment to be refused by carrier network.User as: countries and regions carries electronic equipment and roams into countries and regions overseas; HTTP request with regard to often electronic equipment being caused to send because the setting of User Agent information is not inconsistent is not responded; also cannot successful access network even if this makes electronic equipment normally connect carrier network overseas, user is at a loss.
Therefore, when the HTTP request that the embodiment of the present invention can send at electronic equipment is without response, obtain MCC and MNC of described electronic equipment place network, also just can know national information and the operator's informaiton of described electronic equipment place network according to described MCC and MNC.Namely, when the HTTP request that electronic equipment sends is without response, obtain MCC and MNC of described electronic equipment place network, in order to MCC with MNC with described electronic equipment that judge electronic equipment place network user belonging to MCC with MNC whether identical; Namely judge that whether electronic equipment current place network is different from user's belonging network.
In one embodiment, MCC and MNC of described electronic equipment place network is obtained the message that electronic equipment can issue from the equipment of the core network of the carrier network of its current access, usually all can carry MCC and MNC of network in the message that the equipment of the core network of carrier network issues, these information are generally carried in the message header of equipment of the core network issuing message; Electronic equipment is resolved by the issuing message of the equipment of the core network received it, just MCC and MNC of described electronic equipment place network can be got from message header, described electronic equipment place network and current the accessed carrier network of described electronic equipment.The embodiment of the present invention does not limit the type of message that equipment of the core network issues, and in practical application, every equipment of the core network issuing message that electronic equipment success can be made therefrom to obtain place network MCC and MNC, all should belong to the protection range of the embodiment of the present invention.
Step 102, by described MCC and MNC obtained, compare with MCC and MNC belonging to the user of described electronic equipment, when MCC and MNC belonging to the user of MCC and MNC obtained and described electronic equipment is inconsistent, inquire about the User Agent information corresponding with obtained MCC and MNC.
MCC and MNC belonging to user of described electronic equipment is obtained the subscriber identification card that described electronic equipment can insert from it, described identification card is as subscriber identity module (SIM, SubscriberIdentity Module) card, Universal Subscriber identity module (USIM, Universal Subscriber IdentityModule) card, subscriber identity module (UIM, User Identity Module) card etc.
MCC and MNC that electronic equipment will obtain in the message issued from equipment of the core network, compare with MCC and MNC belonging to the user of described electronic equipment, if both are identical, then show that the countries and regions belonging to user and the carrier network of the current residing countries and regions of electronic equipment and carrier network and described electronic equipment are consistent, the HTTP request that so electronic equipment sends not is cause because the UserAgent information in electronic equipment arranges not to be inconsistent without response, and now electronic equipment can continue investigation other reasons or not do subsequent treatment; If both are not identical, then show that the countries and regions belonging to user and the carrier network of the current residing countries and regions of electronic equipment and carrier network and described electronic equipment are inconsistent, thus the HTTP request that electronic equipment sends may be cause because the User Agent information in electronic equipment arranges not to be inconsistent without response.
It should be noted that, described both identically refer to: the MCC belonging to the user of the MCC obtained in message and described electronic equipment is identical and MNC belonging to the user of the MNC obtained in message and described electronic equipment is identical; If the MCC belonging to the user of the MCC obtained in message and described electronic equipment is identical, the MNC belonging to user of the MNC that obtains in message and described electronic equipment is different, then can not think that both are identical; Same, if the MNC belonging to the user of the MNC obtained in message and described electronic equipment is identical, the MCC belonging to user of the MCC that obtains in message and described electronic equipment is different, identical both can not thinking.That is, only have the MCC belonging to user of MCC and the described electronic equipment obtained in message identical and the MNC belonging to user of the MNC obtained in message and described electronic equipment is identical time, just can think the countries and regions belonging to user of the current residing countries and regions of electronic equipment and carrier network and described electronic equipment and carrier network consistent, otherwise, all think inconsistent.
In one embodiment, can presetting database in electronic equipment, described database comprises the mapping relations of MCC and MNC and corresponding User Agent information, and described mapping relations are also as shown in aforementioned table 1; So, the User Agent information that described inquiry is corresponding with obtained MCC and MNC, comprising:
According to described MCC and MNC obtained, inquire about described database, obtain the User Agent information corresponding to MCC and MNC matched in described database.That is, first search in described mapping relations, with described MCC and MNC obtained, there is the mapping relations item of on all four MCC and MNC, then from the described mapping relations item found, obtain corresponding User Agent information, the UserAgent information obtained is the result that will search.
The mapping relations of described MCC and MNC and corresponding User Agent information can be kept in the Default Value of electronic equipment, when having renewal in described mapping relations, the content of renewal can send to electronic equipment to carry out the renewal of local mapping relations by the service end of electronic equipment.Certainly, the mapping relations of electronic equipment local maintenance normally do not allow user to revise arbitrarily, to guarantee the correctness of the mapping relations of electronic equipment local maintenance.When the reason due to the unknown causes the mapping relations of electronic equipment local maintenance that loss or configuration error occur, user can select the Default Value recovering electronic equipment, such electronic equipment can mapping relations in factory reset, electronic equipment initiatively can upgrade mapping relations (mapping relations as highest version) to service end request, service end also can when finding that the mapping relations version in electronic equipment is lower, prompting is upgraded to electronic equipment active push mapping relations, rear line equipment is allowed to push the mapping relations of highest version with electronic device local update the user obtaining electronic equipment.
In the browser that the mapping relations of described MCC and MNC and corresponding User Agent information also can be kept at electronic equipment is arranged, when having renewal in described mapping relations, the content of renewal can send to electronic equipment to upgrade local browser and arrange by the service end of browser.Certainly, the mapping relations of the browser local maintenance of electronic equipment normally do not allow user to revise arbitrarily, to guarantee the correctness of the mapping relations of the browser local maintenance of electronic equipment.When the reason due to the unknown causes the mapping relations of the browser local maintenance of electronic equipment that loss or configuration error occur, user can select the initial setting up recovering browser, such electronic equipment can recover the mapping relations in browser initial setting up, electronic equipment initiatively can upgrade mapping relations (mapping relations as highest version) to the service end request of browser, the service end of browser also can when finding that the mapping relations version in electronic equipment is lower, mapping relations to electronic equipment active push browser upgrade prompting, the mapping relations allowing rear line equipment to push highest version the user obtaining electronic equipment upgrade the setting of local browser with electronic device.
Step 103, is set to the UserAgent information of described electronic equipment self by the User Agent information that inquiry obtains.
After the User Agent information that inquiry obtains current residing countries and regions and carrier network, described User Agent information is arranged to the User Agent information of the current use of browser of described electronic equipment, even the User Agent item of information of browser is set to sky, the User Agent item of information of browser described in the User Agent information solicitation then using inquiry to obtain, if it is not empty that the User Agent item of information of browser is arranged, then replace existing UserAgent information in described User Agent item of information by the User Agent information that inquiry obtains; After being provided with, described electronic equipment is by carrying newly-installed User Agent information in the HTTP request of the follow-up transmission of browser, User Agent information is carried in the message header of HTTP request usually.
So, if due to User Agent information arrange (the User Agent information of setting with current residing for the User Agent information of countries and regions and carrier network be not inconsistent) the HTTP request that causes of problem without response, so (namely with the User Agent item of information with the User Agent information solicitation electronic equipment browser corresponding to MCC and MNC of electronic equipment place network) is set by the User Agent information of the amendment browser of the embodiment of the present invention one, the User Agent information of the User Agent information of the browser of electronic equipment and electronic equipment place network then can be made to be consistent, recover electronic equipment by the normal accesses network of browser.
Embodiment two
The information processing method of the corresponding embodiment of the present invention one, the embodiment of the present invention two provides a kind of electronic equipment, and as shown in Figure 2, described electronic equipment comprises:
Network information acquiring unit 10, for obtaining MCC and MNC of described electronic equipment place network;
User Agent information query unit 20, for described MCC and MNC that will obtain, compare with MCC and MNC belonging to the user of described electronic equipment, when MCC and MNC belonging to MCC and MNC of acquisition and the user of described electronic equipment is inconsistent, inquire about the User Agent information corresponding with MCC and MNC obtained;
User Agent information setting unit 30, the User Agent information for inquiry being obtained is set to the User Agent information of described electronic equipment self.
Described MCC is in order to characterize the national information of described electronic equipment place network, and described MNC is in order to characterize the operator's informaiton of described electronic equipment place network; Different MCC and MNC correspond to different User Agent and arranges, and described User Agent can be the User Agent information of carrier network or the User Agent information of a certain particular manufacturer.
Wherein, when the HTTP request that described network information acquiring unit 10 can send at described electronic equipment is without response, obtain MCC and MNC of described electronic equipment place network, also just can know national information and the operator's informaiton of described electronic equipment place network according to described MCC and MNC.Namely, when the HTTP request that electronic equipment sends is without response, MCC and MNC of described electronic equipment place network is obtained, in order to judge MCC and MNC of electronic equipment place network, whether identical with MCC with MNC belonging to the user of described electronic equipment; Namely judge that whether electronic equipment current place network is different from user's belonging network.
Wherein, MCC and MNC of described electronic equipment place network is obtained the message that described network information acquiring unit 10 can issue from the equipment of the core network of the carrier network of the current access of described electronic equipment, usually all can carry MCC and MNC of network in the message that the equipment of the core network of carrier network issues, these information are generally carried in the message header of equipment of the core network issuing message; Network information acquiring unit 10 is resolved by the issuing message of the equipment of the core network received it, just MCC and MNC of described electronic equipment place network can be got from message header, described electronic equipment place network and current the accessed carrier network of described electronic equipment.The embodiment of the present invention does not limit the type of message that equipment of the core network issues, and in practical application, every equipment of the core network issuing message that electronic equipment success can be made therefrom to obtain place network MCC and MNC, all should belong to the protection range of the embodiment of the present invention.
MCC and MNC belonging to user that obtain described electronic equipment the subscriber identification card that described network information acquiring unit 10 can also insert from it, described identification card is as SIM card, usim card, UIM card etc.
Described electronic equipment also comprises memory cell 40, and for storing described electronic equipment presetting database, described database comprises the mapping relations of MCC and MNC and corresponding User Agent information, and described mapping relations are also as shown in aforementioned table 1;
Described User Agent information query unit 20 is further used for, and according to described MCC and MNC obtained, inquires about described database, obtains the User Agent information corresponding to MCC and MNC matched in described database.That is, first search in described mapping relations, with described MCC and MNC obtained, there is the mapping relations item of on all four MCC and MNC, then from the described mapping relations item found, obtain corresponding User Agent information, the User Agent information obtained is the result that will search.
The mapping relations of described MCC and MNC and corresponding User Agent information can be kept in the Default Value of electronic equipment, when having renewal in described mapping relations, the content of renewal can send to electronic equipment to carry out the renewal of local mapping relations by the service end of electronic equipment.Certainly, the mapping relations of electronic equipment local maintenance normally do not allow user to revise arbitrarily, to guarantee the correctness of the mapping relations of electronic equipment local maintenance.When the reason due to the unknown causes the mapping relations of electronic equipment local maintenance that loss or configuration error occur, user can select the Default Value recovering electronic equipment, such electronic equipment can mapping relations in factory reset, electronic equipment initiatively can upgrade mapping relations (mapping relations as highest version) to service end request, service end also can when finding that the mapping relations version in electronic equipment is lower, prompting is upgraded to electronic equipment active push mapping relations, rear line equipment is allowed to push the mapping relations of highest version with electronic device local update the user obtaining electronic equipment.
In the browser that the mapping relations of described MCC and MNC and corresponding User Agent information also can be kept at electronic equipment is arranged, when having renewal in described mapping relations, the content of renewal can send to electronic equipment to upgrade local browser and arrange by the service end of browser.Certainly, the mapping relations of the browser local maintenance of electronic equipment normally do not allow user to revise arbitrarily, to guarantee the correctness of the mapping relations of the browser local maintenance of electronic equipment.When the reason due to the unknown causes the mapping relations of the browser local maintenance of electronic equipment that loss or configuration error occur, user can select the initial setting up recovering browser, such electronic equipment can recover the mapping relations in browser initial setting up, electronic equipment initiatively can upgrade mapping relations (mapping relations as highest version) to the service end request of browser, the service end of browser also can when finding that the mapping relations version in electronic equipment is lower, mapping relations to electronic equipment active push browser upgrade prompting, the mapping relations allowing rear line equipment to push highest version the user obtaining electronic equipment upgrade the setting of local browser with electronic device.
After the User Agent information that inquiry obtains current residing countries and regions and carrier network, described User Agent information is arranged to the User Agent information of the current use of browser of described electronic equipment by UserAgent information setting unit 30, even the User Agent item of information of browser is set to sky, the User Agent item of information of browser described in the User Agent information solicitation then using inquiry to obtain, if it is not empty that the UserAgent item of information of browser is arranged, then replace existing User Agent information in described User Agent item of information by the User Agent information that inquiry obtains, after being provided with, described electronic equipment is by carrying newly-installed User Agent information in the HTTP request of the follow-up transmission of browser, User Agent information is carried in the message header of HTTP request usually.
So, if due to User Agent information arrange (the User Agent information of setting with current residing for the User Agent information of countries and regions and carrier network be not inconsistent) the HTTP request that causes of problem without response, so (namely with the User Agent item of information with the User Agent information solicitation electronic equipment browser corresponding to MCC and MNC of electronic equipment place network) is set by the User Agent information of the amendment browser of the embodiment of the present invention one, the User Agent information of the User Agent information of the browser of electronic equipment and electronic equipment place network then can be made to be consistent, recover electronic equipment by the normal accesses network of browser.
It should be noted that, above-mentioned network information acquiring unit 10, User Agent information query unit 20, User Agent information setting unit 30 can by the central processing unit (CPU of electronic equipment, CentralProcessing Unit), microprocessor (MPU, Micro Processing Unit), digital signal processor (DSP, Digital Signal Processor) or programmable logic array (FPGA, Field-ProgrammableGate Array) realization; Memory cell 40 can be realized by the memory of electronic equipment.
In conjunction with embody rule scene, the information processing method of above-described embodiment and electronic equipment are further described again below.
Embodiment three
The application scenarios of the embodiment of the present invention three is: the user of China Mobile carries electronic equipment, and to roam into Vietnam domestic, the equipment of the core network of the telecommunication carrier networks that Vietnam is domestic can check the User Agent information of HTTP request, equipment of the core network can refuse the HTTP request that User Agent information is not inconsistent, and this causes the user of China Mobile still cannot by the normal accesses network of browser when electronic equipment normally connects carrier network.Handling process for above-mentioned application scenarios comprises:
The electronic equipment of the user of China Mobile is when the HTTP request sent is without response, MCC and MNC of described electronic equipment place network is obtained, i.e. MCC and MNC of the telecommunication carrier networks that Vietnam is domestic from the message that the equipment of the core network of its present access network issues; Usually all can carry MCC and MNC of network in the message that the equipment of the core network of carrier network issues, these information are generally carried in the message header of equipment of the core network issuing message; Electronic equipment is resolved by the issuing message of the equipment of the core network received it, just MCC and MNC of described electronic equipment place network can be got from message header, described electronic equipment place network and current the accessed carrier network (telecommunication carrier networks that namely Vietnam is domestic) of described electronic equipment;
MCC and MNC that electronic equipment will obtain, compare with MCC and MNC (MCC and MNC namely corresponding to China Mobile) belonging to the user of described electronic equipment, both discoveries are inconsistent, thus according to described MCC and MNC obtained, by database (database comprises the mapping relations of MCC and MNC and corresponding User Agent information) preset in inquiry electronic equipment, obtain the User Agent information corresponding to MCC and MNC matched in database; That is, first electronic equipment is searched in described mapping relations has the mapping relations item of on all four MCC and MNC with described MCC and MNC obtained, then from the described mapping relations item found, obtain corresponding User Agent information, the User Agent information obtained is the result that will search;
After the User Agent information that inquiry obtains current residing countries and regions and carrier network (telecommunication carrier networks that namely Vietnam is domestic), described User Agent information is arranged to the User Agent information of the current use of browser of described electronic equipment, even the User Agent item of information of browser is set to sky, the User Agent item of information of browser described in the User Agent information solicitation then using inquiry to obtain, if it is not empty that the User Agent item of information of browser is arranged, then replace existing User Agent information in described UserAgent item of information by the User Agent information that inquiry obtains, after being provided with, described electronic equipment is by carrying newly-installed User Agent information in the HTTP request of the follow-up transmission of browser, User Agent information is carried in the message header of HTTP request usually.
So, by the User Agent information revising browser, (namely with the User Agent item of information with the User Agent information solicitation electronic equipment browser corresponding to MCC and MNC of electronic equipment place network) is set, the UserAgent information of the telecommunication carrier networks domestic with Vietnam of the User Agent information after arranging is conformed to, recovers electronic equipment by the normal accesses network of browser.
In sum, the embodiment of the present invention is when the HTTP request that electronic equipment sends is without response, obtain MCC and MNC of electronic equipment place network, judge that whether its MCC and MNC belonging to user with electronic equipment is consistent, and when judging inconsistent, the User Agent information of electronic equipment browser being arranged and modifies; So, for arranging due to User Agent information (as the User Agent information that arranges with current residing for the User Agent information of countries and regions and carrier network be not inconsistent) the HTTP request that causes of problem without response case, the embodiment of the present invention can be arranged by the User Agent information of amendment browser, recovers electronic equipment by the normal accesses network of browser.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, and described storage medium comprises one group of computer instruction, when described computer instruction is performed, for realizing the information processing method described in the embodiment of the present invention.
In several embodiment provided by the present invention, should be understood that, disclosed method, device and electronic equipment, can realize by another way.Apparatus embodiments 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, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned 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, also can be distributed in multiple network element; Part 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 various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, 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 that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the embodiment of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (8)

1. an information processing method, is applied to electronic equipment, and described method comprises:
Obtain Mobile Country Code MCC MCC and the Mobile Network Code MNC of described electronic equipment place network;
By described MCC and MNC obtained, compare with MCC and MNC belonging to the user of described electronic equipment, when MCC and MNC belonging to MCC and MNC of acquisition and the user of described electronic equipment is inconsistent, inquire about the user agent User Agent information corresponding with obtained MCC and MNC;
The User Agent information that inquiry obtains is set to the User Agent information of described electronic equipment self.
2. information processing method according to claim 1, it is characterized in that, described method also comprises: when the HTTP request that described electronic equipment sends is without response, obtain MCC and MNC of described electronic equipment place network.
3. information processing method according to claim 1, it is characterized in that, described method also comprises: MCC and MNC obtaining described electronic equipment place network from the message that the equipment of the core network of the carrier network of the current access of described electronic equipment issues.
4. information processing method according to any one of claims 1 to 3, is characterized in that, described method also comprises: described electronic equipment presetting database, and described database comprises the mapping relations of MCC and MNC and corresponding User Agent information;
The User Agent information that described inquiry is corresponding with obtained MCC and MNC, comprising:
According to described MCC and MNC obtained, inquire about described database, obtain the User Agent information corresponding to MCC and MNC matched in described database.
5. an electronic equipment, comprising:
Network information acquiring unit, for obtaining Mobile Country Code MCC MCC and the Mobile Network Code MNC of described electronic equipment place network;
User agent User Agent information query unit, for described MCC and MNC that will obtain, compare with MCC and MNC belonging to the user of described electronic equipment, when MCC and MNC belonging to MCC and MNC of acquisition and the user of described electronic equipment is inconsistent, inquire about the user agent User Agent information corresponding with MCC and MNC obtained;
User Agent information setting unit, the User Agent information for inquiry being obtained is set to the User Agent information of described electronic equipment self.
6. electronic equipment according to claim 5, it is characterized in that, described network information acquiring unit is further used for, and when the HTTP request that described electronic equipment sends is without response, obtains MCC and MNC of described electronic equipment place network.
7. electronic equipment according to claim 5, it is characterized in that, described network information acquiring unit is further used for, and obtains MCC and MNC of described electronic equipment place network from the message that the equipment of the core network of the carrier network of the current access of described electronic equipment issues.
8. electronic equipment according to any one of claim 5 to 7, it is characterized in that, described electronic equipment also comprises memory cell, and for storing described electronic equipment presetting database, described database comprises the mapping relations of MCC and MNC and corresponding User Agent information;
Described User Agent information query unit is further used for, and according to described MCC and MNC obtained, inquires about described database, obtains the UserAgent information corresponding to MCC and MNC matched in described database.
CN201410815435.1A 2014-12-24 2014-12-24 A kind of information processing method and electronic equipment Active CN104602222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410815435.1A CN104602222B (en) 2014-12-24 2014-12-24 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410815435.1A CN104602222B (en) 2014-12-24 2014-12-24 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104602222A true CN104602222A (en) 2015-05-06
CN104602222B CN104602222B (en) 2019-04-26

Family

ID=53127640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410815435.1A Active CN104602222B (en) 2014-12-24 2014-12-24 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104602222B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082817A (en) * 2009-11-25 2011-06-01 诺基亚公司 Method and apparatus for ensuring transport of user agent information
CN103347069A (en) * 2013-06-27 2013-10-09 贝壳网际(北京)安全技术有限公司 Method and device for realizing network access
CN103763125A (en) * 2013-12-27 2014-04-30 北京集奥聚合科技有限公司 Statistical method and device for number of actual users in operator network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082817A (en) * 2009-11-25 2011-06-01 诺基亚公司 Method and apparatus for ensuring transport of user agent information
CN103347069A (en) * 2013-06-27 2013-10-09 贝壳网际(北京)安全技术有限公司 Method and device for realizing network access
CN103763125A (en) * 2013-12-27 2014-04-30 北京集奥聚合科技有限公司 Statistical method and device for number of actual users in operator network

Also Published As

Publication number Publication date
CN104602222B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
US9391836B2 (en) Method and terminal for loading operator configuration information
CN110267254B (en) eUICC management method, eUICC, SM platform and system
EP3169113B1 (en) Network access method and mobile communications terminal
US10306461B2 (en) Provision of subscriber profile to a MME in case of roaming
CN105101135A (en) Method and device for processing emergency call of communication terminal
CN104602363A (en) Electronic equipment and APN information updating method thereof
CN101657005A (en) Method for accessing terminal to network and terminal
EP3304862B1 (en) Systems, methods, and computer-readable media for tracking udates and loading data
CN104883704A (en) Mobile terminal access point parameter automatic error correction method and apparatus
CN104320833A (en) Automatic network selecting method and system of mobile terminal
CN105430636A (en) SIM card management method and system
EP2544474A1 (en) Method and device for processing service command information
CN105827424A (en) Data acquisition method and data acquisition device
EP3145230B1 (en) Method and device for controlling subscriber identity module card of mobile terminal
CN111066333A (en) Device capable of acquiring ESIM configuration file
CN107306388B (en) Configuration method and device of Access Point Name (APN)
US10015727B2 (en) Automatic detection of a network operator for a mobile network device
WO2016173070A1 (en) Terminal network searching method and terminal
CN104639666A (en) Domain name access method and device
CN104125622A (en) Configuration method of access system, equipment and system
CN108882185B (en) Configuration method and device of supplementary service and mobile terminal
CN113190565B (en) Data updating method and device, storage medium and electronic device
US20170353818A1 (en) Method for deleting notification resource, and common service entity
CN104602222A (en) Information processing method and electronic device
CN108156600B (en) Method, device, equipment and medium for automatically configuring APN (access point name) of Internet of things card

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