CN111597473B - Data transmission method, terminal equipment, server and data transmission system - Google Patents

Data transmission method, terminal equipment, server and data transmission system Download PDF

Info

Publication number
CN111597473B
CN111597473B CN201910125670.9A CN201910125670A CN111597473B CN 111597473 B CN111597473 B CN 111597473B CN 201910125670 A CN201910125670 A CN 201910125670A CN 111597473 B CN111597473 B CN 111597473B
Authority
CN
China
Prior art keywords
data
server
target page
url address
page
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
Application number
CN201910125670.9A
Other languages
Chinese (zh)
Other versions
CN111597473A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910125670.9A priority Critical patent/CN111597473B/en
Publication of CN111597473A publication Critical patent/CN111597473A/en
Application granted granted Critical
Publication of CN111597473B publication Critical patent/CN111597473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data transmission method, terminal equipment, a server and a data transmission system. The data transfer method is implemented by the terminal equipment and comprises the following steps: responding to the operation of entering the target page through the URL address, and acquiring a data identifier, carried in the URL address, of the data which is required to be transmitted to the target page; requesting the server to provide data according to the data identification; and acquiring data returned by the server according to the request, and displaying the target page based on the data.

Description

Data transmission method, terminal equipment, server and data transmission system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method, a terminal device, a server, and a data transmission system.
Background
In the front-end development process, or when a user accesses an associated page of one page, it is often necessary to pass data in one page a to another page B. For example, the user ID and password in page a need to be passed to page B. At present, data transfer between pages is generally realized by adopting a URL mode and a form mode.
When data transfer between pages is realized by adopting a URL mode, a URL address containing parameters to be transferred is required to be accessed through a browser. Many browsers have limitations on the length of URL addresses, which results in this approach not being able to pass large amounts of data in page a to page B.
When the form is adopted to realize data transmission among pages, although large data transmission can be realized, after the page A transmits the data in the form to the page B, the page B is refreshed or the shared page B is accessed, and the data transmitted from the page A in the page B is lost, so that a data transmission method capable of carrying out large data transmission more flexibly is needed to be provided.
Disclosure of Invention
The invention aims to provide a new technical scheme for data transmission.
According to a first aspect of the present invention, there is provided a data transfer method implemented by a terminal device, comprising:
responding to the operation of entering a target page through a URL address, and acquiring a data identifier of data carried in the URL address and corresponding to the data required to be transferred to the target page;
requesting the server to provide the data according to the data identification;
and acquiring the data returned by the server according to the request, and displaying the target page based on the data.
Optionally, the data is from an upper page associated with the target page, and the method further comprises, before responding to the operation of entering the target page through the URL address:
After entering the upper page, submitting the data to the server for caching;
acquiring the data identifier returned by the server after caching the data;
and generating the URL address in response to the operation of jumping to the target page through the upper page, and triggering the operation of entering the target page through the URL address.
Optionally, the step of submitting the data of the upper page to a server for caching includes:
and submitting the data to a server for caching in the form of a form.
Optionally, the step of submitting the data to a server for caching in the form of a form includes:
obtaining a template of a form;
adding the data into the template to obtain form data;
and submitting the form data to a server for caching.
Optionally, the method further comprises:
after entering the target page through the URL address, the URL address is provided in an address field of the target page.
Optionally, the step of obtaining the storage identifier of the data to be transferred to the target page, which is carried in the URL address, includes:
Analyzing the URL address to obtain a preset parameter representing the data identifier;
and acquiring the parameter value of the data mark as the parameter.
Optionally, the data identifier includes a cache key generated by the server storing the data in a cache memory.
According to a second aspect of the present invention, there is provided a data transfer method implemented by a terminal device, the method comprising:
responding to the operation of jumping from an upper page to a target page, and acquiring a data identifier of data which needs to be transferred to the target page by the upper page;
requesting the server to provide the data according to the data identification;
and acquiring the data returned by the server according to the request, and displaying the target page based on the data.
Optionally, the step of obtaining, in response to the operation of jumping from the upper page to the target page, a data identifier of data that needs to be transferred to the target page by the upper page includes:
generating a URL address of a target page in response to an operation of jumping from a superior page to the target page, wherein the URL address comprises a data identifier of data which needs to be transferred to the target page by the superior page;
And acquiring the data identifier from the URL address.
According to a third aspect of the present invention, there is provided a data transfer method implemented by a server, comprising:
acquiring data which is submitted to be transferred to a target page after terminal equipment enters an upper page; wherein the upper page is associated with the target page;
caching the data into a storage area to generate a corresponding data identifier;
returning the data identification to the terminal equipment;
acquiring the data identifier submitted by the terminal equipment when the terminal equipment jumps from the upper page to the target page;
and acquiring the data according to the data identifier, and returning the data to the terminal equipment so that the terminal equipment can display the target page according to the data.
Optionally, the step of caching the data in the storage area and generating the corresponding data identifier includes:
caching the data into a cache memory, and generating a cache key according to a storage address of the data in the cache memory;
and taking the cache key as the data identifier.
According to a fourth aspect of the present invention, there is provided a terminal device comprising:
a memory for storing executable instructions;
And a processor, configured to execute the terminal device to perform the data transfer method as provided in the first aspect or the second aspect according to control of the executable instructions.
According to a fifth aspect of the present invention, there is provided a server comprising:
a memory for storing executable instructions;
and a processor for executing the server to perform the data transfer method as provided in the third aspect, according to the control of the executable instructions.
According to a sixth aspect of the present invention, there is provided a data transfer system comprising:
the terminal device according to the fourth aspect;
the server according to the fifth aspect.
According to the data transfer method, the terminal device, the server and the data transfer system of the embodiment, data to be transferred to the target page are stored in the server, and the data identifier returned by the server is used as a parameter value to be transferred to the target page in the URL address, so that data transfer among pages is realized. Therefore, the length of data to be transferred to the target page is not required to be limited, large data transmission can be realized, and the data transferred to the target page can be still provided when the shared URL address carrying the storage identifier is refreshed and accessed, so that the phenomenon of data loss can be avoided, and the reliability of data transmission is improved.
Other features of the present invention and its advantages will become apparent from the following detailed description of exemplary embodiments of the invention, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described. It is appreciated that the following drawings depict only certain embodiments of the invention and are therefore not to be considered limiting of its scope. Other relevant drawings may be made by those of ordinary skill in the art without undue burden from these drawings.
FIG. 1 is a block diagram of a hardware configuration of a data transfer system provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a data transfer method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another data transfer method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another data transfer method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of an interaction process between a server and a terminal device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Fig. 1 is a block diagram of a hardware configuration of a data transfer system that can be used to implement the present embodiment.
As shown in fig. 1, the data transfer system includes a server 1000, a terminal device 2000, and a network 3000.
The server 1000 provides the service points for processing, database, communication facilities. The server 1000 may be a unitary server or a distributed server across multiple computers or computer data centers. The server 1000 may be of various types such as, but not limited to, a web server, news server, mail server, message server, advertisement server, file server, application server, interaction server, database server, or proxy server. In some embodiments, server 1000 may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported or implemented by server 1000. For example, the server 1000 may be a server group consisting of a plurality of servers, may include one or more of the types of servers described above, and so forth.
In one example, the server 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, and an input device 1600, as shown in fig. 1. Although the server may also include speakers, microphones, etc., these components are not relevant to the present invention and are omitted here.
The processor 1100 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 12 includes, for example, ROM (read only memory), RAM (random access memory), nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a serial interface, an infrared interface, and the like. The communication device 1400 can perform wired or wireless communication, for example. The display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, or the like. The input device 1600 may include, for example, a touch screen, keyboard, etc.
Although a plurality of devices are shown for the server 1000 in fig. 1, the present invention may relate to only some of the devices, for example, the server 1000 may relate to only the memory 1200 and the processor 1100.
In the present embodiment, the terminal device 2000 is an electronic device having a communication function and a service processing function. The terminal device 2000 may be a mobile terminal such as a cell phone, a portable computer, a tablet computer, a palmtop computer, etc.
As shown in fig. 1, the terminal apparatus 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, an input device 2600, an output device 2700, an image pickup device 2800, and the like. The processor 2100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 2200 includes, for example, ROM (read only memory), RAM (random access memory), nonvolatile memory such as a hard disk, and the like. The interface device 2300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 2400 can perform wired or wireless communication, for example. The display device 2500 is, for example, a liquid crystal display, a touch display, or the like. The input device 2600 may include, for example, a touch screen, a keyboard, a microphone, or the like. The output device 2700 is used to output information, which may be, for example, a speaker, for outputting voice information for a user. The image pickup device 2800 is used to capture acquisition information, such as a camera.
Although a plurality of apparatuses are shown for the terminal device 2000 in fig. 1, the present invention may relate to only some of the apparatuses thereof, for example, the terminal device 2000 may relate to only the memory 2200 and the processor 2100.
The network 3000 may be a wireless communication network or a wired communication network, and may be a local area network or a wide area network. In the system architecture shown in fig. 1, a server 1000 and a terminal device 2000 communicate via a network 3000. Further, the networks 3000 on which these communications are based may be the same or different.
The data transfer system shown in fig. 1 is merely illustrative and is in no way intended to limit the disclosure, its application or uses.
In the above description, a skilled person may design instructions according to the solutions provided by the present disclosure. How the instructions control the processor to operate is well known in the art and will not be described in detail here.
Fig. 2 is a flow chart of a data transfer method according to an embodiment of the present invention, which is implemented by the terminal device 2000, and includes the following steps S2100 to S2300:
s2100, responding to the operation of entering the target page through the URL address, and acquiring a data identifier, carried in the URL address, of the data which is required to be transferred to the target page.
Specifically, the target page is a page to be accessed by the user currently, and there is a unique corresponding URL (Uniform Resource Locator ) address. In addition, the data after the question mark in the URL address is the parameter required to be transferred to the target page and the parameter value corresponding to the parameter.
For example, one URL address is: http:// xxx.com/logic.htmluser=zhangsan & pwd=123456. Wherein "=" is used for connecting parameters required to be transferred to the target page and corresponding parameter values, "=" and "is used for connecting a plurality of parameters required to be transferred to the target page; the user and pwd on the left of the question mark and the equal mark are two parameters required to be transmitted to the target page; "zhangsan" on the right of the equal sign is a parameter value corresponding to the parameter "user" to be transferred to the target page, and "123456" on the right of the equal sign is a parameter value corresponding to the parameter "pwd" to be transferred to the target page.
Note that, in this embodiment, the data identifier of the data to be transferred to the target page in S2100 is the parameter value. The step S2100 of obtaining the data identifier of the data to be transferred to the target page, which is carried in the URL address, may be implemented by obtaining the parameter value corresponding to the right side of the equal sign after the question mark in the URL address.
Meanwhile, the data identifier of the data to be transferred to the target page can be a section of storage address in the cache of the server, and the storage area corresponding to the section of storage address stores the data to be transferred to the target page.
The data identifier may also be an identifier corresponding to a segment of storage address in the cache of the server one by one. Based on this, the server needs to record a file about the mapping relationship between the data identifier and the storage address. Thus, when the terminal equipment provides the data identifier, the server can obtain the corresponding storage address according to the data identifier, and further read the data corresponding to the storage identifier from the storage area.
In addition, in this embodiment, the parameter corresponding to the data identifier of the data to be transferred to the target page is a preset parameter representing the storage identifier, and the data for identifying the data to be transferred to the target page needs to be obtained from a cache in the server, or more specifically, the data for identifying the data to be transferred to the target page needs to be obtained from a fixed cache in the server.
In an example, in the embodiment of the present invention, a parameter corresponding to a data identifier of data to be transferred to a target page is set in advance as a Memory when the data to be transferred to the target page is required to be obtained from a cache of a server. Further, when the server represents one storage address in the cache with four 16-ary numbers and the data identifier is a segment of the storage address in the cache of the server, the data identifier in this embodiment may be used to identify a continuous value in the range 0000 to FFFFH.
In one example, a continuous value as described above may be represented by a range of intervals. Based on this, the URL address in the embodiment of the present invention may be exemplified as follows: http:// xxx.com/logic.htmlmemory=0000 to 000FH.
In another example, a continuous value as described above may be represented by its two end points. Based on this, the URL address in the embodiment of the present invention may be exemplified as follows: http:// xxx.com/log.htmlmemory=0000 & memory=000fh.
It should be noted that, in this embodiment, the specific expression form of the data identifier and the corresponding parameters of the data to be transferred to the target page is not limited.
In another example, in the embodiment of the present invention, the parameter corresponding to the data identifier of the data to be transferred to the target page is used to identify that the data to be transferred to the target page needs to be obtained from a fixed cache of the server, and the parameter may be the name of the cache in the server. For example, in an embodiment of the present invention, the parameter is a cache, or any representation of an identity storage identity, such as an MID. Correspondingly, the parameter value of the parameter is a cachekey. That is, in the present embodiment, the URL address can be expressed as: http:// xxx.com/log.htmlcache=cachekey. That is, the data identification may also be a cache key generated by the server storing data to be transferred to the target page in the cache memory.
Based on the above, the step of obtaining the data identifier of the data to be transferred to the target page carried in the URL address in S2100 may include the following steps:
s2110, analyzing the URL address to obtain a preset parameter representing the data identification.
S2120, acquiring a parameter value of which the data mark is a parameter.
In addition, it should be noted that, in the operation in response to entering the target page through the URL address in S2100, the following three embodiments are specifically shown:
form one, respond to an operation to jump from an upper page to a target page. For example, the user clicks an option which can be linked to the target page in the upper page through a mouse, and the terminal equipment accesses the URL address corresponding to the option based on the option, so that the operation of responding to the jump from the upper page to the target page is realized.
And responding to the operation of refreshing the target page. For example, the user clicks a refreshing icon in the menu bar of the target page through a mouse, and the terminal equipment accesses the URL address corresponding to the target page again based on the refreshing icon, so that the operation of responding to refreshing the target page is realized.
And thirdly, responding to the operation of accessing the URL address shared by other terminal equipment. For example, the other terminal sends the URL address to the terminal device, and the user clicks the URL address through the mouse, so that the terminal device responds to the URL address based on the response, and the operation of responding to access to the URL address shared by the other terminal device is realized.
Note that, the data to be transferred to the target page corresponding to the URL address in S2100 comes from the upper page associated with the target page. Based on this, for the first and second modes, the data transfer method provided in this embodiment further includes the following steps before the above-mentioned operation of responding to entering the target page through the URL address:
s2010, after entering an upper page, submitting the data to a server for caching.
S2020, acquiring a data identifier returned by the server after caching the data.
S2030, in response to an operation to jump to the target page via the upper page, generates a URL address, and triggers an operation to enter the target page through the URL address.
Specifically, after entering the upper page, the terminal device submits the data to be transferred to the target page to the server. The server caches the data and returns a data identifier corresponding to the data to the terminal equipment. The terminal equipment responds to the operation of jumping to the target page through the upper page, adds the data identification acquired by the terminal equipment from the server into the URL address of the target page, generates a new URL address, and triggers the operation of entering the target page through the URL address.
For example, the upper page is a user information acquisition page, the user fills in a large amount of user information in the upper page, the terminal equipment submits data corresponding to the user information to the server for caching, and the data identifier returned by the server after caching the data is obtained. After the user completes the filling of the user information in the upper page, clicking and submitting the user, generating a URL address carrying the data identifier for entering the next page (target page), and triggering the operation of entering the next page through the generated URL address, so that after entering the next page, the terminal equipment can acquire the data of the corresponding user information cached by the server through the data identifier carried in the URL address, and present the user information in the next page.
It should be noted that, with respect to the third aspect, the data to be transferred to the target page carried in the URL address in the S2100 comes from the upper page associated with the target page. But before responding to the operation of entering the target page through the URL address, other terminal equipment sharing the URL address submits data to the server for caching after entering the upper page, and then the data identifier returned by the server after caching the data is acquired.
S2200, requesting the server to provide data according to the data identification.
S2300, obtaining data returned by the server according to the request, and displaying the target page based on the data.
Specifically, after acquiring a data identifier of data, carried in the URL address, corresponding to the data to be transferred to the target page, the terminal device generates a request based on the data identifier, so as to request the server to provide data corresponding to the data identifier. After the terminal equipment acquires the data returned by the server according to the request, the terminal equipment displays the data on the target page while displaying the target page corresponding to the URL. It should be noted that, the request generated by the terminal device based on the data identifier carries the data identifier.
According to the method of the embodiment, the data to be transferred to the target page is stored in the server, and the data identifier returned by the server is used as the parameter value to be transferred to the target page in the URL address, so that data transfer between pages is realized. In this way, there is no need to limit the length of data that needs to be transferred to the target page. That is, the data transfer method provided in this embodiment can realize transfer of a large amount of data by means of URL.
In one embodiment, after entering the target page through the URL address in S2100 above, the terminal device provides the URL address in the address field of the target page.
Therefore, the parameter value which is included in the URL address and is required to be transmitted to the target page is not the real data which is required to be transmitted to the target page, but the data identification of the data which is required to be transmitted to the target page in the server, so that the data which is required to be transmitted to the target page is not exposed to the user, and the risk that the data which is required to be transmitted to the target page is tampered by an illegal user is avoided. In addition, the URL address carrying the data identifier is provided in the address bar, so that a user can share the URL address conveniently through a social platform and the like, other users can directly enter a target page based on the shared URL address, and the data provided by the data identifier in the URL address can be obtained from the entered target page.
In one embodiment, the step of submitting the data to be transferred to the target page in the upper page to the server for caching in S2010 may be:
and submitting the data to a server for caching in the form of a form.
It should be noted that, in this embodiment, other forms may be used to submit data to the server for caching.
In this embodiment, the data is submitted to the server in form of a form for buffering, and when the terminal device responds to the operation of refreshing the target page, the data submitted in form of the form can still be obtained through the data identifier carried in the URL address. This allows the user to still view the data to be transferred to the target page on the refreshed target page. Therefore, the problem that in the prior art, data is submitted to the target page in a form, and the target page loses the data to be transmitted to the target page when the target page is refreshed can be solved.
Meanwhile, in this embodiment, data is submitted to the server in the form of a form for caching, and when the terminal device responds to an operation of accessing the URL address shared by other terminal devices, the data submitted in the form of the form can still be obtained through the data identifier carried in the URL address. This allows the user to still view the data to be transferred to the target page on the shared target page. Therefore, the problem that in the prior art, data is submitted to a target page in a form, and when the shared URL address carrying the data identifier is accessed, the target page loses the data to be transmitted to the target page is solved.
It should be noted that, the data is submitted to the server for caching in the form of a form, which may be implemented by the following steps:
s2011, acquiring a template of the form.
And 2012, adding the data into the template to obtain form data.
S2013, submitting form data to a server for caching.
It should be noted that, in the case of submitting data to the server for caching in the form of a form, the data to be transferred to the target page is the data input to the terminal device by the user.
Taking the above-mentioned form as an example, the data transmission method provided by the embodiment of the invention is described. As shown in fig. 3, a flowchart of another data transfer method provided by an embodiment of the present invention is implemented by the terminal device 1000, including the following S3100-S3300:
S3100, responding to the operation of jumping from the upper page to the target page, and acquiring the data identification of the data which the upper page needs to transfer to the target page.
In an example, a user clicks an option which can be linked to a target page in an upper page through a mouse, and the terminal equipment accesses a URL address corresponding to the option based on the option, so that the operation of responding to the jump from the upper page to the target page is realized.
S3200, requesting the server to provide data according to the data identification.
S3300, acquiring data returned by the server according to the request, and displaying the target page based on the data.
Alternatively, the above S3100 may be specifically implemented by the following S3110 and S3120:
s3110, responding to the operation of jumping from the upper page to the target page, and generating the URL address of the target page, wherein the URL address comprises a data identification of data which needs to be transferred to the target page by the upper page.
And S3120, acquiring the data identification from the URL address.
In one embodiment, before the step S3100, the following steps S3130 and S3400 are further included:
s3130, after entering the upper page, submitting the data to a server for caching.
S3140, obtaining a data identifier returned by the server after caching the data.
It should be noted that the specific implementation of S3100-S3300, S3110 and S3120 is similar to that of the above embodiment, and will not be repeated here.
According to the method of the embodiment, the data to be transferred to the target page is stored in the server, the data identifier returned by the server is used as the parameter value to be transferred to the target page in the URL address, and therefore data transfer among pages is achieved in the process of jumping from the upper page to the target page. In this way, there is no need to limit the length of data that needs to be transferred to the target page. That is, the data transfer method provided in this embodiment can realize transfer of a large amount of data by means of URL.
Fig. 4 is a flowchart of another data transfer method provided in an embodiment of the present invention, where the method is implemented by the server 1000, and includes the following steps S4100-S4500:
s4100, acquiring data which is submitted by the terminal equipment after entering the upper page and is required to be transferred to the target page; wherein the upper page is associated with the target page.
S4200, caching the data into a storage area, and generating a corresponding data identifier.
For example, the server may cache data in its own cache, and the server-generated data is identified as an identification that corresponds one-to-one to a segment of the storage address in the server's cache. Based on this, the server needs to record a file about the mapping relationship between the data identifier and the storage address.
Alternatively, the server may cache the data in its own cache, and the server-generated data is identified as a segment of the storage address in its own cache.
Or, the server may cache the data in its own cache, and the data generated by the server is identified as a cache key corresponding to the cache.
S4300, returning the data identification to the terminal equipment.
S4400, acquiring a data identifier submitted by the terminal equipment when the terminal equipment jumps to a target page from an upper page.
S4500, obtaining data according to the data identification and returning the data to the terminal equipment, so that the terminal equipment can display the target page according to the data.
In one embodiment, when the server may cache the data in its own cache, and the data generated by the server is identified as a cache key corresponding to the cache, S4200 may be implemented specifically as follows S4210 and S4220:
s4210, caching the data into a cache memory, and generating a cache key according to the storage address of the data in the cache memory.
S4220, using the buffer key as data identification.
In this embodiment, the server stores the data required by the target page in the cache, so that the storage cost is low, and the stability of storing the data required by the target page is high.
According to the method of the embodiment, the data to be transferred to the target page is stored in the server, and the data identifier returned by the server is used as the parameter value to be transferred to the target page in the URL address, so that data transfer between pages is realized. In this way, there is no need to limit the length of data that needs to be transferred to the target page. That is, the data transfer method provided in this embodiment can realize transfer of a large amount of data by means of URL.
Fig. 5 is a schematic flow chart of an interaction process between a server 1000 and a terminal device 2000 according to an embodiment of the present invention.
According to the illustration of fig. 4, the interaction procedure of the present embodiment may comprise the following steps:
s5110, after entering the upper page, the terminal equipment submits the data to the server for caching.
S5120, the server acquires data which is submitted by the terminal equipment after entering the upper page and is required to be transferred to the target page.
S5130, the server caches the data in the cache memory, and generates a cache key according to the storage address of the data in the cache memory.
S5140, the server takes the cache key as a data identifier.
S5150, the server returns the data identification to the terminal equipment.
S5160, the terminal equipment acquires the data identifier returned by the server after caching the data.
S5170, the terminal equipment responds to the operation of jumping from the upper page to the target page, and generates the URL address of the target page, wherein the URL address comprises the data identification of the data which needs to be transferred to the target page by the upper page.
S5180, the terminal equipment acquires the data identification from the URL address.
S4190, the terminal equipment requests the server to provide data according to the data identification.
S5200, the server acquires a data identifier submitted by the terminal equipment when the terminal equipment jumps to the target page from the upper page.
S5210, the server acquires data according to the data identification and returns the data to the terminal equipment so that the terminal equipment can display the target page according to the data.
S5230, the terminal acquires data returned by the server according to the request, and displays the target page based on the data.
It should be noted that, the explanation of the above S5110-S5230 can be referred to the above embodiments, and will not be repeated here.
In this embodiment, there is further provided a terminal device 60, configured to implement the data transfer method provided in any one of the embodiments of the present invention related to the embodiment shown in fig. 2, as shown in fig. 6, including:
a memory 61 for storing computer instructions;
a processor 62 for invoking computer instructions from memory 61 to perform any of the data transfer methods associated with the embodiment shown in fig. 2.
In this embodiment, the terminal device 60 may also include other apparatuses or modules, for example, the terminal device 2000 shown in fig. 1. The terminal device may also have various physical forms, for example, the terminal device may be a mobile phone, a tablet computer, a palm computer, a desktop computer, or the like.
In this embodiment, there is further provided a terminal device, configured to implement the data transfer method provided in any one of the embodiments of the present invention related to the embodiment shown in fig. 3, including:
a memory for storing computer instructions;
a processor for invoking computer instructions from memory to perform any of the data transfer methods associated with the embodiment shown in figure 3.
In this embodiment, the terminal device may further include other apparatuses or modules, for example, the terminal device 2000 shown in fig. 1. The terminal device may also have various physical forms, for example, the terminal device may be a mobile phone, a tablet computer, a palm computer, a desktop computer, or the like.
In this embodiment, there is further provided a server 70, configured to implement the data transfer method provided in any one of the embodiments of the present invention, as shown in fig. 7, including:
a memory 71 for storing computer instructions;
A processor 72 for calling computer instructions from the memory 71 to perform any of the data transfer methods provided by the above embodiments.
In the present embodiment, the server 70 is not limited to the physical implementation form, and the server 70 may be
In the present embodiment, the server 70 is not limited to the entity implementation form, but may also include other devices or modules, for example, the server 1000 shown in fig. 1. The server 70 may also have a variety of physical forms, for example, the server 70 may be a computer, a blade server, a cloud server, a server group, or the like.
In this embodiment, as shown in fig. 8, there is also provided a data transfer system 80, as shown in fig. 8, including: a terminal device 60 as shown in fig. 6 and a server 70 as shown in fig. 7.
Alternatively, the data transfer system 80 includes a terminal device for implementing the data transfer method provided in any one of the embodiments of the present invention related to the embodiment shown in fig. 3, and a server 70 as shown in fig. 7.
The present invention may be a computer program product designed according to the functions of the terminal device and the server, respectively. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium (a non-exhaustive list includes a portable computer diskette, a hard disk, a random access memory (RAM, read-only memory (ROM, erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disc read-only memory (CD-ROM, digital versatile disks (DVD, memory sticks, floppy disks, mechanical coding devices, punch cards or bump structures within a groove such as those having instructions stored thereon, and any suitable combination thereof).
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present invention can be assembler instructions, instruction set architectures (ISA instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like, as well as conventional procedural programming languages, such as the "C" language or similar programming languages.
Various aspects of the invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems and computer program products) according to embodiments of the invention, it being understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.
The foregoing description of embodiments of the invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (12)

1. A data transfer method implemented by a terminal device, comprising:
responding to the operation of entering a target page through a URL address, and acquiring a data identifier of data carried in the URL address and corresponding to the data required to be transferred to the target page; wherein the data is from an upper page associated with the target page;
requesting a server to provide the data according to the data identification;
acquiring the data returned by the server according to the request, and displaying the target page based on the data;
The method further comprises, prior to responding to the operation of entering the target page through the URL address:
after entering the upper page, submitting the data to the server for caching;
acquiring the data identifier returned by the server after caching the data;
and generating the URL address in response to the operation of jumping to the target page through the upper page, and triggering the operation of entering the target page through the URL address.
2. The method of claim 1, wherein the step of submitting the data to the server for caching comprises:
and submitting the data to a server for caching in the form of a form.
3. The method of claim 2, wherein the step of submitting the data to a server for caching in the form of a form comprises:
obtaining a template of a form;
adding the data into the template to obtain form data;
and submitting the form data to a server for caching.
4. A method according to any one of claims 1 to 3, the method further comprising:
after entering the target page through the URL address, the URL address is provided in an address field of the target page.
5. A method according to any one of claims 1 to 3, wherein the step of obtaining a data identity carried in the URL address corresponding to data required to be transferred to the target page comprises:
analyzing the URL address to obtain a preset parameter representing the data identifier;
and acquiring the parameter value of the data mark as the parameter.
6. A method according to any one of claims 1 to 3, wherein the data is identified as a cache key generated by the server storing the data in a cache memory.
7. A data transfer method implemented by a terminal device, the method comprising:
after entering an upper page, submitting data which need to be transferred to a target page by the upper page to a server for caching;
acquiring a data identifier returned by the server after caching the data;
generating a URL address of the target page in response to the operation of jumping from the upper page to the target page, wherein the URL address comprises the data identification;
acquiring the data identifier from the URL address;
requesting the server to provide the data according to the data identification;
and acquiring the data returned by the server according to the request, and displaying the target page based on the data.
8. A data transfer method implemented by a server, comprising:
acquiring data which is submitted by terminal equipment after entering an upper page and is required to be transferred to a target page; wherein the upper page is associated with the target page;
caching the data into a storage area to generate a corresponding data identifier;
returning the data identifier to the terminal equipment so that the terminal equipment responds to the operation of jumping from the upper page to the target page and generates a URL address of the target page, which comprises the data identifier;
acquiring the data identifier submitted by the terminal equipment when the terminal equipment jumps from the upper page to the target page;
and acquiring the data according to the data identifier, and returning the data to the terminal equipment so that the terminal equipment can display the target page according to the data.
9. The method of claim 8, the step of caching the data to a storage area, generating a corresponding data identification, comprising:
caching the data into a cache memory, and generating a cache key according to a storage address of the data in the cache memory;
and taking the cache key as the data identifier.
10. A terminal device, comprising:
a memory for storing executable instructions;
a processor for executing the terminal device to perform the data transfer method according to any of claims 1-7, in accordance with control of the executable instructions.
11. A server, comprising:
a memory for storing executable instructions;
a processor for executing the server to perform the data transfer method according to claim 8 or 9, under control of the executable instructions.
12. A data transfer system, comprising:
the terminal device of claim 10;
the server of claim 11.
CN201910125670.9A 2019-02-20 2019-02-20 Data transmission method, terminal equipment, server and data transmission system Active CN111597473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910125670.9A CN111597473B (en) 2019-02-20 2019-02-20 Data transmission method, terminal equipment, server and data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910125670.9A CN111597473B (en) 2019-02-20 2019-02-20 Data transmission method, terminal equipment, server and data transmission system

Publications (2)

Publication Number Publication Date
CN111597473A CN111597473A (en) 2020-08-28
CN111597473B true CN111597473B (en) 2023-04-25

Family

ID=72186874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910125670.9A Active CN111597473B (en) 2019-02-20 2019-02-20 Data transmission method, terminal equipment, server and data transmission system

Country Status (1)

Country Link
CN (1) CN111597473B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117972250B (en) * 2024-03-28 2024-06-14 深圳市金政软件技术有限公司 Data storage method, system and readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694772A (en) * 2011-03-23 2012-09-26 腾讯科技(深圳)有限公司 Apparatus, system and method for accessing internet web pages
CN104125258A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Page Jump method, terminal, server and system
CN105635229A (en) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 Data backfill method and device
CN105898585A (en) * 2015-10-22 2016-08-24 乐视网信息技术(北京)股份有限公司 Data inputting method, device and server
CN106528657A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Control method and device for browser skipping to application program
CN106657044A (en) * 2016-12-12 2017-05-10 杭州电子科技大学 Webpage address hopping method for improving security defense of website system
CN106874305A (en) * 2015-12-14 2017-06-20 北京国双科技有限公司 A kind of method and device of information transmission
CN106899689A (en) * 2017-03-15 2017-06-27 腾讯科技(深圳)有限公司 Method and server that a kind of information is issued in advance
CN107145490A (en) * 2016-03-01 2017-09-08 腾讯科技(深圳)有限公司 Webpage loads methods of exhibiting and webpage loading exhibiting device
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system
CN108694215A (en) * 2017-04-12 2018-10-23 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the computer-readable medium of web cache preheating
CN109343971A (en) * 2018-08-20 2019-02-15 平安普惠企业管理有限公司 A kind of browser data transmission method and device based on caching technology

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526751A (en) * 2016-06-22 2017-12-29 广州市动景计算机科技有限公司 Loading method, client, web page server and the programmable device of webpage

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694772A (en) * 2011-03-23 2012-09-26 腾讯科技(深圳)有限公司 Apparatus, system and method for accessing internet web pages
CN104125258A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Page Jump method, terminal, server and system
CN105635229A (en) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 Data backfill method and device
CN105898585A (en) * 2015-10-22 2016-08-24 乐视网信息技术(北京)股份有限公司 Data inputting method, device and server
CN106874305A (en) * 2015-12-14 2017-06-20 北京国双科技有限公司 A kind of method and device of information transmission
CN107145490A (en) * 2016-03-01 2017-09-08 腾讯科技(深圳)有限公司 Webpage loads methods of exhibiting and webpage loading exhibiting device
CN106528657A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Control method and device for browser skipping to application program
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system
CN106657044A (en) * 2016-12-12 2017-05-10 杭州电子科技大学 Webpage address hopping method for improving security defense of website system
CN106899689A (en) * 2017-03-15 2017-06-27 腾讯科技(深圳)有限公司 Method and server that a kind of information is issued in advance
CN108694215A (en) * 2017-04-12 2018-10-23 北京京东尚科信息技术有限公司 Method, apparatus, electronic equipment and the computer-readable medium of web cache preheating
CN109343971A (en) * 2018-08-20 2019-02-15 平安普惠企业管理有限公司 A kind of browser data transmission method and device based on caching technology

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张华伟 ; 刘启明 ; 刘杰 ; .Web页间值传递的几种方法的比较与应用实例分析.福建电脑.2006,(01),全文. *
张旭辉 ; .ASP.NET页面之间的数据传递与保持.中国新技术新产品.2015,(11),全文. *
翟迎建 ; .JSP页面数据传递方式的研究.计算机与网络.2007,(20),全文. *

Also Published As

Publication number Publication date
CN111597473A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
EP3146698B1 (en) Method and system for acquiring web pages
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN107733972A (en) A kind of short linking analytic method, device and equipment
US11258872B1 (en) Techniques for accelerating page rendering
JP2018506756A (en) Website access method, apparatus, and website system
JP6404816B2 (en) Method and apparatus for responding to web page access request
US20160299988A1 (en) Methods, systems, and computer readable media for capturing and storing a web page screenshot
CN111177618A (en) Website building method, device, equipment and computer readable storage medium
US10565090B1 (en) Proxy for debugging transformed code
EP3136656A1 (en) Information sharing method and device
CN105354337A (en) Web crawler implementation method and web crawler system
US9760557B2 (en) Tagging autofill field entries
CN110825990A (en) Page access method, client, server and system
US11516279B2 (en) Systems and methods for accessing multiple resources via one identifier
Al-Fannah et al. Not all browsers are created equal: Comparing web browser fingerprintability
CN113076294A (en) Information sharing method and device
KR102288023B1 (en) Internet Protocol (IP) address assignment
JP7217181B2 (en) WEARABLE DEVICE, INFORMATION PROCESSING METHOD, APPARATUS AND SYSTEM
US20200073925A1 (en) Method and system for generating a website from collected content
CN111597473B (en) Data transmission method, terminal equipment, server and data transmission system
CN107203536A (en) Online browse method, device and the equipment of content
CN104680063A (en) Information interception method and terminal
CN103490985B (en) A kind for the treatment of method and apparatus of image information
US20200274950A1 (en) Method and server for displaying access content

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