Embodiment
It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Fig. 2 is according to the process flow diagram of the first embodiment of web data transmission method of the present invention.As shown in Figure 2, the method comprises the steps:
Step S102, network transmitting apparatus receives trigger pip, and wherein, trigger pip is instruction is sent to web data target web signal by original web page.
Trigger pip in this step can be the click behavior of user to particular webpage data in network transmitting apparatus, and receiving this click behavior is that this web data is sent to target web by indication network transmitting apparatus.Transmission described here can be that web data is shared to target web from original web page, can be also web data to be copied or clipped to target web.
Step S104, network transmitting apparatus creates transmission daily record corresponding to trigger pip, and wherein, the content that sends daily record comprises the information of carrying in trigger pip.
Daily record is the file with .log ending of various raw informations while recording the request of web server reception & disposal and operation.The meaning of daily record maximum is to record operation situation, the record of accessed request etc. in space in the operation of website.By daily record can clearly learn user at what IP, when, which page of having accessed targeted website with what operating system, what browser, what resolution display in the situation that, whether access successfully etc.
The once complete data transmission behavior that is created described transmission daily record and can be obtained netizen by this step, comprises and shares behavior, can by send daily record know who when by what content delivery (sharing) to what platform.
Step S106, network transmitting apparatus, in sending transmission daily record corresponding to trigger pip, sends to target web by web data by original web page.
Two actions described in this step are carried out simultaneously, aspect ensureing two, are not having under affected prerequisite, have improved on the whole the efficiency of network transmitting apparatus transmission data.
This embodiment is owing to having taked following steps: network transmitting apparatus receives trigger pip; Network transmitting apparatus creates transmission daily record corresponding to trigger pip; Network transmitting apparatus is in sending transmission daily record corresponding to trigger pip, web data is sent to target web by original web page, make the process of web data from original web page to target web and discrete the coming of process that the transmission Log Sender of original web page generation is gone out, thereby can make web data directly be transferred to target web, and be no longer dependent on response speed and the health degree of other equipment, reach the effect that improves user data transmission speed, improves user experience.
Fig. 3 is according to the process flow diagram of the second embodiment of web data transmission method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 1, and as shown in Figure 3, this web data transmission method comprises:
Step S201, network transmitting apparatus receives the script file code that network analysis equipment sends, and this script file code is used for when the call format that receives the transmission daily record that after trigger pip, regulation creates, and will send Log Sender to network analysis equipment.
Script file is the extension of autoexec, is the program that a kind of plain text is preserved, and computer script program is in general the combination that a series of control computing machines of determining carry out arithmetic operation action, can realize therein certain logic branch etc.The exploitation of the relative general procedure of shell script relatively approaches natural language, can be without compiling but explain and carry out, be beneficial to the control of fast Development or some light weights.Script is many, and the execution of general script is only relevant with concrete executor, so as long as have the interpretive routine of corresponding language just can accomplish cross-platform in system.
Script file code described in this step can be JS code.JS code is the code of the script file write of JavaScript, preserves expansion .JS by name by individual files.Fundamental purpose is the speed issue of leaving over for settlement server terminal language, and the basic function of data verification is provided.Relation a kind of real-time, dynamic, interactivity that the appearance of JavaScript makes to have realized between webpage and user.Utilize JS code can realize two functions: the first, when netizen is in the time that client web site carries out data transmission (sharing), can generate transmission (sharing) daily record conforming with the regulations.The second, by generate Log Sender to network analysis equipment.So journal format at least comprises netizen's information, temporal information, is sent out the information of content information and target device.
The configuration of network analysis equipment is used for receiving and recording the server of the transmission daily record of network transmitting apparatus specially, and regulation sends the form of daily record, here send the information that daily record at least comprises netizen's information, temporal information, is sent out content information and target device.
Step S202, network transmitting apparatus is loaded into script file code all webpages with transmission web data function of network transmitting apparatus, and wherein all webpages with transmission web data function comprise original web page.
Network transmitting apparatus, in the time of usage data transfer function, is first quoted the JS code providing, and this code is all quoted at the page of all demonstration data sending functions.Like this, network transmitting apparatus only need be accepted JS code once, when other pages with data sending function are subject to triggering afterwards, can introduce immediately, has improved work efficiency.
Step S204, network transmitting apparatus receives trigger pip, and wherein, trigger pip is instruction is sent to web data target web signal by original web page.
This step is identical with step S102, repeats no more here.
Step S206, network transmitting apparatus creates transmission daily record corresponding to trigger pip, and wherein, the content that sends daily record comprises the information of carrying in trigger pip.
This step is identical with step S104, repeats no more here.
Step S207, network transmitting apparatus, in sending transmission daily record corresponding to trigger pip, sends to target web by web data by original web page.
This step is identical with step S106, repeats no more here.
In this embodiment, provide the step that web data transmission method can also be additional: network transmitting apparatus receives the script file code that network analysis equipment sends, this script file code is used for when the call format that receives the transmission daily record that after trigger pip, regulation creates, and will send Log Sender to network analysis equipment; And network transmitting apparatus script file code is loaded into network transmitting apparatus allly there are the webpages that send web data function, wherein all have the webpages that send web data function and comprise original web page.Can add script file code at all pages with transmission web data function of network transmitting apparatus by above-mentioned steps, any one has the page that sends web data function and is triggered so only to need to load once network transmitting apparatus, can carry out immediately this code, improve the efficiency of web data transmission.
Fig. 4 is according to the process flow diagram of the 3rd embodiment of web data transmission method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 2, and as shown in Figure 4, this web data transmission method comprises:
Step S301, network transmitting apparatus receives the script file code that network analysis equipment sends, and this script file code is used for when the call format that receives the transmission daily record that after trigger pip, regulation creates, and will send Log Sender to network analysis equipment.
This step is identical with step S201, repeats no more here.
Step S302, network transmitting apparatus is loaded into script file code all webpages with transmission web data function of network transmitting apparatus, and wherein all webpages with transmission web data function comprise original web page.
This step is identical with step S202, repeats no more here.
Step 303, network transmitting apparatus receives trigger pip, and wherein, trigger pip is instruction is sent to web data target web signal by original web page.
This step is identical with step S102, repeats no more here.
Step 304, network transmitting apparatus is resolved trigger pip, obtains the information of carrying in trigger pip.
In trigger pip, carry the full content that user carries out data transmission, such as whom, when, what content shared to what platform etc.Therefore, can be according to the whole or certain content of this data transmission of Requirement Acquisition by resolving trigger pip.
Step 305, original web page is quoted script file code, meets the transmission daily record of call format taking the information of carrying in trigger pip as content creating.
Due in step S302, network transmitting apparatus has been loaded into script file code all webpages with transmission web data function of network transmitting apparatus, therefore original web page can directly be quoted script file code, meets the transmission daily record of call format taking the information of carrying in trigger pip as content creating.
Step 306, network transmitting apparatus, in sending transmission daily record corresponding to trigger pip, sends to target web by web data by original web page.
This step is identical with step S106, repeats no more here.
In this embodiment, provided network transmitting apparatus and created the concrete implementation step of transmission daily record corresponding to trigger pip: network transmitting apparatus is resolved trigger pip, obtains the information of carrying in trigger pip; And original web page quotes script file code, meet the transmission daily record of call format taking the information of carrying in trigger pip as content creating.Can accurately obtain the relevant information that sends above-mentioned web data by above-mentioned steps, thereby generating content comprehensively sends daily record, avoid information dropout impact to send effective use of daily record.
Fig. 5 is according to the process flow diagram of the 4th embodiment of web data transmission method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 2, and as shown in Figure 5, this web data transmission method comprises:
Step S401, network transmitting apparatus receives the script file code that network analysis equipment sends, and this script file code is used for when the call format that receives the transmission daily record that after trigger pip, regulation creates, and will send Log Sender to network analysis equipment.
This step is identical with step S201, repeats no more here.
Step S402, network transmitting apparatus is loaded into script file code all webpages with transmission web data function of network transmitting apparatus, and wherein all webpages with transmission web data function comprise original web page.
This step is identical with step S202, repeats no more here.
Step 403, network transmitting apparatus receives trigger pip, and wherein, trigger pip is instruction is sent to web data target web signal by original web page.
This step is identical with step S102, repeats no more here.
Step 404, network transmitting apparatus creates transmission daily record corresponding to trigger pip, and wherein, the content that sends daily record comprises the information of carrying in trigger pip.
This step is identical with step S104, repeats no more here.
Step 405, network transmitting apparatus is quoted script file code, by transmission Log Sender corresponding trigger pip to network analysis equipment.
As described in step 201, quote script file code and there is the effect to network analysis equipment by the Log Sender generating, therefore network transmitting apparatus is quoted script file code, can be by transmission Log Sender corresponding trigger pip to network analysis equipment.
Step 406, network transmitting apparatus synchronously sends to target web by web data by original web page according to the information of carrying in trigger pip.
As long as use network sending function at network transmitting apparatus, triggering the function of JS code, generate the transmission daily record conforming with the regulations and send this daily record in long-range network analysis equipment, also network data can be sent to target pages.
In this embodiment, provide network transmitting apparatus in sending daily record, web data is sent to the concrete implementation step of target web by original web page: network transmitting apparatus is quoted script file code, by transmission Log Sender corresponding trigger pip to network analysis equipment; And network transmitting apparatus synchronously sends to target web by web data by original web page according to the information of carrying in trigger pip.In above-mentioned steps, owing to quoting script file code and can synchronously carry out according to the information of carrying in trigger pip, do not interfere with each other, therefore can realize transmission Log Sender corresponding trigger pip to network analysis equipment and web data is sent to two kinds of behaviors of target web by original web page and carry out simultaneously, thereby effectively avoid response speed and the impact of health degree on web data transmission speed of network analysis equipment.
Fig. 6 is according to the process flow diagram of the 5th embodiment of web data transmission method of the present invention.This embodiment can be used as a kind of preferred implementation embodiment illustrated in fig. 1, and as shown in Figure 6, the method comprises the steps:
Step S501, network transmitting apparatus receives trigger pip, and wherein, trigger pip is instruction is sent to web data target web signal by original web page.
This step is identical with step S102, repeats no more here.
Step S502, network transmitting apparatus creates transmission daily record corresponding to trigger pip, and wherein, the content that sends daily record comprises the information of carrying in trigger pip.
This step is identical with step S104, repeats no more here.
Step S503, network transmitting apparatus, in sending transmission daily record corresponding to trigger pip, sends to target web by web data by original web page.
This step is identical with step S106, repeats no more here.
Step S504, network transmitting apparatus is the first database to network analysis equipment by transmission Log Sender corresponding trigger pip, and wherein the first database is for all transmission daily records with the webpage that sends web data function of storage networking transmitting apparatus.
This step is to be stored in the database of network analysis equipment sending daily record, can use according to user's demand.First database has here been stored all transmission daily records with the webpage that sends web data function of network transmitting apparatus.According to user's request, can regularly process the daily record of the first database storage, such as, do not have the daily record of application or reference value to delete, to save databases.
Step S505, network analysis equipment obtains Preset Time interval, and wherein, Preset Time interval is the time interval of the transmission daily record in predefined parsing the first database.
Can carry out real time parsing to sending daily record, but the method can propose higher requirement to the performance of network analysis equipment, if the poor-performing of the deal with data of network analysis equipment, probably causes the collapse of network analysis equipment, affect the carrying out that whole daily record is resolved.If at interval of a period of time to accumulation daily record concentrate process, can improve to a great extent the analyzing efficiency of network analysis equipment, and not affect parsing effect.Such as, each even a few hours resolve, and can draft voluntarily concrete interval time according to user's request.
Step S506, network analysis equipment carries out one parsing at interval of Preset Time interval to the transmission daily record being stored in the first database, obtains analysis result, and wherein, the transmission daily record in the first database comprises the transmission daily record that trigger pip is corresponding.
Network analysis equipment can regularly be resolved the journal file of receiving, therefrom parses the information such as netizen, time, the content being sent out and the target pages sending to of every data transfer.
Step S507, network analysis equipment stores the analysis result of regularly resolving according to the time interval into the second database of network analysis equipment, wherein, the second database is for the analysis result of all transmission daily records with the webpage that sends web data function of storage networking transmitting apparatus.
Store the analysis result of daily record into database, in the time that user has demand, can immediately use.Here, for the data in the second database, also can process according to user's request, such as, regularly remove unwanted data, to reduce internal memory taking etc.
Step S508, network analysis device statistics analysis result.
Analysis result in the second database is added up, can obtain such as concrete network delivery device be sent out the number of times of (sharing) data, the concrete page of network delivery device is sent out the number of times of (sharing) data and is sent to the details such as the concrete number of times of each network receiving equipment.
In this embodiment, provide when network transmitting apparatus is sending transmission daily record corresponding to trigger pip, web data is sent to the specific implementation method that can also adopt after the step of target web by original web page, comprise: network transmitting apparatus is the first database to network analysis equipment by transmission Log Sender corresponding trigger pip; Network analysis equipment obtains Preset Time interval; Network analysis equipment carries out one parsing at interval of Preset Time interval to the transmission daily record being stored in the first database, obtains analysis result; Network analysis equipment stores the analysis result of regularly resolving according to the time interval into the second database of network analysis equipment, wherein, the second database is for the analysis result of all transmission daily records with the webpage that sends web data function of storage networking transmitting apparatus; And network analysis device statistics analysis result.By above-mentioned steps, the concrete daily record of web data transmission can be preserved, regularly daily record gathered, resolved and adds up by network analysis equipment, thereby can meet the statistical demand of different user.
Fig. 7 is according to the process flow diagram of the preferred embodiment of web data transmission method of the present invention, as shown in Figure 7, wherein, client web site is equal to network transmitting apparatus, and monitoring code is equal to script file code, and sharing function is equal to web data sending function, sharing platform is equal to network receiving equipment, share daily record and be equal to transmission daily record, sending function provides website to be equal to network analysis equipment, shares number of times and is equal to web data transmission times.
Client web site in this embodiment has been realized when web data is sent to sharing platform, will share Log Sender to sharing function website is provided, be a kind of preferred implementation of Fig. 6 embodiment.
Fig. 8 is according to the structured flowchart of the first embodiment of web data transmitting device of the present invention.As shown in Figure 8, this apparatus structure comprises:
The first receiving element 22, for receiving trigger pip, wherein, trigger pip is instruction is sent to web data target web signal by original web page
The trigger pip that this unit receives can be the click behavior of user to particular webpage data in network transmitting apparatus, and receiving this click behavior is that this web data is sent to target web by indication network transmitting apparatus.Transmission described here can be that web data is shared to target web from original web page, can be also web data to be copied or clipped to target web.
Creating unit 24, for creating transmission daily record corresponding to trigger pip, wherein, the content that sends daily record comprises the information of carrying in trigger pip
Daily record is the file with .log ending of various raw informations while recording the request of web server reception & disposal and operation.The meaning of daily record maximum is to record operation situation, the record of accessed request etc. in space in the operation of website.By daily record can clearly learn user at what IP, when, which page of having accessed targeted website with what operating system, what browser, what resolution display in the situation that, whether access successfully etc.
Creating unit 22 can be obtained netizen's once complete data transmission behavior by creating described transmission daily record, comprise and share behavior, can by send daily record know who when by what content delivery (sharing) to what platform.
Transmitting element 26, in sending transmission daily record corresponding to trigger pip, sends to target web by web data by original web page
This unit can be carried out two described actions simultaneously, aspect ensureing two, is not having under affected prerequisite, has improved on the whole the efficiency of network transmitting apparatus transmission data.
The web data transmitting device that the present embodiment provides comprises: the first receiving element 22, creating unit 24 and transmitting element 26.By this device can be by web data the process of transmitting from original web page to target web and transmission Log Sender that original web page the is generated process of going out independently carry out, thereby make web data can directly be transferred to target web, and be no longer dependent on response speed and the health degree of other equipment, reach and improved the effect that user shares speed, improves user experience.
Fig. 9 is according to the structured flowchart of the second embodiment of web data transmitting device of the present invention.As shown in Figure 9, this apparatus structure comprises:
The second receiving element 20, loading unit 21, the first receiving element 22, creating unit 24 and transmitting element 26.Wherein, the first receiving element 22, creating unit 24, transmitting element 26 are identical with Fig. 8, repeat no more here.Wherein the second receiving element 20 and loading unit 21 are specially:
The second receiving element 20, the script file code sending for receiving network analysis equipment, script file code is used for when the call format that receives the transmission daily record that after trigger pip, regulation creates, and will send Log Sender to network analysis equipment.
The script file code that this unit receives can be JS code.JS code is the code of the script file write of JavaScript, preserves expansion .JS by name by individual files.Fundamental purpose is the speed issue of leaving over for settlement server terminal language, and the basic function of data verification is provided.Relation a kind of real-time, dynamic, interactivity that the appearance of JavaScript makes to have realized between webpage and user.Utilize JS code can realize two functions: the first, when netizen is in the time that client web site carries out data transmission (sharing), can generate transmission (sharing) daily record conforming with the regulations.The second, by generate Log Sender to network analysis equipment.So journal format at least comprises netizen's information, temporal information, is sent out the information of content information and target device.
The configuration of network analysis equipment is used for receiving and recording the server of the transmission daily record of network transmitting apparatus specially, and regulation sends the form of daily record, here send the information that daily record at least comprises netizen's information, temporal information, is sent out content information and target device.
Loading unit 21, for script file code being loaded into all webpages with transmission web data function of network transmitting apparatus, wherein all webpages with transmission web data function comprise original web page.
Network transmitting apparatus, in the time of usage data transfer function, is first quoted the JS code providing, and by loading unit 21, this code is all quoted at the page of all demonstration data sending functions.Like this, network transmitting apparatus only need be accepted JS code once, when other pages with data sending function are subject to triggering afterwards, can introduce immediately, has improved work efficiency.
The present embodiment has provided the part that web data transmitting device can also comprise described in Fig. 8: the second receiving element 20 and loading unit 21.The web data dispensing device that has added said two units can add script file code by all pages with transmission web data function in this device, any one has the page that sends web data function and is triggered so only to need to load once this device, can carry out immediately this code, improve the efficiency that web data sends.
Figure 10 is according to the structured flowchart of the 3rd embodiment of web data transmitting device of the present invention.As shown in figure 10, this apparatus structure comprises:
The second receiving element 20, loading unit 21, the first receiving element 22, creating unit 24 and transmitting element 26.Wherein, the second receiving element 20, loading unit 21, the first receiving element 22 are identical with Fig. 9 with transmitting element 26, repeat no more here.Creating unit 24 can also comprise:
Parsing module 32, for resolving trigger pip, obtain the information of carrying in trigger pip.
In trigger pip, carry the full content that user carries out data transmission, such as whom, when, what content shared to what platform etc.Therefore, resolving trigger pip by parsing module 32 can be according to the whole or certain content of this data transmission of Requirement Acquisition.
Quote module 34, for quoting script file code, meet the transmission daily record of call format taking the information of carrying in trigger pip as content creating.
Allly there are the webpages that send web data function due to what script file code had been loaded into network transmitting apparatus by loading unit 21, therefore quote module 34 and can directly quote script file code, meet the transmission daily record of call format taking the information of carrying in trigger pip as content creating.
The present embodiment has provided the module composition that creating unit 24 can also comprise: parsing module 32 and quote module 34.Can make this web data dispensing device accurately obtain the relevant information that sends web data by above-mentioned module, thereby generating content comprehensively sends daily record, avoid information dropout to cause transmission daily record effectively not use.
Figure 11 is according to the structured flowchart of the 4th embodiment of web data transmitting device of the present invention.As shown in figure 11, this apparatus structure comprises:
The second receiving element 20, loading unit 21, the first receiving element 22, creating unit 24 and transmitting element 26.Wherein, the second receiving element 20, loading unit 21, the first receiving element 22 are identical with Fig. 9 with creating unit 24, repeat no more here.Transmitting element 26 can also comprise:
The first sending module 42, for quoting script file code, by transmission Log Sender corresponding trigger pip to network analysis equipment.
As quoting described in module 34, quote script file code and there is the effect to network analysis equipment by the Log Sender generating, therefore the first sending module 42 is quoted script file code, can be by transmission Log Sender corresponding trigger pip to network analysis equipment.
The second sending module 44, synchronously sends to target web by web data by original web page for the information of carrying according to trigger pip.
As long as use network sending function at network transmitting apparatus, the first sending module 42 triggers scripted code function, when sending the logs to long-range network analysis equipment, and the second sending module 44 can send to target pages by network data.
The present embodiment has provided the module composition that transmitting element 26 can also comprise: the first sending module 42 and the second sending module 44.Owing to quoting script file code in the first sending module 42 and the second sending module 44 is gone out transmission Log Sender according to the information of carrying in trigger pip, described two processes can synchronously carry out, not interfere with each other, therefore this device has effectively been avoided response speed and the impact of health degree on web data transmission speed of network analysis equipment, improve data transmission speed, promoted user's experience.
Figure 12 is according to the system composition diagram of the first embodiment of web data transmission system of the present invention.This system comprises:
Network transmitting apparatus 01, for receiving trigger pip, wherein, trigger pip is instruction is sent to web data target web signal by original web page; Create transmission daily record corresponding to trigger pip, wherein, the content that sends daily record comprises the information of carrying in trigger pip; And corresponding transmission daily record web data corresponding to synchronized transmission trigger pip of transmission trigger pip.
This equipment can be gone out web data and transmission Log Sender corresponding to trigger pip simultaneously, no longer after first transmission daily record of existence, sends the sequencing of web data.
Network receiving equipment 02, web data corresponding to trigger pip sending for receiving network transmitting apparatus.
This device just has the function that receives web data, does not specifically limit hardware kind.
The web data transmission system that this embodiment provides, owing to comprising network transmitting apparatus, network receiving equipment, has realized network transmitting apparatus and can, in sending web data to network receiving equipment, outwards send daily record.This system has effectively avoided between data send and receive system, cannot directly realizing in legacy system the low drawback of transfer efficiency that data transmission causes, thereby has improved data rate.
Figure 13 is according to the system composition diagram of the second embodiment of web data transmission system of the present invention.This system, except comprising network transmitting apparatus 01, network receiving equipment 02, can also comprise:
Network analysis equipment 03, also will send log store in the first database for transmission daily record corresponding to trigger pip that receives the transmission of network transmitting apparatus, wherein the first database is for all transmission daily records with the webpages that send web data function of storage networking transmitting apparatus; Obtain Preset Time interval, wherein, Preset Time interval is the time interval of the transmission daily record in predefined parsing the first database; At interval of Preset Time interval, the transmission daily record being stored in the first database is carried out to one parsing, obtain analysis result, wherein, the transmission daily record in the first database comprises the transmission daily record that trigger pip is corresponding; The analysis result of regularly resolving according to the time interval stores the second database of network analysis equipment into, and wherein, the second database is for the analysis result of all transmission daily records with the webpages that send web data function of storage networking transmitting apparatus; And statistics analysis result.
This equipment can receive transmission daily record, and regularly resolves sending daily record, and analysis result is added up.
The web data transmission system that this embodiment provides, owing to comprising network transmitting apparatus, network receiving equipment and network analysis equipment, realized network transmitting apparatus can be simultaneously respectively with network receiving equipment, network analysis equipment carries out communication, having avoided in conventional art network transmitting apparatus and network receiving equipment to carry out data transmission needs first carry out data transmission to network analysis equipment, could carry out data transmission efficiency that data transmission causes and be subject to network receiving equipment subsequently the drawback of network analysis equipment impact, thereby improve data rate, improve to a great extent user's experience.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.