CN104980399B - File transmission method, client and proxy server - Google Patents

File transmission method, client and proxy server Download PDF

Info

Publication number
CN104980399B
CN104980399B CN201410137160.0A CN201410137160A CN104980399B CN 104980399 B CN104980399 B CN 104980399B CN 201410137160 A CN201410137160 A CN 201410137160A CN 104980399 B CN104980399 B CN 104980399B
Authority
CN
China
Prior art keywords
client
transmission
file
proxy server
information
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
CN201410137160.0A
Other languages
Chinese (zh)
Other versions
CN104980399A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410137160.0A priority Critical patent/CN104980399B/en
Publication of CN104980399A publication Critical patent/CN104980399A/en
Application granted granted Critical
Publication of CN104980399B publication Critical patent/CN104980399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a file transmission method, a client and a proxy server, and belongs to the technical field of networks. The method comprises the following steps: acquiring transmission progress information of a target file when the transmission of the target file is interrupted; when the network condition reaches a preset condition, sending a transmission request to the proxy server, wherein the transmission request carries transmission progress information, so that the proxy server sends partial files which are not transmitted by a client in the target file according to the transmission progress information after receiving the transmission request; the client receives the partial file transmitted by the proxy server. According to the technical scheme provided by the invention, the target file can be continuously downloaded instead of the client when the transmission is interrupted, and the part of the target file which is not transmitted is continuously downloaded from the proxy server by self when the network is recovered, so that the transmission flow is simplified, and the resource waste of the client is avoided.

Description

File transmission method, client and proxy server
Technical Field
The present invention relates to the field of network technologies, and in particular, to a file transmission method, a client, and a proxy server.
Background
With the development of network technology, mobile devices such as Smart Phone and Pad can download required file resources through a network. However, due to the instability of the network, during the file transmission process, when the network is interrupted, the ongoing file transmission is interrupted, and at this time, a file transmission method needs to be provided to continue to transmit the file whose transmission has been interrupted.
In the prior art, when file transmission is interrupted, a user is prompted to fail downloading, and after the user is prompted to fail transmission, the file is retransmitted according to a transmission request triggered by the user, or the file is continuously transmitted based on a transmission progress before interruption.
However, the file transmission methods in the prior art all require the user to trigger the transmission request again after the network is restored, so that the operation process is complicated, and the waste of network resources is caused.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a file transmission method, a client, and a proxy server. The technical scheme is as follows:
in a first aspect, a file transfer method is provided, where the method includes:
when the transmission of a target file is interrupted, acquiring transmission interruption information, wherein the transmission interruption information comprises address information of the target file and transmission progress information of a client;
downloading at least part of files which are not transmitted by the client in the target files from the target server according to the transmission interruption information;
receiving a transmission request sent by a client, wherein the transmission request carries transmission progress information of the client;
and transmitting the part of the file to the client according to the transmission progress information.
In a second aspect, a file transfer method is provided, which includes:
when the transmission of a target file is interrupted, acquiring transmission progress information of the target file;
when the network condition reaches a preset condition, sending a transmission request to a proxy server, wherein the transmission request carries the transmission progress information, so that the proxy server sends the partial files in the target file according to the transmission progress information after receiving the transmission request;
and the client receives the partial file transmitted by the proxy server.
In a third aspect, a client is provided, which includes:
the processing module is used for acquiring transmission progress information of the target file when the transmission of the target file is interrupted;
the sending module is used for sending a transmission request to a proxy server when the network condition reaches a preset condition, wherein the transmission request carries the transmission progress information, so that the proxy server sends partial files which are not transmitted by the client in a target file according to the transmission progress information after receiving the transmission request;
and the receiving module is used for receiving the partial file transmitted by the proxy server.
In a fourth aspect, a proxy server is provided, the proxy server comprising:
the processing module is used for acquiring transmission interruption information when the transmission of the target file is interrupted;
the processing module is also used for downloading partial files which are not transmitted by the client in the target files from the target server at least according to the transmission interruption information;
the receiving module is used for receiving a transmission request sent by a client, wherein the transmission request carries transmission progress information of the client;
and the sending module is used for transmitting the part of files to the client according to the transmission progress information.
According to the file transmission method, the client and the proxy server provided by the embodiment of the invention, when the transmission of the target file is interrupted, the transmission progress information of the target file is acquired; when the network condition reaches a preset condition, sending a transmission request to the proxy server, wherein the transmission request carries transmission progress information, so that the proxy server sends partial files which are not transmitted by a client in the target file according to the transmission progress information after receiving the transmission request; the client receives the partial file transmitted by the proxy server. By adopting the technical scheme provided by the invention, when the client transmission is interrupted due to network problems, the proxy server can be triggered to replace the client to continuously download the target file based on the transmission interruption information, and when the network is recovered, the client automatically continuously downloads the part of the target file which is not transmitted from the proxy server, so that the complex operation executed for continuous downloading is avoided, the transmission flow is simplified, and the resource waste of the client is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a file transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart of a file transmission method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a network system according to a third embodiment of the present invention;
fig. 4 is a flowchart of a file transmission method according to a third embodiment of the present invention;
FIG. 5 is a flowchart of another file transmission method according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of an automatic download setting interface according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a client according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a proxy server according to a fifth embodiment of the present invention;
FIG. 9 is a schematic diagram of a client according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a proxy server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
An embodiment of the present invention provides a file transmission method, as shown in fig. 1, where the method includes:
101. and when the transmission of the target file is interrupted, acquiring the transmission progress information of the target file.
102. And when the network condition reaches a preset condition, sending a transmission request to the proxy server, wherein the transmission request carries transmission progress information.
103. The client receives the partial file transmitted by the proxy server.
Optionally:
and receiving a client identification distributed by the proxy server, wherein the client identification is used for uniquely identifying the client.
Optionally, the client identifier is randomly generated by the proxy server, or the proxy server generates the client identifier according to the registration information of the client.
Optionally:
receiving an automatic downloading setting instruction sent by a proxy server;
generating an automatic download setting interface according to the automatic download setting instruction;
generating an automatic downloading instruction according to an automatic downloading setting response instruction triggered on an automatic downloading setting interface by a user;
and sending an automatic downloading instruction to the proxy server so that the proxy server can download at least part of the files from the target server according to the transmission interruption information after acquiring the transmission interruption information of the client.
Optionally, the method further includes:
when the transmission of the target file is started, receiving an automatic downloading setting instruction sent by a proxy server; or
And receiving an automatic downloading setting instruction sent by the proxy server in the transmission process of the target file.
By adopting the technical scheme provided by the invention, when the client transmission is interrupted due to network problems, the proxy server can be triggered to replace the client to continuously download the target file based on the transmission interruption information, and when the network is recovered, the client automatically continuously downloads the part of the target file which is not transmitted from the proxy server, so that the complex operation executed for continuous downloading is avoided, the transmission flow is simplified, and the resource waste of the client is avoided.
An embodiment of the second embodiment of the present invention provides a file transmission method, as shown in fig. 2, the method includes:
201. and when the transmission of the target file is interrupted, acquiring transmission interruption information, wherein the transmission interruption information comprises address information of the target file and transmission progress information of the client.
202. And downloading at least part of the file which is not transmitted by the client in the target file from the target server according to the transmission interruption information.
203. And receiving a transmission request sent by the client, wherein the transmission request carries transmission progress information of the client.
204. And transmitting part of the file to the client according to the transmission progress information.
Alternatively to this, the first and second parts may,
judging whether the target server supports a breakpoint resuming function or not;
and if the target server does not support the breakpoint continuous transmission function, executing a step of downloading at least part of files which are not transmitted by the client in the target files from the target server according to the transmission interruption information.
Optionally, the method further includes:
randomly generating a client identifier for uniquely identifying the client for the client; or the like, or, alternatively,
and allocating the client identifier for the client according to the registration information of the client on the proxy server.
Alternatively to this, the first and second parts may,
and performing authentication operation on the client according to the client identifier, and after the authentication is successful, executing the step of downloading at least part of files which are not transmitted by the client in the target files from the target server according to the transmission interruption information.
Alternatively to this, the first and second parts may,
and carrying out authentication operation on the client according to the client identification, and after the authentication is successful, executing the step of transmitting part of files to the client according to the transmission progress information.
Optionally, an automatic download setting instruction is sent to the client, so that the user equipment generates the automatic download instruction after receiving the automatic download setting instruction;
and acquiring an automatic downloading instruction sent by the client, and executing the operation of acquiring the transmission interruption information of the client according to the automatic downloading instruction.
By adopting the technical scheme provided by the invention, when the client transmission is interrupted due to network problems, the proxy server can be triggered to replace the client to continuously download the target file based on the transmission interruption information, and when the network is recovered, the client automatically continuously downloads the part of the target file which is not transmitted from the proxy server, so that the complex operation executed for continuous downloading is avoided, the transmission flow is simplified, and the resource waste of the client is avoided.
In order to enable those skilled in the art to more clearly understand the technical solution provided by the embodiment of the present invention, a data transmission method provided by the embodiment of the present invention is described in detail below by using a third specific embodiment. The embodiment of the invention is applied to a network system, as shown in fig. 3, the network system comprises a target server, a proxy server and a client, the client can be a mobile phone or a tablet computer, wherein the target server and the proxy server form a network side, and before file transmission between the network side and the client is interrupted, the client transmits a target file with the target server by transmitting a target file request, as shown in fig. 4, the method comprises the following steps:
401. and the client side transmits a target file transmission request to the target server, and starts to transmit the target file with the target server.
The transfer target file request may include URL (Uniform resource locator) information of the target file. The target server may obtain a target file according to the URL information, and send the target file to the client after obtaining the target file, where the URL information may include a server identifier, and the server identifier is used to record whether the target server supports a breakpoint resume function.
402. After sending the transmission target file request, the client sends an automatic download setting request instruction to the proxy server, so that the proxy server generates the automatic download setting instruction according to the automatic download setting request instruction.
For example, the automatic download setting request instruction may include URL information and a client identification.
Wherein the client identity is assigned by the proxy server. The client identifier may be randomly generated by the proxy server and used for uniquely identifying the client, or may be generated by the proxy server according to the registration information of the client on the proxy server. The registration information may be a registered account and a registered password, or may be other parameters such as a device name, which is not limited herein.
The way in which the proxy server generates the client identity from the registration information of the client on the proxy server may include the following steps 402a-402b, as shown in fig. 5:
402a, the proxy server acquires the registration information of the client.
For example, the registration information may be a registration account and a registration password, such as an instant messaging account and password, a mailbox account and mailbox password, and the like.
Specifically, a client actively sends a login request to a proxy server, the login request carries registration information, the proxy server verifies the registration information in the login request after receiving the login request of the client, and acquires the registration information after the verification is successful; if the proxy server is successfully verified, the client may log in to the proxy server and perform 402b accordingly. If the proxy server fails in verification, the client cannot log in the proxy server and sends prompt information to the client to inform the client of the failure in logging in.
The proxy server may also verify the client by using other verification algorithms and then acquire the registration information, and a specific acquisition manner is not limited herein.
402b, the proxy server generates a client identification according to the registration information of the client.
Specifically, the proxy server generates a client Identifier according to the registration information of the client, where the client Identifier may also be a GUID (global Unique Identifier).
403. And the proxy server sends an automatic download setting instruction to the client so that the client can generate an automatic download setting interface according to the automatic download setting instruction.
It should be noted that the proxy server may also actively send the automatic download setting instruction to the client when the target server receives a target file transmission request from the client, may also send the automatic download setting request instruction to the proxy server when the client starts to transmit the target file with the target server, and may also send the automatic download setting request instruction to the proxy server by the client during the transmission of the target file with the target server, which is not limited here.
404. And the client displays an automatic download setting interface according to the automatic download setting instruction sent by the proxy server.
Illustratively, as shown in fig. 6, the automatic download setting interface may include: the automatic download setting method comprises the steps that automatic download setting request information can be set to be whether automatic download is set or not, the automatic download interface further comprises a user selection icon, the user selection icon can be an icon corresponding to the character 'yes' and an icon corresponding to the character 'no', if the user selects the icon corresponding to the character 'yes' in the automatic download setting interface, the client judges that the user selects automatic download, and an automatic download setting response instruction is correspondingly generated; and if the user selects the icon corresponding to the character 'no' in the automatic download setting interface, the client judges that the user does not select automatic download.
Optionally, the automatic download setting interface may further include: the icon for the user to perform other setting operations such as saving the catalog setting and the network use environment setting can be an icon corresponding to the character "other setting", and the user obtains other setting interfaces such as a saving catalog setting interface and an automatically downloaded network environment setting interface by selecting the icon corresponding to the character "other setting".
405. The client generates an automatic downloading request according to an automatic downloading setting response instruction triggered on an automatic downloading setting interface by a user, and sends the automatic downloading request to the proxy server.
Notably, the automatic download request can include URL information and a client identification of the target file.
The steps 401 to 405 are automatic download setting processes, and the automatic download setting processes may be in other forms besides the modes listed in the embodiments of the present invention, for example, setting is performed in a system setting menu of the client, and file transmission of all clients is set as automatic download.
406. And when the transmission of the target file is interrupted, the client acquires the transmission progress information of the target file.
The transmission progress information is used for determining the initial position of a part of files which are not transmitted by the client in the target file when the file transmission is interrupted and the URL information of the target file, and according to the transmission progress information, the client can continuously transmit the target file from the initial position in the subsequent process.
Specifically, when the transmission of the target file is determined to be interrupted, the client saves the URL information of the target file and the starting position of the part of the file which is not transmitted by the client when the file transmission is interrupted in the target file. And generating transmission progress information according to the URL information of the target file and the initial position of the part of the file which is not transmitted by the client in the target file.
407. And when the transmission of the target file is interrupted, the proxy server acquires transmission interruption information.
Specifically, when it is determined that the transmission of the target file is interrupted, the proxy server generates transmission interruption information by using the URL information in the monitoring information and the start position of the part of the file in the target file that is not transmitted by the client when the transmission of the target file is interrupted, so that the proxy server can determine the target server where the target file is located by using the transmission interruption information in the subsequent process, and download at least the part of the file in the target file that is not transmitted by the client from the target server.
The monitoring information is generated by monitoring the transmission between the client and the target server by the proxy server after the proxy server receives the automatic downloading request sent by the client.
The proxy server monitors the transmission of the target file between the client and the target server, so that the proxy server can acquire the URL information, the position of the part of the file in the target file transmitted by the client during file transmission and the network environment by using the monitoring information in the monitoring process, and when the proxy server knows the transmission interruption of the target file according to the monitoring information, the proxy server can acquire the initial position of the part of the file in the target file not transmitted by the client during the transmission interruption of the target file and the URL information of the target file by using the monitoring information.
Meanwhile, when the transmission of the target file is interrupted, 406 is a step of acquiring transmission progress information for the client, 407 is a step of acquiring transmission interruption information for the proxy server, and 406 and 407 may be executed according to the sequence listed in this embodiment, may be executed simultaneously, or may be executed according to other sequences, which is not limited herein.
Optionally, after the transmission of the target file is interrupted, the proxy server may further determine whether the target server supports the breakpoint resuming function according to the server identifier included in the URL information.
If the target server does not support the breakpoint resume function, execution is performed 408.
If the target server supports the breakpoint resume function, after the network environment reaches a preset condition, sending a prompt message to the client to inform the client that the target server supports the breakpoint resume function, so that the client sends a transmission request to the target server after the network environment reaches the preset condition.
Optionally, the client may also determine whether the target server supports the breakpoint resuming function according to the server identifier.
At this time, if the target server does not support the breakpoint resume function, 408 is executed.
If the target server supports the breakpoint continuous transmission function, the client actively sends a transmission request to the target server after detecting that the network environment reaches a preset condition. When the transmission of the client is interrupted, the transmission progress information is recorded and the network environment is continuously detected, so that once the network environment is detected to reach the preset condition, the user does not need to continuously download the interrupted transmission at the client and the like, but the background of the client actively sends a transmission request to obtain a part of files which are not transmitted by the target file.
408. And the proxy server downloads at least part of the files which are not transmitted by the client in the target files from the target server according to the transmission interruption information.
Illustratively, the proxy server obtains a target server where the target file is located according to the transmission interruption information, then establishes a file transmission path with the target server, and finally downloads a part of the file which is not transmitted by the client in the target file from the target server according to the transmission interruption information. Alternatively, the first and second electrodes may be,
after a file transmission path is established with the target server, the target file is downloaded from the target server, and the file loss is avoided by downloading the target file completely and acquiring the part of the file which is not transmitted from the target file in the subsequent process.
In the embodiment of the present invention, the proxy server has the breakpoint resume function, that is, even if the target server does not provide the breakpoint resume service, the proxy server may replace the client to download the file in a manner of downloading the target file entirely or only partially in the case of network interruption of the client, so as to provide the breakpoint resume service for the client in the subsequent process.
409. And when the network environment reaches a preset condition, the client sends a transmission request to the proxy server, wherein the transmission request comprises transmission progress information.
Optionally, the client determines whether the network environment meets a preset condition.
Wherein, because cause the reason that the transmission of target file was interrupted can include that the network signal is poor, the customer end leaves WIFI network etc. so, the mode that the customer end judges whether network environment reaches preset condition can include judging whether the customer end can receive the network signal and whether the customer end is reconnected with the WIFI network etc. to judge whether the customer end can receive the network signal as an example, this judgement process can specifically be:
and the client judges whether the client can receive the network signal according to whether the received signal strength of the network side reaches a preset threshold value. If the received signal strength of the network side reaches a preset threshold value, judging that the client can receive the network signal; and if the received signal strength of the network side does not reach the preset threshold value, judging that the client cannot receive the network signal.
Specifically, it may also be determined whether the transmission speed of the transmission channel between the client and the network side reaches a preset threshold, and whether the client can receive the network signal, or whether the client can receive the network signal according to other parameters, and a specific execution mode is not limited here.
And after judging that the network environment reaches the preset condition, the client sends a transmission request to the proxy server, wherein the transmission request comprises URL information, a client identifier and transmission progress information.
410. And the proxy server receives the transmission request sent by the client and sends part of the file to the client according to the transmission progress information in the transmission request.
Optionally, the proxy server performs authentication operation on the client according to the client identifier in the transmission request, after the authentication is successful, the proxy server searches for a part of the file of the target file according to the transmission request, and after obtaining the part of the file, sends the part of the file to the client. Alternatively, the first and second electrodes may be,
the proxy server searches the target file according to the transmission request, acquires a part of file according to the initial position of the part of file which is not transmitted by the file end in the target file, and then sends the part of file to the client.
411. The client receives the partial file and generates a target file according to the file saved by the client and the partial file.
Specifically, the file saved by the client and the partial file form a complete file according to the initial position of the partial file which is not transmitted in the transmission progress information in the target file.
Optionally, after the client generates the target file, the client may display a file download completion prompt interface to prompt the user that the target file has been downloaded.
By adopting the technical scheme provided by the invention, when the client transmission is interrupted due to network problems, the proxy server can be triggered to replace the client to continuously download the target file based on the transmission interruption information, and when the network is recovered, the client automatically continuously downloads the part of the target file which is not transmitted from the proxy server, so that the complex operation executed for continuous downloading is avoided, the transmission flow is simplified, and the resource waste of the client is avoided.
Fourth embodiment is a client 1 provided in the embodiment of the present invention, as shown in fig. 7, where the client 1 includes:
the processing module 11 is configured to obtain transmission progress information of the target file when transmission of the target file is interrupted;
the sending module 12 is configured to send a transmission request to the proxy server when the network condition reaches a preset condition, where the transmission request carries transmission progress information, so that the proxy server sends, after receiving the transmission request, a part of files that are not transmitted by the client in the target file according to the transmission progress information;
and the receiving module 13 is used for receiving the partial file transmitted by the proxy server.
Optionally, the receiving module 13 is also used for
And receiving a client identifier distributed by the proxy server, wherein the client identifier is used for uniquely identifying the client.
Optionally, the client identifier is randomly generated by the proxy server, or the proxy server generates the client identifier according to the registration information of the client.
Alternatively to this, the first and second parts may,
the receiving module 13 is further configured to receive an automatic download setting instruction sent by the proxy server;
the processing module 11 is further configured to generate an automatic download setting interface according to the automatic download setting instruction;
the processing module 11 is further configured to generate an automatic download instruction according to an automatic download setting response instruction triggered by the user on the automatic download setting interface;
the sending module 12 is further configured to send an automatic downloading instruction to the proxy server, so that the proxy server downloads at least a part of the file from the target server according to the transmission interruption information after acquiring the transmission interruption information of the client.
Alternatively to this, the first and second parts may,
when starting the transmission of the target file, the receiving module 13 receives an automatic download setting instruction sent by the proxy server; or
After the transmission of the target file is started, the receiving module 13 receives the automatic download setting instruction sent by the proxy server.
By adopting the client provided by the invention, when the transmission is interrupted due to a network problem, the proxy server can be triggered to replace the client to continuously download the target file based on the transmission interruption information, and when the network is recovered, the client automatically continuously downloads the part of the target file which is not transmitted from the proxy server, so that the complicated operation executed for continuous downloading is avoided, the transmission flow is simplified, and the resource waste of the client is avoided.
Fifth embodiment is a proxy server 2 according to an embodiment of the present invention, as shown in fig. 8, where the proxy server 2 includes:
a processing module 21, configured to obtain transmission interruption information when transmission of the target file is interrupted; the transmission interruption information comprises address information of the target file and transmission progress information of the client;
the processing module 21 is further configured to download, from the target server, at least a part of the file that is not transmitted by the client in the target file according to the transmission interruption information;
the receiving module 22 is configured to receive a transmission request sent by a client, where the transmission request carries transmission progress information of the client;
and the sending module 23 is configured to transmit the partial file to the client according to the transmission progress information.
Optionally, the proxy server 2 further comprises a decision module 24, and the decision module 24 is used for
Judging whether the target server supports a breakpoint resuming function or not;
if the target server does not support the breakpoint resuming function, the triggering processing module 21 executes a step of downloading at least a part of the file which is not transmitted by the client in the target file from the target server according to the transmission interruption information.
Optionally, the processing module 21 is also used for
Randomly generating a client identifier for uniquely identifying the client for the client; or the like, or, alternatively,
and allocating the client identifier for the client according to the registration information of the client on the proxy server.
Optionally, the proxy server 2 further comprises an authentication module 25, and the authentication module 25 is used for
The authentication operation is carried out on the client according to the client identification, and after the authentication is successful, the processing module 21 is triggered to execute the step of downloading at least part of files which are not transmitted by the client in the target files from the target server according to the transmission interruption information;
optionally, the authentication module 25 is used for
And carrying out authentication operation on the client according to the client identification, and triggering the sending module 23 to execute the step of transmitting part of the files to the client according to the transmission progress information after the authentication is successful.
Optionally, the sending module 23 is further configured to send an automatic download setting instruction to the client, so that the user equipment generates the automatic download instruction after receiving the automatic download setting instruction;
the receiving module 22 is further configured to obtain an automatic downloading instruction sent by the client, and trigger the processing module 21 to execute the step of obtaining the transmission interruption information according to the automatic downloading instruction.
By adopting the proxy server provided by the invention, when the client transmission is interrupted due to network problems, the proxy server can be triggered to replace the client to continuously download the target file based on the transmission interruption information, and when the network is recovered, the client automatically continuously downloads the part of the target file which is not transmitted from the proxy server, so that the complex operation executed for continuous downloading is avoided, the transmission flow is simplified, and the resource waste of the client is avoided.
Fig. 9 is a schematic structural diagram of a client according to an embodiment of the present invention, and a terminal 1200 may include a memory 110 including one or more computer-readable storage media, an input module 120, a display module 130, a WiFi (wireless fidelity) module 140, a processor 150 including one or more processing cores, and a power supply 160. Those skilled in the art will appreciate that the terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the memory 110 may be used to store software programs and modules, and the processor 150 executes various functional applications and data processing by operating the software programs and modules stored in the memory 110. The memory 110 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an interface display function, etc.), and the like; the storage data area may store data (such as a client identification, etc.) created according to the use of the terminal 1200, and the like. Further, the memory 110 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 110 may also include a memory controller to provide the processor 150 and the input module 120 access to the memory 110.
The input module 120 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input module 120 may include a touch-sensitive surface 121 as well as other input devices 122. The touch-sensitive surface 121, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 121 (e.g., operations by a user on or near the touch-sensitive surface 121 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 121 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 150, and can receive and execute commands sent by the processor 150. In addition, the touch-sensitive surface 121 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to touch-sensitive surface 121, input module 120 may include other input devices 122. In particular, other input devices 122 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display module 130 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 1200, which may be made up of graphics, text, icons, and any combination thereof. The Display module 130 may include a Display panel 131, and optionally, the Display panel 131 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Alternatively, the touch-sensitive surface 121 may cover the display panel 131, and when a touch operation is detected on or near the touch-sensitive surface 121, the touch operation is transmitted to the processor 150 to determine the type of the touch event, and then the processor 150 provides a corresponding visual output on the display panel 131 according to the type of the touch event. Although in FIG. 9, touch-sensitive surface 121 and display panel 131 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 121 and display panel 131 may be integrated to implement input and output functions.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 1200 may help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the WiFi module 140, and provide the user with wireless broadband internet access. Although fig. 9 shows the WiFi module 140, it is understood that it does not belong to the essential constitution of the terminal 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 150 is a control center of the terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 110 and calling data stored in the memory 110, thereby performing overall monitoring of the mobile phone. Optionally, processor 150 may include one or more processing cores; alternatively, the processor 150 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 150.
Terminal 1200 also includes a power supply 160 (e.g., a battery) for powering the various components, which may optionally be logically connected to processor 150 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 160 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 1200 may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the display module of the terminal is a touch screen display, the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to execute the instructions for displaying the page content by the one or more programs.
Fig. 10 is a schematic structural diagram of a proxy server according to an embodiment of the present invention, where the proxy server may be a server 1300, and the server 1300 includes a Central Processing Unit (CPU)1301, a system memory 1304 including a Random Access Memory (RAM)1302 and a Read Only Memory (ROM)1303, and a system bus 1305 connecting the system memory 1304 and the central processing unit 1301. The server 1300 also includes a basic input/output system (I/O system) 1306, which facilitates transfer of information between devices within the computer, and a mass storage device 1307 for storing an operating system 1313, application programs 1314, and other program modules 1315.
The basic input/output system 1306 includes a display 1308 for displaying information and an input device 1309, such as a mouse, keyboard, etc., for user input of information. Wherein a display 1308 and an input device 1309 are connected to the central processing module 1301 through an input-output controller 1310 connected to the system bus 1305. The basic input/output system 1306 may also include an input/output controller 1310 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1310 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1307 is connected to the central processing module 1301 through a mass storage controller (not shown) connected to the system bus 1305. The mass storage device 1307 and its associated computer-readable media provide non-volatile storage for the client device 1300. That is, the mass storage device 1307 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 1304 and mass storage device 1307 described above may be collectively referred to as memory.
According to various embodiments of the invention, the server 1300 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 1300 may be connected to the network 1312 through the network interface module 1311, which is coupled to the system bus 1305, or may be connected to other types of networks or remote computer systems (not shown) using the network interface module 1311.
The memory also includes one or more programs, which are stored in the memory and configured to be executed by the one or more central processing modules 1301, including for performing the file transfer methods provided by the embodiments shown in fig. 1, 2, and 4-9.
It should be noted that: in the above embodiment, when the client and the proxy server execute file transfer, only the division of the functional modules is used as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structures of the client and the proxy server are divided into different functional modules to complete all or part of the functions described above. In addition, the client and the proxy server provided by the above embodiments belong to the same concept as the file transmission method embodiment, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (21)

1. A method for file transfer, the method comprising:
receiving an automatic download setting request instruction sent by a client, wherein the automatic download setting request instruction comprises URL information of a target file;
when the transmission of the target file is interrupted, acquiring transmission interruption information, wherein the transmission interruption information comprises address information of the target file and transmission progress information of a client, the transmission interruption information is generated according to monitoring information, the monitoring information comprises URL information and an initial position of a part of file which is not transmitted by the client when the transmission of the target file is interrupted in the target file, and the monitoring information is generated by monitoring the transmission between the client and a target server by a proxy server;
judging whether the target server supports a breakpoint resuming function or not;
if the target server does not support the breakpoint continuous transmission function, downloading a target file from the target server according to the transmission interruption information, and then acquiring a part of the target file which is not transmitted by the client; or, downloading the partial file from the target server according to the transmission interruption information;
receiving a transmission request sent by the client, wherein the transmission request carries transmission progress information of the client;
and transmitting the part of the file to the client according to the transmission progress information.
2. The method of claim 1, further comprising:
randomly generating a client identifier for uniquely identifying the client for the client; or the like, or, alternatively,
and distributing a client identifier for the client according to the registration information of the client on the proxy server.
3. The method of claim 2, wherein prior to obtaining transmission interruption information, the method further comprises:
and carrying out authentication operation on the client according to the client identification, and after the authentication is successful, then executing the step of downloading the target file or the part of the file from a target server according to the transmission interruption information.
4. The method according to claim 2, wherein before transmitting the partial file to the client according to the transmission progress information, the method further comprises:
and carrying out authentication operation on the client according to the client identification, and after the authentication is successful, executing the step of transmitting the partial files to the client according to the transmission progress information.
5. The method of claim 1, further comprising:
sending an automatic downloading setting instruction to the client so that the client generates an automatic downloading instruction after receiving the automatic downloading setting instruction;
and acquiring the automatic downloading instruction sent by the client, and executing the step of acquiring the transmission interruption information according to the automatic downloading instruction.
6. A method for file transfer, the method comprising:
sending an automatic download setting request instruction to a proxy server, wherein the automatic download setting request instruction comprises URL information of a target file;
when the transmission of the target file is interrupted, acquiring transmission progress information of the target file;
when the network condition reaches a preset condition, sending a transmission request to a proxy server, wherein the transmission request carries the transmission progress information, so that the proxy server sends partial files which are not transmitted by a client in a target file according to the transmission progress information after receiving the transmission request;
the client receives the partial file transmitted by the proxy server;
wherein, when the transmission of the partial file is interrupted, the proxy server determines that the target server does not support the breakpoint continuous transmission function and downloads the partial file from the target server according to the transmission interruption information, or, the partial file is that the proxy server determines that the target server does not support the breakpoint resume function, and obtains the target file from the target file after downloading the target file from the target server according to the transmission interruption information, the transmission interruption information includes address information of the target file and transmission progress information of the client, the transmission interruption information is generated according to monitoring information, the monitoring information comprises the URL information and the initial position of the part of the file which is not transmitted by the client when the transmission of the target file is interrupted in the target file, and the monitoring information is generated by monitoring the transmission between the client and the target server by the proxy server.
7. The method of claim 6, further comprising:
and receiving a client identifier distributed by the proxy server, wherein the client identifier is used for uniquely identifying the client.
8. The method of claim 6, wherein the client identifier is randomly generated by the proxy server or generated by the proxy server according to registration information of the client.
9. The method of claim 6, further comprising:
receiving an automatic downloading setting instruction sent by the proxy server;
generating an automatic download setting interface according to the automatic download setting instruction;
generating an automatic downloading instruction according to an automatic downloading setting response instruction triggered on the automatic downloading setting interface by a user;
and sending the automatic downloading instruction to the proxy server so that the proxy server at least downloads the part of the file from a target server according to the transmission interruption information after acquiring the transmission interruption information of the client.
10. The method of claim 9,
when the transmission of the target file is started, receiving an automatic downloading setting instruction sent by the proxy server; or the like, or, alternatively,
and receiving an automatic downloading setting instruction sent by the proxy server in the transmission process of the target file.
11. A client, the client comprising:
the sending module is used for sending an automatic download setting request instruction to the proxy server, wherein the automatic download setting request instruction comprises URL information of a target file;
the processing module is used for acquiring transmission progress information of the target file when the transmission of the target file is interrupted;
the sending module is used for sending a transmission request to a proxy server when the network condition reaches a preset condition, wherein the transmission request carries the transmission progress information, so that the proxy server sends part of files which are not transmitted by the client in the target files according to the transmission progress information after receiving the transmission request;
the receiving module is used for receiving the partial file transmitted by the proxy server;
wherein, when the transmission of the partial file is interrupted, the proxy server determines that the target server does not support the breakpoint continuous transmission function and downloads the partial file from the target server according to the transmission interruption information, or, the partial file is that the proxy server determines that the target server does not support the breakpoint resume function, and obtains the target file from the target file after downloading the target file from the target server according to the transmission interruption information, the transmission interruption information includes address information of the target file and transmission progress information of the client, the transmission interruption information is generated according to monitoring information, the monitoring information comprises the URL information and the initial position of the part of the file which is not transmitted by the client when the transmission of the target file is interrupted in the target file, and the monitoring information is generated by monitoring the transmission between the client and the target server by the proxy server.
12. The client of claim 11, wherein the receiving module is further configured to receive a request from a user
And receiving a client identifier distributed by the proxy server, wherein the client identifier is used for uniquely identifying the client.
13. The client of claim 12, wherein the client identifier is randomly generated by the proxy server, or is generated by the proxy server according to registration information of the client.
14. The client of claim 11,
the receiving module is also used for receiving an automatic downloading setting instruction sent by the proxy server;
the processing module is also used for generating an automatic download setting interface according to the automatic download setting instruction;
the processing module is also used for generating an automatic downloading instruction according to an automatic downloading setting response instruction triggered by a user on the automatic downloading setting interface;
the sending module is further configured to send the automatic downloading instruction to the proxy server, so that the proxy server downloads at least the part of the file from the target server according to the transmission interruption information after acquiring the transmission interruption information of the client.
15. The client of claim 14,
the receiving module is also used for receiving an automatic downloading setting instruction sent by the proxy server when the transmission of the target file is started; or
The receiving module is further configured to receive an automatic download setting instruction sent by the proxy server after transmission of the target file is started.
16. A proxy server, characterized in that the proxy server comprises:
the system comprises a receiving module, a setting module and a processing module, wherein the receiving module is used for receiving an automatic download setting request instruction sent by a client, and the automatic download setting request instruction comprises URL information of a target file;
the processing module is used for acquiring transmission interruption information when the transmission of the target file is interrupted, wherein the transmission interruption information comprises address information of the target file and transmission progress information of a client, the transmission interruption information is generated according to monitoring information, the monitoring information comprises URL information and an initial position of a part of file which is not transmitted by the client when the transmission of the target file is interrupted in the target file, and the monitoring information is generated by monitoring the transmission between the client and a target server by a proxy server;
the judgment module is used for judging whether the target server supports the breakpoint continuous transmission function or not; if the target server does not support the breakpoint continuous transmission function, triggering the processing module to download a target file from the target server according to the transmission interruption information and then obtain a part of file which is not transmitted by the client in the target file; or, downloading the partial file from the target server according to the transmission interruption information;
the receiving module is used for receiving a transmission request sent by the client, wherein the transmission request carries transmission progress information of the client;
and the sending module is used for transmitting the part of files to the client according to the transmission progress information.
17. The proxy server of claim 16, wherein the processing module is further configured to:
randomly generating a client identifier for uniquely identifying the client for the client; or the like, or, alternatively,
and distributing a client identifier for the client according to the registration information of the client on the proxy server.
18. The proxy server of claim 17, further comprising an authentication module configured to:
and carrying out authentication operation on the client according to the client identification, and triggering the processing module to execute the step of downloading the target file or the partial file from the target server according to the transmission interruption information after the authentication is successful.
19. The proxy server of claim 17, further comprising an authentication module configured to:
and carrying out authentication operation on the client according to the client identification, and triggering the sending module to execute the step of transmitting the partial file to the client according to the transmission progress information after the authentication is successful.
20. The proxy server of claim 16,
the sending module is further used for sending an automatic download setting instruction to the client so that the client generates an automatic download instruction after receiving the automatic download setting instruction;
the receiving module is further configured to obtain the automatic downloading instruction sent by the client, and trigger the processing module to execute the step of obtaining the transmission interruption information according to the automatic downloading instruction.
21. A computer-readable storage medium storing a program configured to execute the file transfer method according to any one of claims 1 to 10 by a processor.
CN201410137160.0A 2014-04-08 2014-04-08 File transmission method, client and proxy server Active CN104980399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410137160.0A CN104980399B (en) 2014-04-08 2014-04-08 File transmission method, client and proxy server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410137160.0A CN104980399B (en) 2014-04-08 2014-04-08 File transmission method, client and proxy server

Publications (2)

Publication Number Publication Date
CN104980399A CN104980399A (en) 2015-10-14
CN104980399B true CN104980399B (en) 2020-04-21

Family

ID=54276509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410137160.0A Active CN104980399B (en) 2014-04-08 2014-04-08 File transmission method, client and proxy server

Country Status (1)

Country Link
CN (1) CN104980399B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623706A (en) * 2016-07-13 2018-01-23 中兴通讯股份有限公司 Document transmission method and device
CN106160860B (en) * 2016-07-26 2019-02-22 维沃移动通信有限公司 A kind of visible light communication method and terminal
CN107294830B (en) * 2017-06-19 2019-09-13 四川速宝网络科技有限公司 A kind of data transmission method and system
CN107395416A (en) * 2017-07-20 2017-11-24 郑州云海信息技术有限公司 A kind of data transmission method for uplink and server cluster
CN107864468A (en) * 2017-09-29 2018-03-30 努比亚技术有限公司 A kind of method and apparatus for transmitting file
CN110011952B (en) * 2018-01-05 2022-01-25 中国移动通信有限公司研究院 Data transmission method, service cluster and client
CN110008187B (en) * 2018-12-18 2023-05-12 创新先进技术有限公司 File transmission scheduling method, device, equipment and computer readable storage medium
CN110913022A (en) * 2019-12-25 2020-03-24 惠州Tcl移动通信有限公司 Method, device and system for downloading network file of mobile terminal and storage medium
CN111432033A (en) * 2020-04-22 2020-07-17 深信服科技股份有限公司 Application program downloading method, device and system, IOS equipment and medium
CN111726401B (en) * 2020-06-09 2023-05-26 北京天空卫士网络安全技术有限公司 File transmission method and device
CN112039941B (en) * 2020-07-08 2023-02-28 广东易达电子科技有限公司 Data transmission method, device and medium
CN114666322A (en) * 2022-03-22 2022-06-24 通号智慧城市研究设计院有限公司 Breakpoint resume method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE0001799L (en) * 2000-05-16 2001-11-17 Almquist & Swartz Ab Systems for monitoring and controlling the use of an access network
CN1605072A (en) * 2001-12-13 2005-04-06 汤姆森许可公司 System and method for downloading data using a proxy
CN101217295A (en) * 2007-12-29 2008-07-09 深圳华为通信技术有限公司 File transmitting method, receiving method and device based on Bluetooth technique
CN101291195A (en) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 File downloading method, system and terminal realizing breaker point continuous transmission
CN102158847A (en) * 2010-12-01 2011-08-17 北京迅捷英翔网络科技有限公司 Communication method and system between mobilephone and server
GB2499363A (en) * 2011-11-30 2013-08-21 Metaswitch Networks Ltd Providing access and transmitting notifications

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005520397A (en) * 2002-03-12 2005-07-07 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Server for standby management in the network
CN101202979B (en) * 2006-12-15 2011-08-31 深圳市杰普林数码科技限公司 Method for inter-transmitting file among mobile phones
WO2011144077A2 (en) * 2011-05-25 2011-11-24 华为技术有限公司 Method and device for point to point file transmission
CN103051733B (en) * 2013-01-22 2020-11-27 周万荣 Data downloading method, terminal and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE0001799L (en) * 2000-05-16 2001-11-17 Almquist & Swartz Ab Systems for monitoring and controlling the use of an access network
CN1605072A (en) * 2001-12-13 2005-04-06 汤姆森许可公司 System and method for downloading data using a proxy
CN101217295A (en) * 2007-12-29 2008-07-09 深圳华为通信技术有限公司 File transmitting method, receiving method and device based on Bluetooth technique
CN101291195A (en) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 File downloading method, system and terminal realizing breaker point continuous transmission
CN102158847A (en) * 2010-12-01 2011-08-17 北京迅捷英翔网络科技有限公司 Communication method and system between mobilephone and server
GB2499363A (en) * 2011-11-30 2013-08-21 Metaswitch Networks Ltd Providing access and transmitting notifications

Also Published As

Publication number Publication date
CN104980399A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN104980399B (en) File transmission method, client and proxy server
US20210336780A1 (en) Key updating method, apparatus, and system
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
CN106534277B (en) Data sharing method and device
RU2605919C2 (en) Method and apparatus for displaying push messages
CN106776124B (en) Data backup method and device
CN106874077B (en) Process running method and device
CN107171874B (en) Voice engine switching method, mobile terminal and server
CN111478849B (en) Service access method, device and storage medium
EP2755136A1 (en) Remote backup system and remote backup method thereof
CN106656743B (en) Message display method, device and system
CN106775833B (en) Device driver loading method, terminal and system
WO2019223100A1 (en) Device information deletion method and apparatus, household appliance, mobile terminal and server
CN106713608B (en) Application function state modification method and device and terminal
WO2018108123A1 (en) Identity authentication method, device and system
EP3509353A1 (en) Wifi connection method and device
CN106953898B (en) Method and device for acquiring software package
WO2015196472A1 (en) Method, terminal, client, smart card and system for accessing wireless network
CN108804915B (en) Virus program cleaning method, storage device and electronic terminal
CN103984487A (en) Application sharing method, device, terminal equipment and system
WO2018108062A1 (en) Method and device for identity verification, and storage medium
CN112394957A (en) Server upgrading method and device, server and storage medium
CN109144596B (en) Quick starting method, device, terminal, server and system
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN111142900A (en) Program updating method and device and terminal equipment

Legal Events

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