Background technology
Current mobile Internet has been deep into every aspect in our life, and ascendant trend year by year, but mobile Internet at present, also do not reach the speed of conventional internet, restricted agreement, and the reason such as corresponding equipment.But mobile Internet have conventional internet cannot than advantage, global R & D center, and research and development institution is all strengthening the research and development of mobile Internet.
Current access the Internet, traditional network is by the mode of cookie local cache, and transmit the identity information of user, cookie is commonly called as " cooky ", and it is that a kind of mode of (key/value) key-value pair that adopts is to preserve the information of user.Cookie is produced by server end, when subscription client access is by browser access network time, send to the browser of client, and be retained in client always, next time when user again accesses network same website time, just directly this cookie of transmission is to server, and such server screens with regard to the arbitrariness utilizing coolies and comprise information, and accelerates return information to user browser.
Utilize above-mentioned technology can accelerate to access the speed of the Internet.But, a lot of temporary files can be preserved at local client when user's access websites, and cookie information, although the access speed of the webpage accelerated, local spatial also can be caused sharply to increase, the visit information of user will be cleared up every a period of time.
And the limited space of mobile device own, if adopt traditional mode, the burden of local memory device can be increased the weight of.Traditional mode can retain corresponding temporary file on the outside SDCARD card of mobile device.If but user changes card, and naturally clear up these information when cleaning card.
For the problems referred to above, what application number was 200910238260.1 application discloses a kind of system and method providing fast access Internet Server to internet terminal, rely on WiMAX (comprising 3G, 4G etc.) and the wired broadband network of telecom operators, the internet service node based on local network pattern is provided, i.e. cloud computing support platform to Internet service website.Especially, the local internet node address based on wireless network terminal or mobile telephone terminal place, the Internet visited network is served, and provides internet access business at a high speed to the Internet mobile telephone terminal.This patent application mainly relies on the wireless of telecom operators and cable network, based on the internet node addressing service of mobile telephone terminal place visited network, therefore the fast access of the Internet is mainly realized based on cloud computing supporting platform, although adopt the speed that can improve access the Internet in this way, cost is very high.
Based on above-mentioned analysis, the speed how improving mobile Internet easily just becomes one of those skilled in the art's problem demanding prompt solution.
Summary of the invention
What the present invention solved is the problem that in prior art, mobile terminal cost when fast access the Internet burden that is higher or mobile terminal is heavier.
For solving the problem, the invention provides a kind of method of mobile terminal accessing the Internet, comprising: mobile terminal sends network access request; The Cookie cache resources of accessed web information station whether is there is from described mobile terminal local search; When described mobile terminal this locality does not exist the Cookie cache resources of accessed web information station, inquire about from the equipment matched with described mobile terminal; When preserving the Cookie cache resources of the web information station of accessing to some extent in the equipment matched with described mobile terminal, the equipment preserving described Cookie cache resources returns described Cookie cache resources, and described mobile terminal is according to the Cookie cache resources access the Internet returned.
Optionally, the method for described mobile terminal accessing the Internet also comprises: when described mobile terminal this locality exists the Cookie cache resources of the web information station of accessing, described mobile terminal is according to inquired Cookie cache resources access the Internet.
Optionally, when not preserving the Cookie cache resources of the web information station of accessing to some extent in the equipment matched with described mobile terminal, the identity information of the network access request checking mobile terminal that server end sends according to described mobile terminal.
Optionally, the transmission network access request of described mobile terminal comprises: web/WAP network HTTP request;
Described method also comprises: generate request data package according to the HTTP request that mobile terminal sends, at least comprise in described request packet: the identification code of request ID and described mobile terminal.Optionally, the process of carrying out inquiring about the described equipment from matching with described mobile terminal comprises: send request data package in described HTTP request to the equipment matched with described mobile terminal; The equipment matched with described mobile terminal judges whether to preserve the Cookie cache resources of the web information station that mobile terminal is to some extent accessed according to the request ID in described request packet; When preserving corresponding Cookie cache resources, according to the identification code in described request packet, the Cookie cache resources inquired is back to described mobile terminal.
Optionally, described mobile terminal and other equipment are matched by bluetooth, WIFI or Mobile data.
Optionally, after described mobile terminal and other equipment complete pairing, and further comprising the steps of before inquiring about from the equipment matched with described mobile terminal: according to the network range residing for described mobile terminal, judge the signal strength signal intensity with the equipment of its pairing; Signal strength signal intensity height according to paired device is inquired about successively.
Optionally, when preserving the Cookie cache resources of the web information station of accessing to some extent in the equipment matched with described mobile terminal, also comprised before the equipment preserving described Cookie cache resources returns described Cookie cache resources: judge whether the equipment preserving described Cookie cache resources keeps communicating with described mobile terminal;
If disconnect the equipment communicating or preserve described Cookie cache resources not reply, then return NULL;
If keep communication and the equipment preserving described Cookie cache resources is replied, then return described Cookie cache resources.
The present invention also provides a kind of mobile terminal, comprising: request sending module, for sending network access request; Whether local search module, for existing the Cookie cache resources of accessed web information station from described mobile terminal local search; Pairing enquiry module, for when described mobile terminal is local there is not the Cookie cache resources of accessed web information station time, inquire about from the equipment matched with described mobile terminal; Network access module, for when preserving the Cookie cache resources of the web information station of accessing to some extent in the equipment matched with described mobile terminal and the equipment preserving described Cookie cache resources returns described Cookie cache resources, according to the Cookie cache resources access the Internet returned.
Optionally, described network access module also for when described mobile terminal this locality exists the Cookie cache resources of the web information station of accessing, accesses the Internet according to inquired Cookie cache resources.
Compared with prior art, technical scheme of the present invention has the following advantages:
In technical solution of the present invention, first the Cookie cache resources of accessed web information station whether is there is at mobile terminal local search, if do not exist, then inquire about other equipment matched with described mobile terminal, if other equipment are preserved corresponding Cookie cache resources, then mobile terminal is according to the Cookie cache resources access the Internet returned.The Internet can also be accessed more efficiently by the mode of Cookie cache resources, improve the speed of mobile terminal network visiting; Further, compared with adopting the scheme of cloud computing platform in prior art, the method for mobile terminal accessing the Internet of the present invention also greatly reduces cost.
In addition, because Cookie cache resources can be stored on other equipment, therefore, effectively can also reduce the storage data of mobile terminal this locality, expand the memory space of mobile terminal this locality.
Embodiment
As described in the background art, adopt Cookie cache resources access the Internet can improve the access speed of the Internet, but because the storage area of mobile terminal is limited, the waste that relevant Cookie cache resources can cause memory space is preserved if a large amount of, although there is modes such as utilizing cloud computing platform in prior art to improve the technical scheme of access speed, but this mode of cloud computing platform that utilizes adds cost, be unfavorable for promoting.
The invention provides a kind of method of mobile terminal accessing the Internet, can inquire about whether there is relevant Cookie cache resources from other equipment, when other equipment being preserved corresponding Cookie cache resources, the Cookie cache resources access the Internet that can return according to other equipment.The process that the process of inquiring about other equipment carries out verifying than direct request server end is faster, therefore, the speed of mobile terminal accessing the Internet can be improved, and, adopt and Cookie cache resources can be saved on other equipment in this way, and directly need not be stored in mobile terminal this locality, therefore, the memory space of mobile terminal can also be expanded, improve the utilance of mobile terminal.
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
Fig. 1 shows the method for mobile terminal accessing the Internet of the present invention, and with reference to figure 1, the method for described mobile terminal accessing the Internet comprises:
Step S1, mobile terminal sends network access request;
In the present embodiment, the transmission network access request of described mobile terminal comprises: web/WAP network HTTP request; Described method also comprises: generate request data package according to the HTTP request that mobile terminal sends, at least comprise in described request packet: the identification code of request ID and described mobile terminal.
Request ID comprises: the basic HTTP information etc. of the time of request, the data content of request, data packet head.Simultaneously, due in subsequent step, may need to the corresponding Cookie cache resources of other device request, therefore, the identification code of mobile terminal also should be comprised in the request data package of the present embodiment, time to facilitate Cookie cache resources on follow-up acquisition peripheral equipment, the equipment of request can be returned to fast and easily.
Perform step S2, whether there is the Cookie cache resources of accessed web information station from described mobile terminal local search;
In the present embodiment, when described mobile terminal this locality exists the Cookie cache resources of the web information station of accessing, described mobile terminal is according to inquired Cookie cache resources access the Internet.
That is, if corresponding Cookie cache resources can be inquired in mobile terminal this locality, so, then return required network information content in the conventional mode, namely from the Cookie cache resources that this locality is preserved, return required network information content.
Then perform step S3, when described mobile terminal this locality does not exist the Cookie cache resources of accessed web information station, inquire about from the equipment matched with described mobile terminal;
Particularly, described mobile terminal and other equipment can be matched by modes such as bluetooth, WIFI or Mobile datas.
Then perform step S4, when preserving the Cookie cache resources of the web information station of accessing to some extent in the equipment matched with described mobile terminal, the equipment preserving described Cookie cache resources returns described Cookie cache resources;
In a particular embodiment, can also comprise before the equipment preserving described Cookie cache resources returns described Cookie cache resources: judge whether the equipment preserving described Cookie cache resources keeps communicating with described mobile terminal;
If disconnect the equipment communicating or preserve described Cookie cache resources not reply, then return NULL;
If keep communication and the equipment preserving described Cookie cache resources is replied, then return described Cookie cache resources.
Finally perform step S5, described mobile terminal is according to the Cookie cache resources access the Internet returned.
Those skilled in the art are to be understood that ground, when not preserving the Cookie cache resources of the web information station of accessing to some extent in the equipment matched with described mobile terminal, the identity information of the network access request checking mobile terminal that server end sends according to described mobile terminal.
Fig. 2 shows the specific implementation schematic flow sheet of step S3 in Fig. 1; With reference to figure 2, the process of carrying out inquiring about the described equipment from matching with described mobile terminal specifically comprises:
Step S31, sends the equipment that the request data package in described HTTP request is extremely matched with described mobile terminal;
The equipment matched with described mobile terminal then performs step S32, judges whether to preserve the Cookie cache resources of the web information station that mobile terminal is to some extent accessed according to the request ID in described request packet;
Performing step S33, when preserving corresponding Cookie cache resources, according to the identification code in described request packet, the Cookie cache resources inquired being back to described mobile terminal.
It should be noted that, after described mobile terminal and other equipment complete pairing, and further comprising the steps of before inquiring about from the equipment matched with described mobile terminal:
According to the network range residing for described mobile terminal, judge the signal strength signal intensity with the equipment of its pairing;
Signal strength signal intensity height according to paired device is inquired about successively.
Specifically, can the highest paired device of first request signal intensity, if there is no relevant Cookie cache resources, then the paired device that request signal intensity is poor, until have relevant device to return Cookie cache resources, or all paired devices are not all replied.
Normally, signal strength signal intensity height corresponds to the close together of paired device and mobile terminal, and the speed therefore during transfer of data can be faster.The speed of inquiry can be improved according to the order of signal strength signal intensity height, and then improve the speed of final access the Internet.
In the method for mobile terminal accessing the Internet of the present invention, when corresponding Cookie cache resources is not preserved in mobile terminal this locality, other paired devices can be inquired about, if store Cookie cache resources in paired device, then mobile terminal is according to the Cookie cache resources access the Internet returned.Due to much faster than the speed of traditional access the Internet of the process of inquiring about this locality or other paired devices, therefore, method of the present invention can improve the speed of mobile terminal accessing the Internet;
Further, owing to not needing to adopt cloud computing platform etc. in method of the present invention, therefore, can also effectively reduce costs.
Further, because Cookie cache resources can be stored in other equipment, and mobile terminal this locality need not be saved to, so the memory space of mobile terminal can also be saved further.
Correspondingly, the present invention also provides a kind of mobile terminal, and with reference to figure 3, described mobile terminal comprises:
Request sending module 10, for sending network access request;
Whether local search module 20, for existing the Cookie cache resources of accessed web information station from described mobile terminal local search;
Pairing enquiry module 30, for when described mobile terminal is local there is not the Cookie cache resources of accessed web information station time, inquire about from the equipment matched with described mobile terminal;
Network access module 40, for when preserving the Cookie cache resources of the web information station of accessing to some extent in the equipment matched with described mobile terminal and the equipment preserving described Cookie cache resources returns described Cookie cache resources, according to the Cookie cache resources access the Internet returned.
In a particular embodiment, described network access module 40 also for when described mobile terminal this locality exists the Cookie cache resources of the web information station of accessing, accesses the Internet according to inquired Cookie cache resources.
The course of work of above-mentioned mobile terminal can access the introduction of the method for the Internet with reference to aforementioned mobile terminal, do not repeat them here.
Mobile terminal of the present invention can obtain corresponding Cookie cache resources from other paired devices, therefore, can realize fast and access interconnection network function easily, and, mobile terminal of the present invention can be avoided storing a large amount of Cookie cache resources, thus effectively saves memory space.
Although the present invention discloses as above, the present invention is not defined in this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.