CN109725929A - A kind of embedded webpage loading method and device - Google Patents

A kind of embedded webpage loading method and device Download PDF

Info

Publication number
CN109725929A
CN109725929A CN201811510138.0A CN201811510138A CN109725929A CN 109725929 A CN109725929 A CN 109725929A CN 201811510138 A CN201811510138 A CN 201811510138A CN 109725929 A CN109725929 A CN 109725929A
Authority
CN
China
Prior art keywords
webpage
target
embedded
client
embeds
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
CN201811510138.0A
Other languages
Chinese (zh)
Other versions
CN109725929B (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.)
Shanghai Zhongyuan Network Co Ltd
Original Assignee
Shanghai Zhongyuan Network Co 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 Shanghai Zhongyuan Network Co Ltd filed Critical Shanghai Zhongyuan Network Co Ltd
Priority to CN201811510138.0A priority Critical patent/CN109725929B/en
Publication of CN109725929A publication Critical patent/CN109725929A/en
Application granted granted Critical
Publication of CN109725929B publication Critical patent/CN109725929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a kind of embedded webpage loading method and device, in the loading method, when obtaining embedded webpage load instruction, the shell software version number of client is determined;According to shell software version number, the target in embedded webpage version corresponding with shell software version number is requested to embed webpage to server;It receives the target that server returns and embeds webpage, load target in the client and embed webpage.In this way, no matter the server embedded webpage version new either with or without publication, the embedded webpage that client is loaded is corresponding always with the version of shell software.

Description

A kind of embedded webpage loading method and device
Technical field
The present invention relates to technical field of internet application, more particularly to a kind of embedded webpage loading method and device.
Background technique
In the prior art, the method that client loads embedded webpage is, when obtaining embedded webpage load instruction, to clothes Device request of the being engaged in embedded webpage loads the corresponding embedded webpage of instruction, and then load is acquired in the client embeds Webpage.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
As long as server has issued new embedded webpage version, the embedded webpage of client load will therewith together more Newly, it is, the webpage version of the embedded webpage of client load is always the newest embedded webpage version of server publication. And for a user, when user does not update the shell software of client, the webpage version updating for embedding webpage is frequent, nothing Doubting causes the usage experience of user poor.
As it can be seen that client how is effectively ensured, to load embedded webpage corresponding with the version of shell software, be one urgently It solves the problems, such as.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of embedded webpage loading method and device, client is effectively ensured It is corresponding with the version of shell software to load embedded webpage.Specific technical solution is as follows:
The embodiment of the invention provides a kind of embedded webpage loading methods, are applied to client, which comprises
When obtaining embedded webpage load instruction, the shell software version number of the client is determined;
According to the shell software version number, the mesh of embedded webpage load instruction institute's request of loading is requested to server Mark embedded webpage, wherein the target embeds embedded webpage version belonging to webpage, corresponding with the shell software version number;
It receives the target that the server returns and embeds webpage, the target is loaded in the client and embeds net Page.
Optionally, described according to the shell software version number, to the server request embedded webpage load instruction institute Corresponding target embeds webpage, comprising:
Building carries the target HTTP request of the shell software version number in predetermined composition part;
Based on the target HTTP request, the target for requesting the embedded webpage load instruction corresponding to server is embedded Webpage.
Optionally, the predetermined composition part, comprising:
Message body, request header or the request row of the target HTTP request.
The embodiment of the invention provides a kind of embedded webpage loading methods, are applied to server, comprising:
When receiving the embedded web-page requests of client transmission, the shell software version number of the client is obtained;
Determine that target corresponding with the shell software version number embeds webpage version;
It is embedded from the target and extracts the embedded webpage of the corresponding target of the embedded web-page requests in webpage version;
Extracted target is embedded into webpage and feeds back to the client, so that the client loads in the target Embedding webpage.
Optionally, the embedded web-page requests are that the shell software version of the client is carried in predetermined composition part This number target HTTP request;
It is described when receive client transmission embedded web-page requests when, obtain the shell software version of the client Number, comprising:
When receiving the target HTTP request of client transmission, from the predetermined composition part of the target HTTP request Extract the shell software version number.
Optionally, described to embed that the corresponding target of the embedded web-page requests is extracted in webpage version is embedded from the target Webpage, comprising:
It determines and stores the storage server that the target embeds webpage version;
It is embedded in webpage version from the target that the storage server is stored, extracts the embedded web-page requests pair The target answered embeds webpage.
The embodiment of the invention provides a kind of embedded webpage loading devices, are applied to client, and described device includes:
Shell software version determining module, for determining the outer of the client when obtaining embedded webpage load instruction Shell software version number;
Embedded web-page requests module, for requesting the embedded webpage to server according to the shell software version number The target of load instruction institute's request of loading embeds webpage, wherein the target embeds embedded webpage version belonging to webpage, with institute It is corresponding to state shell software version number;
Loading module embeds webpage for receiving the target that the server returns, and adds in the client It carries the target and embeds webpage.
Optionally, the embedded web-page requests module, comprising:
Submodule is constructed, for constructing the target HTTP for carrying the shell software version number in predetermined composition part Request;
Submodule is requested, for being based on the target HTTP request, to the server request embedded webpage load instruction Corresponding target embeds webpage.
Optionally, the predetermined composition part, comprising:
Message body, request header or the request row of the target HTTP request.
The embodiment of the invention provides a kind of embedded webpage loading devices, are applied to server, and described device includes:
Module is obtained, for obtaining the shell of the client when receiving the embedded web-page requests of client transmission Software version number;
Embedded webpage version determining module, for determining that target corresponding with the shell software version number embeds webpage version This;
Extraction module extracts in the corresponding target of the embedded web-page requests for embedding in webpage version from the target Embedding webpage;
Feedback module feeds back to the client for extracted target to be embedded webpage, so that the client It loads the target and embeds webpage.
Optionally, the embedded web-page requests are that the shell software version of the client is carried in predetermined composition part This number target HTTP request;
The acquisition module obtains the shell of the client when receiving the embedded web-page requests of client transmission Software version number, comprising:
When receiving the target HTTP request of client transmission, from the predetermined composition part of the target HTTP request Extract the shell software version number.
Optionally, the extraction module, comprising:
Submodule is determined, for determining the storage server for storing the target and embedding webpage version;
Extracting sub-module extracts institute for embedding in webpage version from the target that the storage server is stored It states the corresponding target of embedded web-page requests and embeds webpage.
The embodiment of the invention provides a kind of client device, including processor, communication interface, memory and communication are total Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes that any of the above-described kind is applied to the interior of client Method and step described in embedding webpage loading method.
The embodiment of the invention provides a kind of server, including processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes that any of the above-described kind is applied to the interior of server Method and step described in embedding webpage loading method.
The embodiment of the invention provides a kind of computer readable storage medium, stored in the computer readable storage medium There is instruction, when run on a computer, so that computer, which executes any of the above-described kind, is applied to the interior of client or server Method and step described in embedding webpage loading method.
The embodiment of the invention provides a kind of computer program products comprising instruction, when run on a computer, So that computer executes method and step described in the embedded webpage loading method that any of the above-described kind is applied to client or server.
Embedded webpage loading method provided in an embodiment of the present invention can basis when obtaining embedded webpage load instruction The shell software version number of client embeds webpage to server request target, and it is soft in the shell which, which embeds webpage, In the corresponding embedded webpage version of part version number, the embedded webpage of embedded webpage load instruction institute's request of loading.In this way, nothing By the server embedded webpage version new either with or without publication, the version of embedded webpage and shell software that client is loaded is always It is corresponding.Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of flow chart of the embedded webpage loading method applied to client provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the embedded webpage loading method applied to server provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the embedded webpage loading device applied to client provided in an embodiment of the present invention Figure;
Fig. 4 is a kind of structural representation of the embedded webpage loading device applied to server provided in an embodiment of the present invention Figure;
Fig. 5 is a kind of structural schematic diagram of client device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
Shell software and the update of embedded webpage in order to solve the problems, such as client is nonsynchronous, the embodiment of the invention provides A kind of embedded webpage loading method and device.
It should be noted that being different from the webpage in conventional browser, embedded webpage refers in the shell software of client The webpage embedded.
In a first aspect, being carried out to a kind of embedded webpage loading method provided by angle of the embodiment of the present invention from client It is described in detail.As shown in Figure 1, a kind of embedded webpage loading method provided by angle of the embodiment of the present invention from client, it can With the following steps are included:
S101: when obtaining embedded webpage load instruction, the shell software version number of client is determined.
In this step, the shell software of client can be the native applications program of client, generally use the languages such as C++ Speech is to write.Shell software in the client function as browser, for loading the embedded webpage of client.
In order to solve prior art problem, when obtaining embedded webpage load instruction, and it is indirect to server request phase The embedded webpage answered, but determine the shell software version number of client, and then subsequent using shell software version number execution The step of.It should be noted that in this step, the user that the embedded webpage load instruction of acquisition can be client clicks Some link or button be formed by instruction, be also possible to the spontaneous instruction of client, can also be client it is received other The embedded webpage that equipment is sent loads instruction, the embedded webpage load instruction sent such as the received server of client.
In addition, client involved in the embodiment of the present invention, can be the client of any type, and such as: the client End can be instant messaging type, information type or multiple media types, etc..
S102: it according to the shell software version number, requests to add to the server request embedded webpage load instruction The target of load embeds webpage, wherein the target embeds embedded webpage version belonging to webpage, with the shell software version number It is corresponding.
It is understood that may include multiple embedded webpages in any embedded webpage version, and an embedded webpage adds Carry the embedded webpage that instructs and can load in embedded webpage version.Therefore, embedded net corresponding with shell software version number It may include multiple embedded webpages in page version, and target embeds webpage and can be in the requested embedded webpage version of client A specific embedded webpage.It should be noted that can preset about shell software version number and embedded webpage version Corresponding relationship, so that an embedded webpage version can be uniquely determined out after a given shell software version number, i.e., it is outer Shell software version number has decisive role to embedded webpage version.It, will be corresponding with shell software version number in order to quote conveniently Embedded webpage release-naming be target embed webpage version.
In step s 102, shell software version number can be embedded in corresponding to webpage load instruction directly as this Required parameter in embedding web-page requests, at this point, server can know the outer of client after receiving the embedded web-page requests Shell software version number and the embedded webpage load instruct the mark content of the embedded webpage of corresponding target.In turn, server exists After obtaining embedded web-page requests, can client-based shell software version number and embedded webpage load instruction institute it is right The mark content that webpage should be embedded determines that target embeds webpage.In addition, in other embodiments, it can also be by shell software Version number is individually sent to server, and server receives after embedded webpage load instructs corresponding embedded web-page requests, then According to the embedded webpage that the shell software version number received is in the embedded webpage version of client return target.
Optionally, in one implementation, described according to the shell software version number, it is described interior to server request The corresponding target of embedding webpage load instruction embeds webpage, may include:
Building carries the target HTTP request of the shell software version number in predetermined composition part;
Based on the target HTTP request, the target for requesting the embedded webpage load instruction corresponding to server is embedded Webpage.
It is understood that target HTTP request is the HTTP that the corresponding target of embedded webpage load instruction embeds webpage Request.It include the information of the shell software version number of client also, in the predetermined composition part of the HTTP request.
Optionally, the predetermined composition part of target HTTP request may include: request row, the request of target HTTP request Head or request text.Illustratively, shell software version number can be added in the uniform resource position mark URL of request row. Such as: http://www.abcde.com? t=6.8.9 is here shell software version in the 6.8.9 of URL added below This number.It is of course also possible to shell software version number be added to the other positions of URL, in this regard, the present invention is without limitation.In addition, Shell software version number can also be added to any position in the request header or request text of HTTP request.
It should be noted that shell software version number to be added to the request row, request header or request text of HTTP request In, do not need to increase with the additional interaction of server, avoid because being embedded with the client caused by additionally the interacting of server The slow problem of webpage loading velocity.
It is understood that in practical applications, the frequency of embedded webpage version updating is typically larger than shell software version The frequency of update.Therefore, if user is never updated the shell software of client, even if server has been sent out Cloth has crossed multiple new embedded webpage versions, and the shell software version number of client used in the user is still the same version Number, correspondingly, the target that client used in the user is obtained from server, which embeds webpage version, to change.And works as and use After family is updated the shell software of client, the frequency due to embedding webpage version updating is greater than shell software version more New frequency, therefore, the target that client used in the user is obtained from server embeds webpage very maximum probability also can be soft with shell Part updates together.
S103: it receives the target that server returns and embeds webpage, load target in the client and embed webpage.
It is embedded can to load the target after the target for receiving server return embeds webpage in the client for client Webpage, the specific loading method embodiment of the present invention is without limitation.
Embodiment in summary is it is found that the embedded webpage load side provided in an embodiment of the present invention applied to client Method can construct when obtaining embedded webpage load instruction and carry the shell software version number in predetermined composition part Target HTTP request, and be based on the target HTTP request, embed webpage to server request target, which embeds webpage For in the corresponding embedded webpage version of the shell software version number, the embedded webpage load instructs the interior of institute's request of loading Embedding webpage.In this way, no matter the server embedded webpage version new either with or without publication, the embedded webpage and shell that client is loaded The version of software is corresponding always.
In addition, if the shell software version of client does not update, the embedded webpage obtained from server or visitor The webpage in embedded webpage version that family end used originally.And once the shell software version of client is updated by user, accordingly , the embedded webpage obtained from server can also update therewith.Therefore, provided in an embodiment of the present invention applied to the interior of client Embedding webpage loading method may also reach up the effect that the version synchronization of the embedded webpage version and shell software that make client updates Fruit.
Second aspect carries out a kind of embedded webpage loading method provided by angle of the embodiment of the present invention from server It is described in detail.As shown in Fig. 2, a kind of embedded webpage loading method provided by angle of the embodiment of the present invention from server, it can With the following steps are included:
S201: when receiving the embedded web-page requests of client transmission, the shell software version number of client is obtained.
In this step, if in the embedded web-page requests that client is sent including the shell software version of client Number, then the shell software version number of client can be obtained directly from the embedded web-page requests that client is sent.In addition, It, can also be after the embedded web-page requests for receiving client transmission, then by other means from client in other embodiments End obtains the shell software version number of client, for example, sending the instruction for obtaining shell software version number to client.
Optionally, which can be the shell software version that client is carried in predetermined composition part Number target HTTP request;
Correspondingly, described when receiving the embedded web-page requests of client transmission, the shell for obtaining the client is soft Part version number may include:
When receiving the target HTTP request of client transmission, from the predetermined composition part of the target HTTP request Extract shell software version number.
Illustratively, the predetermined composition part of target HTTP request may include: the request row of target HTTP request, ask Ask head or request text.
It should be noted that from the request row of target HTTP request, request header or can be asked according to certain matching rule It asks in text, intercepts shell software version number.Also, directly from the request row of target HTTP request, request header or request text Middle acquisition shell software version number is not needed to increase the additional interaction with client, be avoided because of the additional interaction with client Caused embeds the slow problem of webpage to client feedback.
S202: determine that target corresponding with shell software version number embeds webpage version.
After getting the shell software version number of client, in order to solve prior art problem, it can determine and shell The corresponding target of software version number embeds webpage version, and then subsequent embed from target extracts the embedded net of target in webpage version Page.It should be noted that the corresponding relationship about shell software version number and embedded webpage version can be preset, make in this way An embedded webpage version can be uniquely determined out after a given shell software version number by obtaining, i.e., shell software version number is to embedded Webpage version has decisive role.
It is understood that in practical applications, the frequency of embedded webpage version updating is typically larger than shell software version The frequency of update.Therefore, if user is never updated the shell software of client, even if server has been sent out Cloth has crossed multiple new embedded webpage versions, and the shell software version number of client used in the user is still the same version Number, correspondingly, the target corresponding with shell software version number determined in this step, which embeds webpage version, to change. And after the shell software of user customer is updated, the frequency due to embedding webpage version updating is greater than shell software The frequency of version updating, therefore, it is very general that the target corresponding with shell software version number determined in this step embeds webpage Rate can also be updated with shell software.
S203: it is embedded from target and extracts the embedded webpage of the embedded corresponding target of web-page requests in webpage version.
It is understood that target, which embeds in webpage version, may include multiple embedded webpages, therefore, net is embedded from target The embedded corresponding target of web-page requests is extracted in page version and embeds webpage, be can be and is embedded in multiple in webpage version from target In embedding webpage, the requested specifically embedded webpage of client is extracted.Also, net is embedded given target in embedded web-page requests The embedded banner of page, in this way, after determining that target embeds webpage version, it can be based on the embedded banner, from mesh It marks the embedded corresponding target of web-page requests of extraction in embedded webpage version and embeds webpage.
Optionally, in one implementation, it is embedded from target and extracts the embedded corresponding mesh of web-page requests in webpage version Embedded webpage is marked, may include:
Determine that storage target embeds the storage server of webpage version;
It is embedded in webpage version from the target that storage server is stored, it is embedded to extract the embedded corresponding target of web-page requests Webpage.
It should be noted that can be by proxy server according to certain matching rule, directly by target HTTP request road By embedding the storage server of webpage version to storage target, depositing for webpage version can also be embedded from target by proxy server It stores up server and obtains the embedded webpage of the embedded corresponding target of web-page requests, target is then embedded into webpage and is sent to client.
It is understood that embedded webpage version can have servers that are multiple, and may being distributed in different.Therefore, Be responsible for by proxy server and client communication, handle the target HTTP request of client, can to avoid client directly with it is more A server interacts, so that the interactive mode of multithreading is simplified the interactive mode for single thread.
Illustratively, proxy server can be nginx proxy server.Here, nginx is by Igor Sai Suoye One high performance HTTP of husband's exploitation and reverse proxy service, in addition, nginx is also a kind of IMAP (Internet Mail Access Protocol, internet Mail Access Protocol)/POP3 (Post Office Protocol-Version 3, post office Protocol version 3)/SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer protocol) service.
S204: embedding webpage for extracted target and feed back to client, so that client load target embeds webpage.
After extracting target and embedding webpage, extracted target can be embedded into webpage and feed back to client.In this way, objective Family end can load the target and embed webpage, load and instruct so as to complete embedded webpage after obtaining the target and embedding webpage Response.
From above-described embodiment it is found that the embedded webpage loading method provided in an embodiment of the present invention applied to server, when When receiving the target HTTP request of client transmission, the shell software version of client is obtained from the target HTTP request Number, and determine that target corresponding to the shell software version number embeds webpage version, and store the target and embed webpage version Storage server.Then it is embedded in webpage version from the target that storage server is stored, it is corresponding to extract target HTTP request Target embed webpage.In this way, no matter the server embedded webpage version new either with or without publication, the embedded net that client is loaded Page is corresponding always with the version of shell software.
In addition, if the shell software of client does not update, the target for feeding back to client accordingly embeds webpage Also the target that still client used originally embeds the embedded webpage in webpage version.Once and the shell software version of client It is updated by user, correspondingly, it is also corresponding to updated shell software version that the target for feeding back to client, which embeds webpage, Webpage in new embedded webpage version.Therefore, the embedded webpage loading method provided in an embodiment of the present invention applied to server, It may also reach up the effect that the version synchronization of the embedded webpage version and shell software that make client updates.
The third aspect, corresponding to a kind of embedded webpage loading method, this hair provided by the above-mentioned angle from client Bright embodiment additionally provides a kind of embedded webpage loading device from the angle of client.As shown in figure 3, the embodiment of the present invention provides Embedded webpage loading device, be applied to client, described device includes:
Shell software version determining module 301, for determining the client when obtaining embedded webpage load instruction Shell software version number;
Embedded web-page requests module 302, for requesting the embedded net to server according to the shell software version number The target of page load instruction institute's request of loading embeds webpage, wherein and the target embeds embedded webpage version belonging to webpage, with The shell software version number is corresponding;
Loading module 303 embeds webpage for receiving the target that the server returns, and in the client It loads the target and embeds webpage, the specific loading method embodiment of the present invention is without limitation.
Wherein, it embeds web-page requests module 302 and shell software version number can be embedded webpage and loaded directly as this and refer to The required parameter in corresponding embedded web-page requests is enabled, at this point, server can obtain after receiving the embedded web-page requests Know the shell software version number of client and the mark content that the embedded webpage load instructs corresponding target to embed webpage.Into And server is after obtaining embedded web-page requests, it can client-based shell software version number and the embedded webpage The mark content of the corresponding embedded webpage of load instruction, determines that target embeds webpage.In addition, in other embodiments, embedding Shell software version number can also be individually sent to server by web-page requests module 302, and server receives the embedded webpage It is that client return target is embedded further according to the shell software version number received after load instructs corresponding embedded web-page requests Embedded webpage in webpage version.
Optionally, in one implementation, embedding web-page requests module 302 may include: building submodule and request Submodule.
Wherein, building submodule is for constructing the target HTTP for carrying shell software version number in predetermined composition part Request.
Submodule is requested to be used to be based on target HTTP request, the mesh for requesting embedded webpage load instruction corresponding to server Mark embedded webpage.
Optionally, the predetermined composition part for embedding HTTP request constructed by web-page requests module 302 may include:
Request row, request header or the request text of target HTTP request.Illustratively, shell software version number can be located at In the uniform resource position mark URL for requesting row, any position in the request header or request text of HTTP request can also be located at.
It should be noted that shell software version number is obtained from the request row of HTTP request, request header or request text, Do not need to increase with the additional interaction of server, avoid because with the embedded webpage of client caused by additionally the interacting of server The slow problem of loading velocity.
Embodiment in summary is it is found that the embedded webpage provided in an embodiment of the present invention applied to client loads dress It sets, when obtaining embedded webpage load instruction, can construct and carry the shell software version number in predetermined composition part Target HTTP request, and be based on the target HTTP request, embed webpage to server request target, which embeds webpage For in the corresponding embedded webpage version of the shell software version number, the embedded webpage load instructs the interior of institute's request of loading Embedding webpage.In this way, no matter the server embedded webpage version new either with or without publication, the embedded webpage and shell that client is loaded The version of software is corresponding always.
In addition, if the shell software version of client does not update, the embedded webpage obtained from server or visitor The webpage in embedded webpage version that family end used originally.And once the shell software version of client is updated, correspondingly, from The embedded webpage that server obtains can also update therewith.Therefore, the embedded net provided in an embodiment of the present invention applied to client Page loading device may also reach up the effect that the version synchronization of the embedded webpage version and shell software that make client updates.
Fourth aspect, corresponding to a kind of above-mentioned embedded webpage loading method provided from the angle of server, the present invention is real It applies example and additionally provides a kind of embedded webpage loading device from the angle of server.As shown in figure 4, in provided in an embodiment of the present invention Embedding webpage loading device, is applied to server, and described device includes:
Module 401 is obtained, for when receiving the embedded web-page requests of client transmission, the shell for obtaining client to be soft Part version number;
Embedded webpage version determining module 402, for determining that target corresponding with shell software version number embeds webpage version This;
Extraction module 403 extracts the embedded net of the embedded corresponding target of web-page requests for embedding from target in webpage version Page;
Feedback module 404 feeds back to the client for extracted target to be embedded webpage, so that client adds It carries the target and embeds webpage.
Optionally, above-mentioned embedded web-page requests can be the shell software version that client is carried in predetermined composition part This number target HTTP request.
Correspondingly, obtaining module 401 can ask from target HTTP when receiving the target HTTP request of client transmission Shell software version number is extracted in the predetermined composition part asked.
Illustratively, the predetermined composition part of target HTTP request may include: the request row of target HTTP request, ask Ask head or request text.
It is understood that it is soft directly to obtain shell from the request row of target HTTP request, request header or request text Part version number, do not need to increase with the additional interaction of client, avoid because with client it is additional interact caused by visitor Feed back the slow problem of embedded webpage in family end
Optionally, extraction module 403 may include: determining submodule and extracting sub-module.
Wherein it is determined that submodule, for determining that storage target embeds the storage server of webpage version;
Extracting sub-module is extracted embedded webpage and is asked for embedding in webpage version from the target that storage server is stored Corresponding target is asked to embed webpage.
Embodiment is it is found that the embedded webpage loading device provided in an embodiment of the present invention applied to server in summary, When receiving the target HTTP request of client transmission, the shell software version of client is obtained from the target HTTP request Number, and determine that target corresponding to the shell software version number embeds webpage version, and store the target and embed webpage version Storage server.Then it is embedded in webpage version from the target that storage server is stored, it is corresponding to extract target HTTP request Target embed webpage.In this way, no matter the server embedded webpage version new either with or without publication, the embedded net that client is loaded Page is corresponding always with the version of shell software.
In addition, if the shell software version of client does not update, embedded webpage or visitor to client feedback The webpage in embedded webpage version that family end used originally.And once the shell software version of client is updated, correspondingly, to The embedded webpage of client feedback can also update therewith.Therefore, the embedded net provided in an embodiment of the present invention applied to server Page loading device may also reach up the effect that the version synchronization of the embedded webpage version and shell software that make client updates.
5th aspect, the embodiment of the invention also provides a kind of client devices, as shown in figure 5, include processor 501, Communication interface 502, memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 pass through logical Letter bus 504 completes mutual communication.
Memory 503, for storing computer program.
Processor 501 when for executing the program stored on memory 503, realizes the embodiment of the present invention from client A kind of method and step of embedded webpage loading method provided by angle.Wherein, the embedded webpage loading method may include as Lower step:
When obtaining embedded webpage load instruction, the shell software version number of the shell software of client is determined;
According to the shell software version number, the mesh of embedded webpage load instruction institute's request of loading is requested to server Mark embedded webpage, wherein the target embeds embedded webpage version belonging to webpage, corresponding with the shell software version number;
It receives the target that server returns and embeds webpage, load target in the client and embed webpage.
Optionally, it according to shell software version number, is requested in target corresponding to embedded webpage load instruction to server Embedding webpage, comprising:
Building carries the target HTTP request of shell software version number in predetermined composition part;
Based on target HTTP request, the target for requesting embedded webpage load instruction corresponding to server embeds webpage.
Optionally, predetermined composition part, comprising:
Message body, request header or the request row of target HTTP request.
It should be noted that about a kind of each step of embedded webpage loading method provided by the client angle Relevant explanation content is referred to the corresponding contents of embodiment of the method, and this will not be repeated here.
Client device provided in an embodiment of the present invention can be constructed when obtaining embedded webpage load instruction predetermined The target HTTP request of the shell software version number is carried in component part, and is based on the target HTTP request, to clothes Business device request target embeds webpage, and it is in the corresponding embedded webpage version of the shell software version number which, which embeds webpage, It is interior, the embedded webpage of embedded webpage load instruction institute's request of loading.In this way, no matter server is embedded either with or without publication is new Webpage version, the embedded webpage that client is loaded are corresponding always with the version of shell software.
In addition, if the shell software version of client does not change, the embedded webpage obtained from server or visitor The webpage in embedded webpage version that family end used originally.And once the shell software version of client is updated, correspondingly, from The embedded webpage that server obtains can also update therewith.Therefore, client device provided in an embodiment of the present invention, may also reach up The effect that the version synchronization of the embedded webpage version and shell software that make client updates.
6th aspect, the embodiment of the invention also provides a kind of servers, as shown in fig. 6, including processor 601, communication Interface 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 are total by communication Line 604 completes mutual communication.
Memory 603, for storing computer program.
Processor 601 when for executing the program stored on memory 603, realizes the embodiment of the present invention from server A kind of method and step of embedded webpage loading method provided by angle.Wherein, the embedded webpage loading method may include as Lower step:
When receiving the embedded web-page requests of client transmission, the shell software version number of client is obtained;
Determine that target corresponding with shell software version number embeds webpage version;
It is embedded from target and extracts the embedded webpage of the embedded corresponding target of web-page requests in webpage version;
Extracted target is embedded into webpage and feeds back to client, so that client load target embeds webpage.
Optionally, embedding web-page requests is the mesh that the shell software version number of client is carried in predetermined composition part Mark HTTP request.
When receiving the embedded web-page requests of client transmission, the shell software version number of client is obtained, comprising:
When receiving the target HTTP request of client transmission, extracted from the predetermined composition part of target HTTP request Shell software version number.
Optionally, it is embedded from target and extracts the embedded webpage of the embedded corresponding target of web-page requests in webpage version, comprising:
Determine that storage target embeds the storage server of webpage version;
It is embedded in webpage version from the target that storage server is stored, it is embedded to extract the embedded corresponding target of web-page requests Webpage.
It should be noted that about a kind of each step of embedded webpage loading method provided by the server side Relevant explanation content is referred to the corresponding contents of embodiment of the method, and this will not be repeated here.
Server provided in an embodiment of the present invention, when receiving the target HTTP request of client transmission, from the target The shell software version number of client is obtained in HTTP request, and determines that target corresponding to the shell software version number embeds net Page version, and store the storage server that the target embeds webpage version.Then out of, storage server is stored target In embedding webpage version, extracts the corresponding target of target HTTP request and embed webpage.In this way, no matter server is either with or without publication new Embedded webpage version, the embedded webpage that client is loaded is corresponding always with the version of shell software.
In addition, if the shell software version of client does not change, embedded webpage or visitor to client feedback The webpage in embedded webpage version that family end used originally.And once the shell software version of client is updated, correspondingly, picture The embedded webpage of client feedback can also update therewith.Therefore, server provided in an embodiment of the present invention, may also reach up makes visitor The effect that the embedded webpage version at family end and the version synchronization of shell software update.
The communication bus that above-mentioned client device and server are mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in figure convenient for indicating, it is not intended that an only bus or a type of total Line.
Communication interface is for the communication between above-mentioned client device or above-mentioned server and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can Read storage medium in be stored with instruction, when run on a computer so that computer execute it is any in above-described embodiment Applied to method and step described in the embedded webpage loading method of client or server.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any embedded net for being applied to client or server in above-described embodiment Method and step described in page loading method.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For the embodiment of client device and server, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of embedded webpage loading method, which is characterized in that be applied to client, which comprises
When obtaining embedded webpage load instruction, the shell software version number of the client is determined;
According to the shell software version number, in the target that embedded webpage load instruction institute's request of loading is requested to server Embedding webpage, wherein the target embeds embedded webpage version belonging to webpage, corresponding with the shell software version number;
It receives the target that the server returns and embeds webpage, the target is loaded in the client and embeds webpage.
2. the method according to claim 1, wherein described according to the shell software version number, to server Request target embeds webpage, comprising:
Building carries the target HTTP request of the shell software version number in predetermined composition part;
Based on the target HTTP request, the target is requested to embed webpage to server.
3. according to the method described in claim 2, it is characterized in that, the predetermined composition part of the target HTTP request, comprising:
Request row, request header or the request text of the target HTTP request.
4. a kind of embedded webpage loading method, which is characterized in that be applied to server, which comprises
When receiving the embedded web-page requests of client transmission, the shell software version number of the client is obtained;
Determine that target corresponding with the shell software version number embeds webpage version;
It is embedded from the target and extracts the embedded webpage of the corresponding target of the embedded web-page requests in webpage version;
Extracted target is embedded into webpage and feeds back to the client, so that the client, which loads the target, embeds net Page.
5. according to the method described in claim 4, it is characterized in that, the embedded web-page requests are to take in predetermined composition part The target HTTP request of shell software version number with the client;
It is described to obtain the shell software version number of the client when receiving the embedded web-page requests of client transmission, it wraps It includes:
When receiving the target HTTP request of client transmission, extracted from the predetermined composition part of the target HTTP request The shell software version number.
6. according to the method described in claim 4, it is characterized in that, described embed in webpage version described in extraction from the target The embedded corresponding target of web-page requests embeds webpage, comprising:
It determines and stores the storage server that the target embeds webpage version;
It is embedded in webpage version from the target that the storage server is stored, it is corresponding to extract the embedded web-page requests Target embeds webpage.
7. a kind of embedded webpage loading device, which is characterized in that be applied to client, described device includes:
Shell software version determining module, for determining that the shell of the client is soft when obtaining embedded webpage load instruction Part version number;
Embedded web-page requests module, for being loaded to the server request embedded webpage according to the shell software version number The target of institute's request of loading is instructed to embed webpage, wherein the target embeds embedded webpage version belonging to webpage, outside described Shell software version number is corresponding;
Loading module embeds webpage for receiving the target that the server returns, and loads institute in the client It states target and embeds webpage.
8. device according to claim 7, which is characterized in that the embedded web-page requests module includes:
Submodule is constructed, the target HTTP of the shell software version number is carried in predetermined composition part for constructing and asks It asks;
Submodule is requested, for being based on the target HTTP request, the embedded webpage load instruction institute is right to server request The target answered embeds webpage.
9. device according to claim 8, which is characterized in that the predetermined composition part of the target HTTP request, comprising:
Request row, request header or the request text of the target HTTP request.
10. a kind of embedded webpage loading device, which is characterized in that be applied to server, described device includes:
Module is obtained, for obtaining the shell software of the client when receiving the embedded web-page requests of client transmission Version number;
Embedded webpage version determining module, for determining that target corresponding with the shell software version number embeds webpage version;
Extraction module extracts the embedded net of the corresponding target of the embedded web-page requests for embedding from the target in webpage version Page;
Feedback module feeds back to the client for extracted target to be embedded webpage, so that the client loads The target embeds webpage.
11. device according to claim 10, which is characterized in that the embedded web-page requests are in predetermined composition part Carry the target HTTP request of the shell software version number of the client;
The acquisition module, is specifically used for:
When receiving the target HTTP request of client transmission, extracted from the predetermined composition part of the target HTTP request The shell software version number.
12. device according to claim 10, which is characterized in that the extraction module includes:
Submodule is determined, for determining the storage server for storing the target and embedding webpage version;
Extracting sub-module is extracted in described for embedding in webpage version from the target that the storage server is stored The corresponding target of embedding web-page requests embeds webpage.
CN201811510138.0A 2018-12-11 2018-12-11 Embedded webpage loading method and device Active CN109725929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811510138.0A CN109725929B (en) 2018-12-11 2018-12-11 Embedded webpage loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811510138.0A CN109725929B (en) 2018-12-11 2018-12-11 Embedded webpage loading method and device

Publications (2)

Publication Number Publication Date
CN109725929A true CN109725929A (en) 2019-05-07
CN109725929B CN109725929B (en) 2022-07-22

Family

ID=66294892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811510138.0A Active CN109725929B (en) 2018-12-11 2018-12-11 Embedded webpage loading method and device

Country Status (1)

Country Link
CN (1) CN109725929B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420813A (en) * 2011-10-27 2012-04-18 北京百度网讯科技有限公司 Method and device for providing target information according to terminal attributes of user equipment
US20140317482A1 (en) * 2013-04-19 2014-10-23 Alibaba Group Holding Limited Client side page processing
CN104572690A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Webpage data acquisition method, webpage data acquisition device and webpage data acquisition system
CN106331149A (en) * 2016-09-14 2017-01-11 北京知道未来信息技术有限公司 Webpage code adapting method applicable to client environment
CN107329997A (en) * 2017-06-08 2017-11-07 腾讯科技(深圳)有限公司 Page display method and device, client, storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420813A (en) * 2011-10-27 2012-04-18 北京百度网讯科技有限公司 Method and device for providing target information according to terminal attributes of user equipment
US20140317482A1 (en) * 2013-04-19 2014-10-23 Alibaba Group Holding Limited Client side page processing
CN104572690A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Webpage data acquisition method, webpage data acquisition device and webpage data acquisition system
CN106331149A (en) * 2016-09-14 2017-01-11 北京知道未来信息技术有限公司 Webpage code adapting method applicable to client environment
CN107329997A (en) * 2017-06-08 2017-11-07 腾讯科技(深圳)有限公司 Page display method and device, client, storage medium

Also Published As

Publication number Publication date
CN109725929B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
US10097661B2 (en) Uploading attachment to shared location and replacing with a link
US10552799B2 (en) Upload of attachment and insertion of link into electronic messages
CN110120917B (en) Routing method and device based on content
RU2754720C1 (en) Method and device for displaying interface
US9455939B2 (en) Most recently used list for attaching files to messages
US9594477B1 (en) Using deep links to restore interactive state of a web page
CN109729040B (en) Method, apparatus and computer readable medium for selection of a protocol
CN104572968B (en) A kind of method for updating pages and device
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
US11799850B2 (en) Secure web application delivery platform
CN109815430A (en) Request processing method, device, data processing server and readable storage medium storing program for executing
WO2017143747A1 (en) Network request method and system for network terminal
US10147071B2 (en) Visual representation of an email chain
US20150227861A1 (en) Collaborative customer relationship management methods and systems
US20140032726A1 (en) Method and apparatus for configuring social networking site sharing functions
CN109725929A (en) A kind of embedded webpage loading method and device
CN108897875A (en) A kind of market figure update method, device and equipment
CN106533819B (en) Error monitoring method, device and system for online service
CN110659096B (en) Method, device, system and storage medium for displaying network topological graph
CN108259616A (en) Session sharing method, device, electronic equipment and readable storage medium storing program for executing
US20160373403A1 (en) Electronic Message Tracking Beacon Remediation
US20160373393A1 (en) Message Scanning and Augmentation
CN108804195A (en) A kind of page display method, device, server and client
CN110162725A (en) Online page loading method, device, storage medium and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant