CN105592132B - Pass through the method for network provided data - Google Patents
Pass through the method for network provided data Download PDFInfo
- Publication number
- CN105592132B CN105592132B CN201510399260.5A CN201510399260A CN105592132B CN 105592132 B CN105592132 B CN 105592132B CN 201510399260 A CN201510399260 A CN 201510399260A CN 105592132 B CN105592132 B CN 105592132B
- Authority
- CN
- China
- Prior art keywords
- data
- content item
- identifier symbol
- web
- whole
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Abstract
The embodiment of the present invention is related to the method by network provided data, and method, the method for the offer data executed in the server of offer data for relating more specifically to the method by network provided data, executing in a browser, and execute the browser and server of correlation method.By the method for network provided data, this method comprises: generating HTTP request in browser end, which being sent to server to establish HTTP connection, the HTTP request is related to the content item that one or more Web is applied;In the server end, receive the HTTP request, whether the data for periodically detecting the content item of one or more of Web applications change, when judgement changes, the data of one or more of Web of update content item applied are transferred to the browser end by http response.
Description
Technical field
The embodiment of the present invention is related to the method by network provided data, and relates more specifically to provide by network
The method of data, the method for the offer data executed in a browser, the method for the offer data executed in the server, and
Execute the browser and server of correlation method.
Background technique
HTTP(Hypertext Transport Protocol) is a kind of for transmitting the Internet protocol of the content in Web application.HTTP is
One kind is in client/server (C/S) agreement, and wherein client sends request, and by server returning response.In some feelings
Under condition, client is the browser application (Web browser) executed on such as personal computer or mobile communication equipment.Clothes
Business device is capable of handling the HTTP request from browser, and returns to http response to browser, wherein the web content being passed
It is delivered to browser in the form of hypertext markup, and is displayed in the user interface of browser.
In traditional Web application, http response is returned in the form of the new page, this will cause the waste of resource,
Because most of code in the new and old page is identical.In addition, the primary interaction between browser and server is based on primary
HTTP request and occur, this will lead to the slower response time of the user interface of browser, and will also result in the wave of resource
Take.
On the one hand, some browsers have supported that XmlHttpRequest object can be called using JavaScript function
To execute HTTP request and handle http response.Since specific server can be returned in XmlHttpRequest response
The content of the change of side, this mechanism improve the effect of the interaction between the browser and server carried out by user interface
Rate.It is referred to as Ajax using the process that JavaScript and XmlHttpRequest generate this page to program.Ajax is asynchronous
JavaScript and XML(Asynchronous JavaScript And XML) abbreviation.Therefore, the Web based on Ajax technology
Data on a user interface are presented using that can safeguard in the case where not updating full page.
On the other hand, some browser/server (B/S) communication systems are using referred to as long poll (long polling)
Method realize the asynchronous communication based on http protocol.In long poll method, browser generates and sends HTTP request to clothes
Business device, then server keeps the HTTP connection being established;When the state of the corresponding content of server side changes, clothes
Business device by state change notification browser and closes the HTTP connection;In response to the state change, browser just to server again
Secondary transmission HTTP request is to update content of pages.Pass through the interaction between the browser and server of user interface progress as a result,
Efficiency improved because browser does not need the browser in the unchanged situation of content of server side and continually sends
HTTP request.
Ajax programming and long poll are combined, when the state (for example, content of server side) of Web application changes,
Asynchronous change accurately will be transmitted to browser from server, and these changes are in step by step with its sequence occurred
In present Web page.Web application is capable of providing Real-time Data Service by this method, for example, security monitoring and environmental monitoring.
It is desirable that, providing a kind of significantly more efficient method by network provided data.
Summary of the invention
One or more aspects according to the present invention provide following scheme.
A method of by network provided data, this method comprises: HTTP request is generated, by this in browser end
HTTP request is sent to server to establish HTTP connection, and the HTTP request is related to the content item that one or more Web is applied;
In the server end, the HTTP request is received, periodically detects the data of the content item of one or more of Web applications
Whether change, when judgement changes, the data of one or more of Web of update content item applied are passed through
Http response is transferred to the browser end.
Optionally, which includes first identifier symbol, first identifier symbol instruction as a whole one or
The data of the content item of multiple Web applications;In the server end, according to including the first identifier in the HTTP request
Symbol judges whether the data of the content item of one or more of Web applications change as a whole, when judgement changes
When, the data of one or more of Web of update content item applied are transferred to the browser end by http response.
Optionally, in the server end, the content item of the one or more of Web application of instruction as a whole is generated
Data second identifier symbol, when the second identifier symbol with the first identifier symbol it is not identical when judge one or more of Web
The data of the content item of application have occurred and that change as a whole.
Optionally, when the data for the content item for judging one or more of Web applications have occurred and that change as a whole
When, the http response further includes described the other than the data of one or more of Web of update content item applied
Two identifiers.
Optionally, this method further includes storing the second identifier symbol in the browser end, the second identifier symbol will
It is comprised in HTTP request next time, is used to indicate one or more of Web application of the update as a whole
The data of content item.
Optionally, the first identifier symbol and second identifier symbol are the content items of Web application based on one or more
Data HASH value.
Optionally, in the server end, the data of the content item of one or more of Web applications are periodically detected
Whether change, when not changing by predetermined time period judgement, it is not sent that Xiang Suoshu browser end returns to instruction
The http response of change is then shut off the HTTP connection.
A method of the offer data executed in a browser, comprising: generate HTTP request, which is sent
To server to establish HTTP connection, the HTTP request is related to the content item that one or more Web is applied;From the server
End receives http response, which includes the data of the content item of the one or more of Web application updated.
Optionally, which includes first identifier symbol, first identifier symbol instruction as a whole one or
The data of the content item of multiple Web applications, wherein first identifier symbol is one or more for judging for the server end
Whether the data of the content item of a Web application change as a whole.
It optionally, further include second identifier symbol from the received server-side http response, second identifier symbol is in institute
The data of the content item of the one or more of Web application of the instruction of server end generation as a whole are stated, this method is also wrapped
The storage second identifier symbol is included, second identifier symbol will be comprised in the HTTP request next time, be used to indicate work
For the data of the content item of one or more of Web application of the whole update.
A method of the offer data executed in the server, comprising: receive HTTP request, the HTTP from browser end
It requests related to the content item that one or more Web is applied;It generates http response and returns to the HTTP to the browser
Response, wherein the http response includes the data of the content item of the one or more of Web application updated.
Optionally, which includes first identifier symbol, first identifier symbol instruction as a whole one or
The data of the content item of multiple Web applications, this method further include judging that one or more of Web are answered using first identifier symbol
Whether the data of content item change as a whole.
Optionally, this method further includes generating second identifier symbol, is used to indicate one or more of Web as a whole
The data of the content item of application;Judge when second identifier symbol and not identical first identifier symbol one or more of
The data of the content item of Web application have occurred and that change as a whole.
Optionally, generate include the update the data and described the of content item applied of one or more of Web
The http response of two identifiers.
It is a kind of provide data in browser, comprising: the HTTP request is sent to service by the module for generating HTTP request
For device to establish HTTP connection, the HTTP request is related to the content item that one or more Web is applied;From the received server-side
The module of http response, the http response include the data of the content item of the one or more of Web application updated.
Optionally, which includes first identifier symbol, first identifier symbol instruction as a whole one or
The data of the content item of multiple Web applications, wherein first identifier symbol is one or more for judging for the server end
Whether the data of the content item of a Web application change as a whole.
It optionally, further include second identifier symbol from the received server-side http response, second identifier symbol is in institute
State the data of the content item of the one or more of Web application of the instruction of server end generation as a whole, the browser
It further include the module for storing the second identifier symbol, second identifier symbol will be comprised in the HTTP request next time,
It is used to indicate the data of the content item of one or more of Web application of the update as a whole.
It is a kind of provide data in server, comprising: from browser end receive HTTP request module, the HTTP request with
The content item of one or more Web applications is related;It generates http response and returns to the http response to the browser
Module, wherein the http response includes the data of the content item of the one or more of Web application updated.
Optionally, which includes first identifier symbol, first identifier symbol instruction as a whole one or
The data of the content item of multiple Web application, the browser further include judged using first identifier symbol it is one or more of
The module whether data of the content item of Web application change as a whole.
Optionally, server further include: generate the module of second identifier symbol, second identifier symbol is used to indicate as whole
The data of the content item of one or more of Web application of body;When second identifier symbol and first identifier symbol be not identical
When judge that the data of the content item of one or more of Web application have occurred and that the module of change as a whole.
Optionally, the server includes the content item for generating one or more of Web including the update and applying
Data and the second identifier symbol http response module.
Various embodiments of the present invention provide the improved method by network provided data, wherein to a certain extent
The consumption of resource can be reduced, mitigate the burden of browser.Moreover, the improved of the embodiment of the present invention provides number by network
According to method make transmission mode and business realizing independent, scalability with higher.
The other feature and advantage that also will be understood that the embodiment of the present invention when being read in conjunction with the figure and being described below, wherein attached
Figure shows the principle of the embodiment of the present invention by means of example.
Detailed description of the invention
By means of example, from features as discussed above, the above and other aspect of each embodiment of the invention,
Feature and benefit will be apparent.
Fig. 1 shows the method by network provided data of embodiment according to the present invention.
Fig. 2 shows the methods by network provided data of embodiment according to the present invention.
The method that Fig. 3 shows the offer data according to an embodiment of the present invention executed in a browser.
The method that Fig. 4 shows the offer data according to an embodiment of the present invention executed in the server.
Fig. 5 is an example according to an embodiment of the present invention for executing poll in a browser.
Fig. 6 is an example according to an embodiment of the present invention for executing poll in the server.
Specific embodiment
Hereinafter, the principle of the present invention and purport are described into reference implementation example.It should be understood that the embodiment provided
The present invention and further the practice present invention are more fully understood just for the sake of those skilled in the art, rather than limit the present invention
Range.For example, a part as one embodiment is illustrated or the feature of description can be used in combination with another embodiment and
Generate another embodiment.For clarity, all features of actual implementation mode are not described in the present specification.It is aobvious
So, it is to be appreciated that in the practical research and development of any this embodiment, for the specific objective for realizing developer, foundation system
Relevant to constrain constraint relevant with business, embodiment will be different.
Fig. 1 shows the method by network provided data of embodiment according to the present invention.Fig. 1 is depicted in server end
Data when changing, the data of update are provided to the process of browser end.As shown in Figure 1, browser and server it
Between interaction realized by HTTP request and http response.In this embodiment, HTTP request is generated in browser end first, it should
HTTP request is sent to server end and establishes HTTP connection whereby.Keep the connection in server end, and with it is scheduled when
Between be spaced detection service device end data mode associated with the HTTP request.When detecting that data change, such as
It is that the data updated are back to browser in http response by the data after change during second of detection data state
End.Then, the http response is handled in browser end, it is corresponding interior in the page including being presented on the data of received update
Hold in item (page elements such as textview field, drop-down list).After the completion of HTTP respective handling, which will be closed.?
After scheduled time interval, new HTTP request will be sent from browser end.It, will be in server end according to the new HTTP request
The detection of periodic data mode is carried out again.In this embodiment, before the data of server end do not update, browsing
Device will not continually send HTTP request, and when the data for judging server end have update, the data of update will be direct
Browser is passed to first from state change notification is sent, retransmits the data of update.The consumption of resource as a result, will be into
One step is lowered.
Fig. 2 shows the methods by network provided data of embodiment according to the present invention.Fig. 2 is depicted in server end
Data when changing, the data of update are provided to the process of browser end.
As shown in Fig. 2, in this embodiment, browser sends the HTTP request accorded with comprising first identifier to server.It should
The data of the content item of the one or more of Web application of first identifier symbol instruction as a whole.Server is according to being included in
First identifier symbol in the HTTP request periodically detects data mode to judge one or more of Web applications
Whether the data of content item change as a whole, and when judgement changes, one or more of Web of update are answered
The data of content item are transferred to the browser end by http response.In the method for the offer data, instruction is used
The identifier of the data of the content item of one or more of Web application as a whole can be improved the scalability of method, because
It is the identifier independently of specific business information.It does not need as a result, when browser sends HTTP request by specific content item
Version number or data variation timestamp as required parameter, and server does not need to safeguard corresponding specific content item yet
Version number or data variation timestamp.In this way, alleviating the burden of browser, and improve the scope of application.
With continued reference to Fig. 2, now description is periodically detected an example process of data mode.As described above, server
According to including that periodically detect data mode one or more to judge for first identifier symbol in the HTTP request
Whether the data of the content item of a Web application change as a whole.Specifically, it in the server end, generates instruction and makees
For the data second identifier symbol of the content item of whole one or more of Web application, when second identifier symbol and described the
One identifier judges that the data of the content item of one or more of Web applications have occurred and that change as a whole when not identical.
That is, server for server side corresponding one or more Web application content item data periodically
Second identifier symbol is generated, and the received first identifier symbol of second identifier Fu Yucong browser is compared, it is clear to judge
Whether the data of the content item of one or more of Web application of device of looking at request change as a whole.This can be with
Such as realized by HASH algorithm, wherein generate the content item of the one or more of Web application of instruction as a whole
The first HASH value of data, and generate the number of the content item of the corresponding one or more of Web applications of instruction as a whole
According to the 2nd HASH value of (i.e. newest data), judge that browser page is existing by comparing the first HASH value and the 2nd HASH value
Whether need to be updated in the page data of presentation.
As described above, when judgement changes, by the data of one or more of Web of update content item applied
The browser end is transferred to by http response.That is, when server judges content item corresponding with browser page
When the data of server side change, i.e. browser page data needs are updated, and server is by the one of update
Or the data of the content item of multiple Web applications are transferred to the browser end by http response.Here, if it is one or
Any one of data of content item of multiple Web application need to be updated, then server is by one or more of Web
As a whole, content item including update and the content item not updated pass to browser to the data of the content item of application.This is
Advantageous, because requested data are labeled as a whole, browser and server does not need additional resource to track
The variation of single datum.
With continued reference to Fig. 2, some optional processes are also shown in Fig. 2.As shown, one or more of when judging
When the data of content item of Web application have occurred and that change as a whole, the http response in addition to the one of update or
It further include the second identifier symbol except the data of the content item of multiple Web applications.And described in being stored in the browser end
Second identifier symbol, second identifier symbol will be comprised in HTTP request next time, be used to indicate as a whole it is described more
The data of the content item of new one or more of Web application.By the one or more of of the update as a whole
The data and second identifier symbol of the content item of Web application return to browser together, it is possible to reduce the number of HTTP request, and
When initiating HTTP request by browser next time, it is only necessary to the identifiers from browser wherein comprising storage.
As shown in Fig. 2, after server returns to second identifier symbol and the data updated, HTTP connection can by relationship, when
Browser can initiate new HTTP request after having handled the http response.However, in server end, when by the scheduled time
When section judgement does not change, Xiang Suoshu browser end returns to the http response for indicating not sent change, is then shut off described
HTTP connection is to discharge resource.In one example, browser end returns to empty content to reduce transmission quantity, answers to reach optimization
The purpose answered.
Fig. 1 as described above and method shown in Fig. 2 are noticed merely to showing the principle of the present invention, rather than is limited
The scope of the present invention.In fact, method shown in Fig. 2 is only another embodiment of method shown in FIG. 1, and this field skill
Art personnel will readily occur to other possible embodiments.
Fig. 3 is the method for the offer data according to an embodiment of the present invention executed in a browser.As shown in figure 3, the reality
The method for applying example includes step 310 and step 320.In the step 310, the HTTP request comprising first identifier symbol is sent;In step
In rapid 320, the http response comprising second identifier symbol is received.First identifier symbol and second identifier symbol all with one or more Web
The content item of application is related, specifically, the content item of first identifier symbol and all instruction one or more Web applications of second identifier symbol
Data state as a whole.It is it to current one or more Web that first identifier symbol, which is for browser,
The understanding of the state of the data of the content item of application, second identifier symbol is it to current one or more for browser
The understanding of the state of the data of the content item of Web application.Second identifier symbol is generated in server end, indicates newest one or more
The state of the data of the content item of a Web application.When server judges that second identifier symbol is different from first identifier symbol, will update
In the data for the content item that one or more of Web of browser end are applied.
It is an example of the embodiment of the present invention according to Fig.3, below.In this example, it executes in a browser
The method for providing data includes generating HTTP request, which is sent to server to establish HTTP connection, the HTTP
It requests related to the content item that one or more Web is applied;And from the received server-side http response, the http response
The data of the content item of one or more of Web application including update.The HTTP request is accorded with comprising first identifier, this first
The data of the content item of the one or more of Web application of identifier instruction as a whole, wherein first identifier symbol is used for
Judge whether the data of the content item of one or more of Web applications change as a whole for the server end.From
The received server-side http response further includes second identifier symbol, and second identifier symbol is the finger generated in the server end
The data of the content item of whole one or more of Web application are shown as, this method further includes storing the second identifier
Symbol, second identifier symbol will be comprised in the HTTP request next time, be used to indicate the update as a whole
The data of the content item of one or more of Web applications.
As previously mentioned, the first of the state of the data of the content item of instruction one or more Web application as a whole
Identifier and second identifier symbol can be the HASH value generated according to the data of the content item of one or more Web application.
Fig. 4 is the method for the offer data according to an embodiment of the present invention executed in the server.As shown in figure 4, the reality
The method for applying example includes step 410 and step 420.In step 410, the HTTP request comprising first identifier symbol is received;In step
In rapid 420, the http response comprising second identifier symbol is sent.First identifier symbol and second identifier symbol all with one or more Web
The content item of application is related, specifically, the content item of first identifier symbol and all instruction one or more Web applications of second identifier symbol
Data state as a whole.It is it to current one or more Web that first identifier symbol, which is for browser,
The understanding of the state of the data of the content item of application, second identifier symbol is it to current one or more for browser
The understanding of the state of the data of the content item of Web application.Second identifier symbol is generated in server end, indicates newest one or more
The state of the data of the content item of a Web application.When server judges that second identifier symbol is different from first identifier symbol, will update
In the data for the content item that one or more of Web of browser end are applied.
It is an example of the embodiment of the present invention according to Fig.4, below.In this example, it executes in the server
There is provided the method for data, comprising: receive HTTP request from browser end, which applies interior with one or more Web
Hold Xiang Xiangguan;It generates http response and returns to the http response to the browser, wherein the http response includes updating
One or more of Web application content item data.The HTTP request is accorded with comprising first identifier, and first identifier symbol refers to
The data of the content item of whole one or more of Web application are shown as, this method further includes according with using the first identifier
Judge whether the data of the content item of one or more of Web applications change as a whole.This method further includes generating
Second identifier symbol is used to indicate the data of the content item of one or more of Web application as a whole;When the second identifier
Judge the data of the content item of one or more of Web application as a whole when symbol and not identical first identifier symbol
It changes.Wherein, this method includes generating the data for the content item that one or more of Web including the update are applied
With the http response of second identifier symbol.
As previously mentioned, the first of the state of the data of the content item of instruction one or more Web application as a whole
Identifier and second identifier symbol can be the HASH value generated according to the data of the content item of one or more Web application.
Fig. 5 is an example according to an embodiment of the present invention for executing poll in a browser.The polling method of the example
Since 501.In 502, using lastHash as required parameter, Ajax request is sent.Here, lastHash instruction is requested
The final state of content item in a browser.In 503, response is received from server.In 504, judge that the response content is
It is no for sky, when judging result be it is yes, method is carried out to 507, judge whether in 507 stop poll, when judging result be it is no, just
Method is carried out to 505, wherein be lastHash locally recording the hash in the response, so that more new content item is in a browser
Final state.Then in 506, response is handled, the content item updated in response is presented on the page.In 507, judgement is
No stopping poll.Finally, poll terminates 508.
Fig. 6 is execute in the server a example according to an embodiment of the present invention.The polling method of the example is from 601
Start.In 602, hash value of the record from browser is reqHash.In 603, according to the content of the Web of request application
The corresponding illustrative data source 1 and 2 of item generates response data.In 604, new hash is generated according to the response data of generation
Value, is recorded as newHash.Then, in 605, judge whether newHash and reqHash is equal.When judging result is yes, side
Method enters 607, and new content, the i.e. response data different from browser page is presented on wherein are being exported to browser, and
NewHash is also exported, subsequent method terminates 608.When judging result be it is no, method enter 606, judge detection cycle wherein
It is whether overtime.When judging result be it is yes, to browser export empty content, subsequent method 608 terminate.When judging result be it is no,
Method enters 608, and executes waiting, such as after 200ms, be back to 603.
Fig. 1 to each process shown in fig. 6 can be considered as due to operation computer program code caused by operation,
And/or it is considered as the functional module for being configured to implement correlation function (several functions).Similarly, although operating in a specific sequence
It is depicted in figure, but this is understood not to require the particular order shown in or executes these behaviour in sequential order
Make, or the operation of all illustrations is required to be performed, to do the trick.In some cases, multi-task parallel processing can
It can be advantageous.Although this specification includes many specific implementation details, these details are not necessarily to be construed as to any hair
The limitation of bright range or the range that may be claimed, but should be considered as can be specific to the particular implementation of specific invention
The description of the feature of example.The certain features described in the present specification in the context of respective embodiment can also be combined in list
Implement in one embodiment.On the contrary, the various features described in the context of single embodiment can also be respectively in multiple implementations
Implement in example or in any suitable sub-portfolio.
Those skilled in the relevant art implement aforementioned exemplary of the invention when aforementioned specification is read in conjunction with the figure
The various modifications of example and deformation can become obvious for those skilled in the relevant art.It is understood, therefore, that of the invention
Embodiment is not limited to disclosed specific embodiment, and variation and other embodiments are intended in appended claims
In range.
Claims (8)
1. a kind of method by network provided data, which is characterized in that this method comprises:
In browser end, HTTP request is generated, which is sent to server to establish HTTP connection, the HTTP request
It is related to the content item of one or more Web application;
Wherein, which accords with comprising first identifier, the one or more of Web of first identifier symbol instruction as a whole
The data of the content item of application,
In the server end, the HTTP request is received, periodically detects the content item of one or more of Web applications
Whether data change, wherein according to include in the HTTP request the first identifier symbol judge it is one or more
Whether the data of the content item of a Web application change as a whole, when judgement changes, by the one of update
Or the data of the content item of multiple Web applications are transferred to the browser end by http response,
In the server end, the data second of the content item of the one or more of Web application of instruction as a whole are generated
Identifier, when second identifier symbol and not identical first identifier symbol, the http response is one in addition to update
Or further include the second identifier symbol except the data of the content item of multiple Web applications,
The first identifier symbol and second identifier symbol are the HASH of the data of the content item of Web application based on one or more
Value.
2. the method as described in claim 1, which is characterized in that this method further includes, in browser end storage described the
Two identifiers, the second identifier symbol will be comprised in HTTP request next time, be used to indicate the update as a whole
One or more of Web application content item data.
3. the method as described in claim 1, which is characterized in that this method further includes,
In the server end, whether the data for periodically detecting the content item of one or more of Web applications change
Become, when not changing by predetermined time period judgement, Xiang Suoshu browser end returns to the HTTP for indicating not sent change
Response, is then shut off the HTTP connection.
4. the method for the offer data that one kind executes in a browser characterized by comprising
HTTP request is generated, which is sent to server to establish HTTP connection, the HTTP request and one or more
The content item of a Web application is related;
From the received server-side http response, which includes the interior of the one or more of Web application updated
Hold the data of item,
Wherein, which accords with comprising first identifier, the one or more of Web of first identifier symbol instruction as a whole
The data of the content item of application, wherein first identifier symbol is for judging that one or more of Web are answered for the server end
Whether the data of content item change as a whole,
It further include second identifier symbol from the received server-side http response, second identifier symbol is raw in the server end
At instruction as a whole one or more of Web application content item data,
This method further includes storing the second identifier symbol, and second identifier symbol will be comprised in the HTTP request next time
In, the data of the content item of one or more of Web application of the update as a whole are used to indicate,
The first identifier symbol and second identifier symbol are the HASH of the data of the content item of Web application based on one or more
Value.
5. the method for the offer data that one kind executes in the server characterized by comprising
HTTP request is received from browser end, the HTTP request is related to the content item that one or more Web is applied;
It generates http response and returns to the http response to the browser, wherein the http response includes the institute updated
The data of the content item of one or more Web applications are stated,
The HTTP request is accorded with comprising first identifier, the one or more of Web application of first identifier symbol instruction as a whole
Content item data,
This method further includes that the data for the content item for judging one or more of Web applications are accorded with using the first identifier as whole
Whether body changes,
This method further includes generating second identifier symbol, is used to indicate the content of one or more of Web application as a whole
The data of item;
The content item of one or more of Web applications is judged when second identifier symbol and not identical first identifier symbol
Data have occurred and that change as a whole,
The first identifier symbol and second identifier symbol are the HASH of the data of the content item of Web application based on one or more
Value.
6. method as claimed in claim 5, which is characterized in that
What the data and the second identifier for generating the content item that one or more of Web including the update are applied accorded with
Http response.
7. it is a kind of provide data in browser characterized by comprising
The module for generating HTTP request, is sent to server for the HTTP request to establish HTTP connection, the HTTP request and one
The content item of a or multiple Web applications is related;
From the module of the received server-side http response, which includes that the one or more of Web updated are answered
The data of content item,
Wherein, which accords with comprising first identifier, the one or more of Web of first identifier symbol instruction as a whole
The data of the content item of application, wherein first identifier symbol is for judging that one or more of Web are answered for the server end
Whether the data of content item change as a whole,
It further include second identifier symbol from the received server-side http response, second identifier symbol is raw in the server end
At instruction as a whole one or more of Web application content item data,
The browser further includes the module for storing the second identifier symbol, and second identifier symbol will be comprised in described next
In secondary HTTP request, the data of the content item of one or more of Web application of the update as a whole are used to indicate,
The first identifier symbol and second identifier symbol are the HASH of the data of the content item of Web application based on one or more
Value.
8. it is a kind of provide data in server characterized by comprising
The module of HTTP request is received from browser end, the HTTP request is related to the content item that one or more Web is applied;
It generates http response and returns to the module of the http response to the browser, wherein the http response includes more
The data of the content item of new one or more of Web application,
Wherein, which accords with comprising first identifier, the one or more of Web of first identifier symbol instruction as a whole
The data of the content item of application,
The browser further includes judging that the data of the content item of one or more of Web applications are made using first identifier symbol
For the whole module whether to change, the server further include:
The module of second identifier symbol is generated, second identifier symbol is used to indicate the application of one or more of Web as a whole
Content item data;
The content item of one or more of Web applications is judged when second identifier symbol and not identical first identifier symbol
Data have occurred and that the module of change as a whole,
The server includes that generate include the data of content item applied of one or more of Web of the update and described
The module of the http response of second identifier symbol,
The first identifier symbol and second identifier symbol are the HASH of the data of the content item of Web application based on one or more
Value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510399260.5A CN105592132B (en) | 2015-07-09 | 2015-07-09 | Pass through the method for network provided data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510399260.5A CN105592132B (en) | 2015-07-09 | 2015-07-09 | Pass through the method for network provided data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105592132A CN105592132A (en) | 2016-05-18 |
CN105592132B true CN105592132B (en) | 2019-05-10 |
Family
ID=55931338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510399260.5A Active CN105592132B (en) | 2015-07-09 | 2015-07-09 | Pass through the method for network provided data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105592132B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101764840A (en) * | 2009-12-29 | 2010-06-30 | 金蝶软件(中国)有限公司 | Method for providing WEB page data, WEB server and WEB application system |
CN101964810A (en) * | 2010-08-25 | 2011-02-02 | 北京神州泰岳软件股份有限公司 | Real-time information synchronization method based on browser |
CN102882974A (en) * | 2012-10-15 | 2013-01-16 | 焦点科技股份有限公司 | Method for saving website access resource by website identification version number |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9459936B2 (en) * | 2009-05-01 | 2016-10-04 | Kaazing Corporation | Enterprise client-server system and methods of providing web application support through distributed emulation of websocket communications |
-
2015
- 2015-07-09 CN CN201510399260.5A patent/CN105592132B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101764840A (en) * | 2009-12-29 | 2010-06-30 | 金蝶软件(中国)有限公司 | Method for providing WEB page data, WEB server and WEB application system |
CN101964810A (en) * | 2010-08-25 | 2011-02-02 | 北京神州泰岳软件股份有限公司 | Real-time information synchronization method based on browser |
CN102882974A (en) * | 2012-10-15 | 2013-01-16 | 焦点科技股份有限公司 | Method for saving website access resource by website identification version number |
Also Published As
Publication number | Publication date |
---|---|
CN105592132A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11588922B2 (en) | Capturing and replaying application sessions using resource files | |
CN108446974B (en) | Data processing apparatus, method and computer-readable storage medium | |
CN104067257B (en) | Automate event management system, management event method and event management system | |
US8739157B2 (en) | System and method for managing cloud deployment configuration of an application | |
US9059894B2 (en) | Data exchange technology | |
US20130326502A1 (en) | Installing applications remotely | |
CN105453035B (en) | Method for receiving the update to the component software for being stored in computer systems division | |
CN109766253B (en) | Performance data sending method and device, computer equipment and storage medium | |
CN103873502A (en) | Cache updating method and system, and update resource providing method and system | |
US9489190B1 (en) | Message processing engine | |
US10084637B2 (en) | Automatic task tracking | |
CN107045475B (en) | Test method and device | |
CN106598678A (en) | Method and device for supplying application installation packages to terminal equipment | |
US11846972B2 (en) | Method and apparatus for generating software test reports | |
US11556560B2 (en) | Intelligent management of a synchronization interval for data of an application or service | |
US10541854B2 (en) | Component loading based on user interactions | |
Kemer et al. | Performance comparison of scalable rest application programming interfaces in different platforms | |
CN105556918B (en) | A kind of resource downloading method and electronic equipment | |
US20230073190A1 (en) | Method for providing scraping-based service and application for executing the same | |
CN105592132B (en) | Pass through the method for network provided data | |
CN105743890B (en) | Authority information generation method and device | |
CN112825525A (en) | Method and apparatus for processing transactions | |
US20190332416A1 (en) | Natively monitoring software services | |
US9525754B1 (en) | Task-based approach to execution, monitoring and execution control of actions | |
US20220261338A1 (en) | Proactive monitoring of a software application framework |
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 |