The content of the invention
In view of the above problems, it is proposed that the present invention, overcome the problems referred to above or solve at least in part to provide one kind
A kind of cut-in method and web browser of webpage IM of the problems referred to above.
Embodiments provide a kind of cut-in method of webpage IM, including step:
Browser is sent to server by webpage IM and is asked, and the request includes one or more domain names;
Receive the whois lookup process corresponding with domain name of the request, and by the corresponding process at
Manage the request.
Alternatively, the cut-in method of webpage IM according to an embodiment of the invention, the browser is by webpage IM to clothes
Business device sends request to be included:
The browser selects domain name from domain name list;
The domain name of selection is carried in the request and sent by the browser.
Alternatively, the cut-in method of webpage IM according to an embodiment of the invention, the browser by webpage IM to
In the step of server sends request, set unified domain to manage one or more of domain names.
Alternatively, the cut-in method of webpage IM according to an embodiment of the invention, the browser by webpage IM to
Server send request step in, the one-one relationship set up between domain name and process, the browser by dynamic script come
Choose and send the included domain name of IM requests first.
Alternatively, according to an embodiment of the invention the cut-in method of webpage IM also includes step:
When the browser receives the error report of the corresponding server feedback of domain name, the browser is from domain
New domain name is selected in list of file names;
The new domain name chosen is carried and sent in the request by the browser.
Alternatively, the cut-in method of webpage IM according to an embodiment of the invention, in the whois lookup and the domain
The corresponding process of name, and processed in the request step by the corresponding process:
When receive the server of the request and domain name to it is corresponding when the whois lookup it is corresponding with domain name
Process, and the request is processed by the corresponding process;Or,
When receive the server of the request and domain name not to it is corresponding when the server forward the request to
Server corresponding with domain name;The whois lookup corresponding with domain name process corresponding with domain name, and by described
Corresponding process processes the request.
The embodiment of the present invention additionally provides a kind of web browser, including:Input interface, processor and FPDP, its
In:
The input interface, for receiving the request of webpage IM;
The processor, carries in webpage IM requests for choosing one or more domain names;
The FPDP, for webpage IM requests to be sent to into server.
Alternatively, the web browser also includes:
Domain name list, for preserving each domain name;
The processor, specifically for selecting domain name from domain name list, the domain name chosen is carried in the net
In page IM requests.
Alternatively, the processor, specifically for the one-one relationship set up between domain name and process, by dynamic script
The included domain name of IM requests is sent first to choose.
Alternatively, the FPDP, is additionally operable to receive the error report of the corresponding server feedback of domain name;
The processor, is additionally operable to select new domain name to carry the transmission in the request.
Embodiments provide the cut-in method and web browser of a kind of webpage IM.The webpage of the embodiment of the present invention
In the cut-in method of IM, browser sends the request for carrying one or more domain names, server by webpage IM to server
After receiving the request, process corresponding with the domain name is searched, the request is processed by the corresponding process.Due to of the invention real
In applying example, the operation that is written and read every time between browser and server is required for setting up new connection, and due to setting
The corresponding relation of domain name and process, therefore, when new connection is set up, server can directly lead to without resource is searched again
Cross corresponding process and process request, so as to save Internet resources, realize the load balancing that webpage IM is accessed.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Specific embodiment
In order to effectively save Internet resources, the load balancing that webpage IM is accessed is realized, embodiments provide one
Plant the cut-in method and web browser of webpage IM.
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
With reference to Figure of description, the embodiment of the present invention is described in detail.
Fig. 1 is a kind of access process schematic diagram of webpage IM provided in an embodiment of the present invention, and the process is comprised the following steps:
S101:Browser is sent to server by webpage IM and is asked, and the request includes one or more domain names.
In the embodiment of the present invention, browser initiates a HTTP request to designated port on server.Store on server
Some resources, such as html file and image.Multiple intermediate layers, such as generation are there may be in the middle of browser and server
Reason, gateway, or tunnel.Server monitors the request of browser in designated port.Once receiving request, server can be to browsing
Device returns a state, such as " HTTP/1.1200OK " and the content that returns, the such as file of request, error message or its
Its information.
Wherein request includes but is not limited to following components:
Request row, such as GET/images/logo.gif HTTP/1.1 are represented and asked from under/images catalogues
Logo.gif this file.(Request)Head, such as Accept-Language:En, null and other message bodies.
One " browser sends request-server and sends response " after the cycle, between release browser and server
TCP connection.
Domain name is by a certain computer on the Internet that constitutes of name for being separated with point for a string or calculates the name of unit
Claim, for the electronic bearing for identifying computer in data transfer.In embodiments of the present invention, domain name is used for identifying different clothes
Business device.
It is alternatively possible to set unified domain(Domain)To manage one or more of domain names.Domain is only in the Internet
The unit of vertical operation, mutually accessing between domain then needs to set up trusting relationship, and trusting relationship is the bridge being connected between domain and domain
Beam.After a domain and other domains establish trusting relationship, not only can mutually be managed on demand between 2 domains, may be used also
Distribute the device resource such as file and printer with inter-network, make the shared and management that Internet resources are realized between different domains.Domain reality
It is exactly the set of one group of server and work station on border.
S102:The whois lookup process corresponding with domain name of the request is received, and by described corresponding
The process process request.
The server for receiving request can be the corresponding server of domain name, when the server and the domain that receive the request
Name processes the request to whois lookup process corresponding with domain name during correspondence by the corresponding process.
When receive the server of the request and the domain name not to it is corresponding when server send the request to service corresponding with the domain name
Device, corresponding with domain name whois lookup process corresponding with domain name, and institute is processed by the corresponding process
State request.
After server and browser are set up and be connected the task of completing, the connection is discharged, but be to continue with protecting in the server
The process of this connection, and the one-to-one relationship of preservation domain name and process in the server are stayed, is browsed when receiving again
During the request of device, directly asked to the process of corresponding process according to domain name lookup.
Because in the embodiment of the present invention, the operation that is written and read every time between browser and server is required for setting up new
Connection, and due to setting the corresponding relation of domain name and process, therefore, when new connection is set up, server is without again
Resource is searched, directly can be asked by the process of corresponding process, so as to save Internet resources, realize the load that webpage IM is accessed
It is balanced.
After browser receives the request of user, in order to effectively improve the effect that browser sends request to server
Rate, in embodiments of the present invention, the browser sends request by webpage IM to server to be included:
The browser selects domain name from domain name list;
The domain name of selection is carried in the request and sent by the browser.
Domain name list is pre-configured with a browser, and domain name list includes the domain name of one or more servers, domain name
List there may be in the caching of browser.Also, when browser server corresponding with the domain name not in domain name list is built
After vertical connection, the domain name is loaded in domain name list the renewal for realizing domain name list.
Each domain name in domain name list can be independent of one another, for example, refers to the domain name 10 of table 1, domain name 20, domain name 30, domain
Name 40, independent of one another between domain name 50 and domain name 60, the address information of each corresponding server of domain name correspondence.
Domain name 10 |
Domain name 20 |
Domain name 30 |
Domain name 40 |
Domain name 50 |
Domain name 60 |
Table 1
Multiple domain name ponds can also be included in domain name list, one or more domain names are included in each domain name pond, for example, please
Referring to table 2, domain name 110 and domain name 120 are included in domain name pond 1, and domain name 130 and domain name 140 are included in domain name pond 2, domain name
150 and domain name 160 be included in domain name pond 3.The corresponding server of different domain names in domain name pond can have identical attribute
Information, such as corresponding server physical position of domain name in same domain name pond relatively, or belongs to identical network segment etc..
Table 2
There can be multiple domain name correspondence identical domain name ponds in the domain name list of browser configuration, when browser is in request
The domain name of middle loading is located in certain domain name pond, and receive the request can be the corresponding service of other domain names in the domain name pond
Device, for example, carries domain name 110 in the request that browser sends, domain name 110 and domain name 120 are included in domain name pond 1, receive
The possibility of the request is the corresponding server B of domain name 120, and server B is received after the request, forwards the request to domain name
110 corresponding server As, server A is found with after the corresponding process of domain name 110, and by the process request is processed.
For the result of process process request, browser can be fed back to by the following two kinds mode:One kind is server A
The configuration of territory mutual trust that the domain and server B at place is located, is browsed by the result of server B return server A
The browser of device carries out rendering displaying;Another kind is that result is directly fed back to browser by server A.
Fig. 2 is a kind of detailed access procedure of webpage IM that the embodiment of the present invention one is provided, and the process is comprised the following steps:
S201:The request that browser receive user is sent by webpage IM.
S202:Browser selects domain name from domain name list, and one or more domain names chosen are carried in the request
In and be sent to server.
Alternatively, the one-one relationship set up between domain name and process, the browser chooses head by dynamic script
The included domain name of secondary transmission IM requests.Process is one and has the program of standalone feature with regard to the once fortune of certain data acquisition system
Row activity.It can apply for and possess system resource, be a dynamic concept, be the entity of an activity.
S203:Server receives the request, searches process corresponding with domain name, and by the corresponding process at
Manage the request.
When server receives the request of browser transmission, when the targeted resource of the request does not support the requesting method
When, server will return conditional code 405 to browser(Method Not Allowed), when server can not be recognized or not
When supporting corresponding requesting method, server will return conditional code 501 to browser(Not Implemented).
When the error report of server return is received, in order to realize that browser is connected with the foundation before server,
The method also includes:
When the browser receives the error report of the corresponding server feedback of domain name, the browser is from domain
New domain name is selected in list of file names;
The new domain name chosen is carried and sent in the request by the browser.
When the corresponding server failure of domain name, or the connection error between browser server corresponding with domain name
When, error report is fed back to browser, browser selects new domain name from domain name list again, and the new domain name chosen is carried
Send in the request.
Fig. 3 is a kind of detailed access procedure figure of webpage IM that the embodiment of the present invention two is provided, and the process includes following step
Suddenly:
S301:Browser is sent to server by webpage IM and is asked, and the request includes one or more domain names.
S302:Server receives the request, and searches server corresponding with the domain name, judges clothes corresponding with the domain name
Whether business device is itself, when judged result is to be, itself processes the request, otherwise, carries out step S303.
S303:Server corresponding with the domain name is sent the request to, judges whether the corresponding server of the domain name is former
Hinder, or whether the connection between browser server corresponding with domain name malfunctions, when there is any of the above-described situation, server
Error report, otherwise, server process request corresponding with the domain name are fed back to browser.
S304:Browser reselects one or more domain names, and step S302 is carried out afterwards.
Because in the embodiment of the present invention, the operation that is written and read every time between browser and server is required for setting up new
Connection, and due to setting the corresponding relation of domain name and process, therefore, when new connection is set up, server is without again
Resource is searched, directly can be asked by the process of corresponding process, so as to save Internet resources, realize the load that webpage IM is accessed
It is balanced.
Fig. 4 is a kind of web browser structure chart provided in an embodiment of the present invention, and the browser 40 includes:Input interface
41st, processor 42 and FPDP 43, wherein:
The input interface 41, for receiving the request of webpage IM;
The processor 42, carries in webpage IM requests for choosing one or more domain names;
The FPDP 43, for webpage IM requests to be sent to into server.
Wherein input interface 41 can be keyboard, mouse etc., and processor 42 can be any chip with disposal ability,
FPDP 43 can realize the antenna that request sends, or network interface card etc..
Wherein web browser also includes:
Domain name list 44, for preserving each domain name;
The processor 42, specifically for selecting domain name from domain name list, the domain name chosen is carried described
In webpage IM requests.
Wherein processor 42, specifically for the one-one relationship set up between domain name and process, is selected by dynamic script
Take and send the included domain name of IM requests first.
Wherein described FPDP 43, is additionally operable to receive the error report of the corresponding server feedback of domain name;
The processor 42, is additionally operable to select new domain name to carry the transmission in the request.
Because in the embodiment of the present invention, the operation that is written and read every time between browser and server is required for setting up new
Connection, and due to setting the corresponding relation of domain name and process, therefore, when new connection is set up, server is without again
Resource is searched, directly can be asked by the process of corresponding process, so as to save Internet resources, realize the load that webpage IM is accessed
It is balanced.
Fig. 5 is a kind of structure chart of the access system of webpage IM provided in an embodiment of the present invention, refers to Fig. 5, webpage IM
Access system, including:Browser 501 and server 502.
Browser 501, is asked for being sent to server by webpage IM, and the request includes one or more domains
Name;
The server 502, for after the request for receiving the browser, searching process corresponding with domain name,
And the request is processed by the corresponding process.
Specific browser may be located in PC, or in mobile terminal as shown in Figure 5.
Wherein, the browser 501, specifically for selecting domain name from domain name list;The domain name chosen is carried in institute
State in request and send.
The browser 501, specifically for the unified domain of setting one or more of domain names are managed.
The browser 501, specifically for the one-one relationship set up between domain name and process, is selected by dynamic script
Take and send the included domain name of IM requests first.
The server 502, is additionally operable to send error report to browser;
The browser 501, when being additionally operable to receive the error report of the corresponding server feedback of domain name, from domain name
New domain name is selected in list;The new domain name chosen is carried and is sent in the request.
The server 502, be additionally operable to receive the server of the request and domain name to it is corresponding when search with it is described
The corresponding process of domain name, and the request is processed by the corresponding process;Or, when the server for receiving the request
With domain name not to it is corresponding when forward the request to server corresponding with domain name;By server corresponding with domain name
Process corresponding with domain name is searched, and the request is processed by the corresponding process.
Embodiments provide the cut-in method and web browser of a kind of webpage IM.The webpage of the embodiment of the present invention
In the cut-in method of IM, browser sends the request for carrying one or more domain names, server by webpage IM to server
After receiving the request, process corresponding with the domain name is searched, the request is processed by the corresponding process.Due to of the invention real
In applying example, the operation that is written and read every time between browser and server is required for setting up new connection, and due to setting
The corresponding relation of domain name and process, therefore, when new connection is set up, server can directly lead to without resource is searched again
Cross corresponding process and process request, so as to save Internet resources, realize the load balancing that webpage IM is accessed.
Provided herein algorithm and display be not inherently related to any certain computer, virtual system or other equipment.
Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and helping understand each inventive aspect one or more, upper
In the face of the present invention exemplary embodiment description in, the present invention each feature be grouped together into sometimes single embodiment,
In figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required for protection
The more features of feature that application claims ratio is expressly recited in each claim.More precisely, such as following power
As sharp claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, letter is abided by
Thus claims of specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim itself is made
For the separate embodiments of the present invention.
Those skilled in the art are appreciated that can adaptively be changed to the module in the equipment in embodiment
Become and they are arranged in one or more equipment different from the embodiment.Can be the module or unit in embodiment
Or component is combined into a module or unit or component, and multiple submodule or subelement or son can be divided into herein
Component.In addition at least some in such feature and/or process or unit is excluded each other, any group can be adopted
Close to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed any
All processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint right
Require, make a summary and accompanying drawing)Disclosed in each feature can be by providing identical, equivalent or the alternative features of similar purpose carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiment
In included some features rather than other features, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint
One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor(DSP)To realize the access system and webpage of webpage IM according to embodiments of the present invention
The some or all functions of some or all parts in browser.The present invention is also implemented as performing institute here
Some or all equipment of the method for description or program of device(For example, computer program and computer program are produced
Product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or to appoint
What other forms is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims,
Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.Word first, second and third use do not indicate that any order.These words can be explained and be run after fame
Claim.