CN105554094A - Method and device for data interaction - Google Patents

Method and device for data interaction Download PDF

Info

Publication number
CN105554094A
CN105554094A CN201510921212.8A CN201510921212A CN105554094A CN 105554094 A CN105554094 A CN 105554094A CN 201510921212 A CN201510921212 A CN 201510921212A CN 105554094 A CN105554094 A CN 105554094A
Authority
CN
China
Prior art keywords
data
interface
attribute information
customer attribute
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.)
Granted
Application number
CN201510921212.8A
Other languages
Chinese (zh)
Other versions
CN105554094B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510921212.8A priority Critical patent/CN105554094B/en
Publication of CN105554094A publication Critical patent/CN105554094A/en
Priority to PCT/CN2016/109407 priority patent/WO2017097262A1/en
Application granted granted Critical
Publication of CN105554094B publication Critical patent/CN105554094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for data interaction, which relates to the technical field of information for solving problems of limitations in the case of data interaction between a client and a server and hidden safety dangers in the existing search service. According to the technical scheme of the invention, a data instruction sent by the server is received, wherein the data instruction carries interface identifier information; user attribute information in the current webpage is acquired according to an interface function corresponding to the interface identifier information; and the user attribute information is sent to the server. The method and the device of the invention are mainly used for transferring data at the client to the server.

Description

Data interactive method and device
Technical field
The present invention relates to areas of information technology, particularly relate to a kind of data interactive method and device.
Background technology
Along with the fast development of information technology, browser as the maximum entrance of search service, for search service brings the occupancy of more than 70 percent.But, along with continuous refinement and the development of search service, the data that browser provides are also no longer single, in order to ensure that browser interface can provide the search service of customization according to different user situations, the source distinguishing data is needed when obtaining browser clients end data, as distinguished the data etc. of different channel user, diverse location user, separate sources user, then the data that these distinguish source are effectively added up, to provide the search service of customization for user.
At present, client is that the mode by adding necessary parameter in browser address calls client data for server end, or the data supplementing of needs is called client data for server end in cookie.But, by adding parameter in the address or being subject to limitation larger for the mode of specific URL additional parameter in cookie, there is the constraint that URL judges, if add parameter to specific URL, so other URL also think that additional parameter needs constantly to satisfy the demands by increasing response URL, if and the limited range of URL is expanded, some URL does not need again parameter, thus control and expansion on all more limited.In addition, no matter use the mode adding in address and add in parameter or cookie, all easily expose the data of client, there is potential safety hazard.
Summary of the invention
In view of this, the invention provides a kind of data interactive method and device, the limitation between the client and server that main purpose is to solve search service in prior art during data interaction and security hidden trouble.
According to one aspect of the invention, provide a kind of data interactive method, the method comprises:
The data command that reception server sends, carries interface identifier information in described data command;
The customer attribute information in current page is obtained according to the interface function corresponding with described interface identifier information;
Described customer attribute information is sent to described server.
According to another aspect of the present invention, provide a kind of data interaction device, this device comprises:
Receiving element, for the data command that reception server sends, carries interface identifier information in described data command;
Acquiring unit, for obtaining the customer attribute information in current page according to the interface function corresponding with described interface identifier information;
Transmitting element, for sending to described server by described customer attribute information.
By technique scheme, the technical scheme that the embodiment of the present invention provides at least has following advantages:
A kind of data interactive method that the embodiment of the present invention provides and device, first the data command of reception server transmission, interface identifier information is carried in described data command, then obtain the customer attribute information in current page according to the interface function corresponding with described interface identifier information, finally described customer attribute information is sent to described server.Client data is called for server end with the current mode by adding necessary parameter in browser address, or the data supplementing of needs is called client data for server end in cookie to be compared, the embodiment of the present invention provides interface by client, server end for browser calls, when the server end of browser needs the data of client, the interface that can provide by calling client obtains the data of client, thus the problem such as the limitation solved in prior art between client and server during data interaction and potential safety hazard.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of data interactive method flow chart that the embodiment of the present invention provides;
Fig. 2 shows the another kind of data interactive method flow chart that the embodiment of the present invention provides;
Fig. 3 shows a kind of data interaction device structured flowchart that the embodiment of the present invention provides;
Fig. 4 shows the another kind of data interaction device structured flowchart that the embodiment of the present invention provides.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiments provide a kind of data interactive method, be applied to the client of search service, as shown in Figure 1, described method comprises:
101, the data command of reception server transmission.
Wherein, carry interface identifier information in described data command, described interface identifier information is for representing the client-side interface that server will call.In embodiments of the present invention, what described interface identifier information represented is the interface obtaining client data.Wherein, obtain client data specifically to realize obtaining client data by console.log function fashion, server is when needs requesting client data, first send data command to client, then call console.log function according to the interface identifier information in data command and realize obtaining client data.
For the embodiment of the present invention, except carrying interface identifier information in described data command, also carry the data type of request, receive the information such as the method for data, the embodiment of the present invention is not specifically limited.Wherein, interface identifier information can be specifically defined as " LISTENER_PROVIDE_DATA ", be represented by interface identifier information " LISTENER_PROVIDE_DATA " and call acquisition client data interface; The data type of described request can be represented by MSG_TYPE, and the data method of described reception can be defined as CALLBACK method, and CALLBACK is the method that server receives data, for the data of client being adjusted back.
Such as: data command is specifically as follows console.log (LISTENER_PROVIDE_DATA+MSG_TYPE+CALLBACK), wherein, LISTENER_PROVIDE_DATA is interface identifier information, + MSG_TYPE is the data type of request, and CALLBACK is the method that server receives data.
It should be noted that, when calling client data by the embodiment of the present invention, relate to safety problem and can not expose physical interface content.In addition, the data type of MSG_TYPE identification request can be the data type of acquiescence, and can also be also the data type of specifying, the embodiment of the present invention be not specifically limited.Wherein, the data type of acquiescence is common data, and the data type of specifying can be selected according to the difference of browser version, or needs to select according to special browsing pages, and the embodiment of the present invention is not specifically limited.
102, the customer attribute information in current page is obtained according to the interface function corresponding with described interface identifier information.
Wherein, the attribute information of described user is the information of browser clients end subscriber, and the attribute information of user is specifically as follows unique identification information, and the information such as channel information, positional information and phone number, the embodiment of the present invention is not specifically limited.For the embodiment of the present invention, after the data command receiving server transmission, the interface function corresponding according to the interface identifier information in data command obtains the customer attribute information of client, then adjusts back customer attribute information to server.It should be noted that, when the data type called in servers' data instruction is for acquiescence, the information calling client is specially unique identification information and channel information.
103, described customer attribute information is sent to described server.
For the embodiment of the present invention, the data-interface that client externally provides server demands to use, when server needs the data of client, when call the data-interface that client provides, then the function that the data-interface provided according to client is corresponding obtains the data of client, therefore the data-interface mode provided by client meets the demand that server transfers client data, and by this kind of mode can be flexible meet server taking client data.Thus server can be added up the user data obtained, then according to statistics for client provides the search server of customization.
A kind of data interactive method that the embodiment of the present invention provides, first the data command of reception server transmission, interface identifier information is carried in described data command, then obtain the customer attribute information in current page according to the interface function corresponding with described interface identifier information, finally described customer attribute information is sent to described server.Client data is called for server end with the current mode by adding necessary parameter in browser address, or the data supplementing of needs is called client data for server end in cookie to be compared, the embodiment of the present invention provides interface by client, server end for browser calls, when the server end of browser needs the data of client, the interface that can provide by calling client obtains the data of client, thus the problem such as the limitation solved in prior art between client and server during data interaction and potential safety hazard.
Embodiments provide another kind of data interactive method, be applied to the client of search service, as shown in Figure 2, described method comprises:
201, the data command of reception server transmission.
Wherein, carry interface identifier information in described data command, described interface identifier information is for representing the client-side interface that server will call.In embodiments of the present invention, what described interface identifier information represented is the interface obtaining client data.Wherein, obtain client data specifically to realize obtaining client data by console.log function fashion, server is when needs requesting client data, first send data command to client, then call console.log function according to the interface identifier information in data command and realize obtaining client data.For the embodiment of the present invention, interface identifier information can be specifically defined as " LISTENER_PROVIDE_DATA ", be represented by interface identifier information " LISTENER_PROVIDE_DATA " and call acquisition client data interface.
202, judge that whether described interface identifier information is for calling client data interface.
For the embodiment of the present invention, browser client is by WebChromeClient method, rewrite self-defining onConsoleMessage method, and in onConsoleMessage method, judge whether the interface identifier information that server end sends is LISTENER_PROVIDE_DATA, if then illustrate that the data command that server end sends is the order transferring client data, can obtain the customer attribute information of browser client in subsequent step.Wherein, onConsoleMessage method is used for the content of data command that monitoring service device sends, and to make process operation accordingly to make client according to the content listened to.
If 203 described interface identifier information are for calling client data interface, then judge that whether described current page is for supporting to provide the page of data.
If 204 described current pages are for supporting the page providing data, then obtain the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
Wherein, the attribute information of described user is the information of browser clients end subscriber, and the attribute information of user is specifically as follows unique identification information, and the information such as channel information, positional information and phone number, the embodiment of the present invention is not specifically limited.For the embodiment of the present invention, after the data command receiving server transmission, the interface function corresponding according to the interface identifier information in data command obtains the customer attribute information of client, then adjusts back customer attribute information to server.It should be noted that, when the data type called in servers' data instruction is for acquiescence, the information calling client is specially unique identification information and channel information.
For the embodiment of the present invention, also carry the data type of request in described data command and receive the method for data, the customer attribute information that the described basis interface function corresponding with described calling interface identification information obtains in current page comprises: resolve described data command, with the method for the data type and described reception data that obtain described request; According to the interface function corresponding with described calling interface identification information, obtain customer attribute information corresponding with the data type of described request in current page.Wherein, the data type of described request can be represented by MSG_TYPE, and the data method of described reception can be defined as CALLBACK method, and CALLBACK is the method that server receives data, for the data of client being adjusted back.Such as, the data type parsed from data command is channel information and positional information, then from client, obtain channel information and the positional information of user, then the information got is sent to server.
It should be noted that, when calling client data by the embodiment of the present invention, relate to safety problem and can not expose physical interface content.In addition, the data type of MSG_TYPE identification request can be the data type of acquiescence, and can also be also the data type of specifying, the embodiment of the present invention be not specifically limited.Wherein, the data type of acquiescence is common data, and the data type of specifying can be selected according to the difference of browser version, or needs to select according to special browsing pages, and the embodiment of the present invention is not specifically limited.
205, according to the data type of described request, described customer attribute information is encapsulated.
For the embodiment of the present invention, getDataForProvide (type) method can be passed through the data type of asking is encapsulated, so that the data of encapsulation are sent to described server in subsequent step.
206, according to the method for described data receiver, the customer attribute information of described encapsulation is sent to described server.
Wherein, the method for data receiver is server end definition, is being transferred to the method including these reception data in the middle of the data command of client.Client parses the method for these reception data from described data command, and by the method for these reception data, the customer attribute information of encapsulation is sent to described server.In embodiments of the present invention, the method of data receiver can be defined as callback method, if the data receive method that client parses is callback method, then, when the attribute information of user is sent to server by client, sent by callback method.Therefore the data-interface mode provided by client meets the demand that server transfers client data, and by this kind of mode can be flexible meet server taking client data.Thus server can be added up, for client provides the search server of customization according to the user data obtained.
In embodiments of the present invention, first the data command of reception server transmission, interface identifier information is carried in described data command, then judge that whether described interface identifier information is for calling client data interface, if described interface identifier information is for calling client data interface, then continue to judge that whether described current page is for supporting to provide the page of data, if described current page is for supporting the page providing data, then obtain the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.Again according to the data type of described request, described customer attribute information is encapsulated, finally according to the method for described data receiver, the customer attribute information of described encapsulation is sent to described server.Thus the problem such as the limitation solved in prior art between client and server during data interaction and potential safety hazard.
The another kind of data interactive method that the embodiment of the present invention provides, first the data command of reception server transmission, interface identifier information is carried in described data command, then obtain the customer attribute information in current page according to the interface function corresponding with described interface identifier information, finally described customer attribute information is sent to described server.Client data is called for server end with the current mode by adding necessary parameter in browser address, or the data supplementing of needs is called client data for server end in cookie to be compared, the embodiment of the present invention provides interface by client, server end for browser calls, when the server end of browser needs the data of client, the interface that can provide by calling client obtains the data of client, thus the problem such as the limitation solved in prior art between client and server during data interaction and potential safety hazard.
Further, a kind of data interaction device that the embodiment of the present invention provides, as shown in Figure 3, described device comprises: receiving element 31, acquiring unit 32, transmitting element 33.
Receiving element 31, for the data command that reception server sends, carries interface identifier information in described data command.
Acquiring unit 32, for obtaining the customer attribute information in current page according to the interface function corresponding with described interface identifier information.
Transmitting element 33, for sending to described server by described customer attribute information.
It should be noted that, other corresponding descriptions of each functional unit involved by a kind of data interaction device that the embodiment of the present invention provides, the correspondence of method shown in reference diagram 1 can describe, do not repeat them here.
A kind of data interaction device that the embodiment of the present invention provides, first the data command of reception server transmission, interface identifier information is carried in described data command, then obtain the customer attribute information in current page according to the interface function corresponding with described interface identifier information, finally described customer attribute information is sent to described server.Client data is called for server end with the current mode by adding necessary parameter in browser address, or the data supplementing of needs is called client data for server end in cookie to be compared, the embodiment of the present invention provides interface by client, server end for browser calls, when the server end of browser needs the data of client, the interface that can provide by calling client obtains the data of client, thus the problem such as the limitation solved in prior art between client and server during data interaction and potential safety hazard.
Further, the another kind of data interaction device that the embodiment of the present invention provides, as shown in Figure 3, described device comprises: receiving element 41, acquiring unit 42, transmitting element 43.
Receiving element 41, for the data command that reception server sends, carries interface identifier information in described data command.
Acquiring unit 42, for obtaining the customer attribute information in current page according to the interface function corresponding with described interface identifier information.
Transmitting element 43, for sending to described server by described customer attribute information.
Further, described device also comprises: judging unit 44;
Described judging unit 44, for judging that whether described interface identifier information is for calling client data interface.
Described acquiring unit 42, if specifically for described interface identifier information for calling client data interface, then obtains the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
Described judging unit 44, if also for described interface identifier information for calling client data interface, then judge described current page whether for supporting to provide the page of data.
Described acquiring unit 42, if specifically for described current page for supporting the page providing data, then obtains the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
Further, also carry the data type of request in described data command and receive the method for data, described acquiring unit 42 comprises:
Parsing module 421, for resolving described data command, with the method for the data type and described reception data that obtain described request.
Acquisition module 422, for according to the interface function corresponding with described calling interface identification information, obtains customer attribute information corresponding with the data type of described request in current page.
Further, described device also comprises:
Encapsulation unit 45, for the data type according to described request, encapsulates described customer attribute information.
Described transmitting element 43, specifically for the method according to described data receiver, sends to described server by the customer attribute information of described encapsulation.
It should be noted that, other corresponding descriptions of each functional unit involved by the another kind of data interaction device that the embodiment of the present invention provides, the correspondence of method shown in reference diagram 2 can describe, do not repeat them here.
The another kind of data interaction device that the embodiment of the present invention provides, first the data command of reception server transmission, interface identifier information is carried in described data command, then obtain the customer attribute information in current page according to the interface function corresponding with described interface identifier information, finally described customer attribute information is sent to described server.Client data is called for server end with the current mode by adding necessary parameter in browser address, or the data supplementing of needs is called client data for server end in cookie to be compared, the embodiment of the present invention provides interface by client, server end for browser calls, when the server end of browser needs the data of client, the interface that can provide by calling client obtains the data of client, thus the problem such as the limitation solved in prior art between client and server during data interaction and potential safety hazard.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Be understandable that, the correlated characteristic in said method and device can reference mutually.In addition, " first ", " second " in above-described embodiment etc. are for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the data interactive method of the embodiment of the present invention and device.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses A1, a kind of data interactive method, comprising:
The data command that reception server sends, carries interface identifier information in described data command;
The customer attribute information in current page is obtained according to the interface function corresponding with described interface identifier information;
Described customer attribute information is sent to described server.
A2, method as described in A1, before obtaining the customer attribute information in current page according to the interface function corresponding with described interface identifier information, described method also comprises:
Judge that whether described interface identifier information is for calling client data interface;
The customer attribute information that the described basis interface function corresponding with described interface identifier information obtains in current page comprises:
If so, the customer attribute information in current page is then obtained according to the interface function corresponding with described calling interface identification information.
A3, method as described in A2, describedly judge described interface identifier information whether for after calling client data interface, and described method also comprises:
If described interface identifier information is for calling client data interface, then judge that whether described current page is for supporting to provide the page of data;
The customer attribute information that the described basis interface function corresponding with described calling interface identification information obtains in current page comprises:
If described current page is for supporting the page providing data, then obtain the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
A4, method as described in A3, also carry the data type of request and receive the method for data in described data command, the customer attribute information that the described basis interface function corresponding with described calling interface identification information obtains in current page comprises:
Described data command is resolved, with the method for the data type and described reception data that obtain described request;
According to the interface function corresponding with described calling interface identification information, obtain customer attribute information corresponding with the data type of described request in current page.
A5, method as described in A4, before described customer attribute information is sent to described server, described method also comprises:
According to the data type of described request, described customer attribute information is encapsulated.
A6, method as described in A5, send to described server to comprise described customer attribute information:
According to the method for described data receiver, the customer attribute information of described encapsulation is sent to described server.
The invention discloses B7, a kind of data interaction device, comprising:
Receiving element, for the data command that reception server sends, carries interface identifier information in described data command;
Acquiring unit, for obtaining the customer attribute information in current page according to the interface function corresponding with described interface identifier information;
Transmitting element, for sending to described server by described customer attribute information.
B8, device as described in B7, described device also comprises: judging unit;
Described judging unit, for judging that whether described interface identifier information is for calling client data interface;
Described acquiring unit, if specifically for described interface identifier information for calling client data interface, then obtains the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
B9, device as described in B8,
Described judging unit, if also for described interface identifier information for calling client data interface, then judge described current page whether for supporting to provide the page of data;
Described acquiring unit, if specifically for described current page for supporting the page providing data, then obtains the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
B10, device as described in B9, also carry the data type of request in described data command and receive the method for data, described acquiring unit comprises:
Parsing module, for resolving described data command, with the method for the data type and described reception data that obtain described request;
Acquisition module, for according to the interface function corresponding with described calling interface identification information, obtains customer attribute information corresponding with the data type of described request in current page.
B11, device as described in B10, described device also comprises:
Encapsulation unit, for the data type according to described request, encapsulates described customer attribute information.
B12, device as described in B11,
Described transmitting element, specifically for the method according to described data receiver, sends to described server by the customer attribute information of described encapsulation.

Claims (10)

1. a data interactive method, is characterized in that, comprising:
The data command that reception server sends, carries interface identifier information in described data command;
The customer attribute information in current page is obtained according to the interface function corresponding with described interface identifier information;
Described customer attribute information is sent to described server.
2. method according to claim 1, is characterized in that, before obtaining the customer attribute information in current page according to the interface function corresponding with described interface identifier information, described method also comprises:
Judge that whether described interface identifier information is for calling client data interface;
The customer attribute information that the described basis interface function corresponding with described interface identifier information obtains in current page comprises:
If so, the customer attribute information in current page is then obtained according to the interface function corresponding with described calling interface identification information.
3. method according to claim 2, is characterized in that, describedly judges described interface identifier information whether for after calling client data interface, and described method also comprises:
If described interface identifier information is for calling client data interface, then judge that whether described current page is for supporting to provide the page of data;
The customer attribute information that the described basis interface function corresponding with described calling interface identification information obtains in current page comprises:
If described current page is for supporting the page providing data, then obtain the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
4. method according to claim 3, it is characterized in that, also carry the data type of request in described data command and receive the method for data, the customer attribute information that the described basis interface function corresponding with described calling interface identification information obtains in current page comprises:
Described data command is resolved, with the method for the data type and described reception data that obtain described request;
According to the interface function corresponding with described calling interface identification information, obtain customer attribute information corresponding with the data type of described request in current page.
5. method according to claim 4, is characterized in that, before described customer attribute information is sent to described server, described method also comprises:
According to the data type of described request, described customer attribute information is encapsulated.
6. a data interaction device, is characterized in that, comprising:
Receiving element, for the data command that reception server sends, carries interface identifier information in described data command;
Acquiring unit, for obtaining the customer attribute information in current page according to the interface function corresponding with described interface identifier information;
Transmitting element, for sending to described server by described customer attribute information.
7. device according to claim 6, is characterized in that, described device also comprises: judging unit;
Described judging unit, for judging that whether described interface identifier information is for calling client data interface;
Described acquiring unit, if specifically for described interface identifier information for calling client data interface, then obtains the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
8. device according to claim 7, is characterized in that,
Described judging unit, if also for described interface identifier information for calling client data interface, then judge described current page whether for supporting to provide the page of data;
Described acquiring unit, if specifically for described current page for supporting the page providing data, then obtains the customer attribute information in current page according to the interface function corresponding with described calling interface identification information.
9. device according to claim 8, is characterized in that, also carry the data type of request in described data command and receive the method for data, described acquiring unit comprises:
Parsing module, for resolving described data command, with the method for the data type and described reception data that obtain described request;
Acquisition module, for according to the interface function corresponding with described calling interface identification information, obtains customer attribute information corresponding with the data type of described request in current page.
10. device according to claim 9, is characterized in that, described device also comprises:
Encapsulation unit, for the data type according to described request, encapsulates described customer attribute information.
CN201510921212.8A 2015-12-11 2015-12-11 Data interactive method and device Active CN105554094B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510921212.8A CN105554094B (en) 2015-12-11 2015-12-11 Data interactive method and device
PCT/CN2016/109407 WO2017097262A1 (en) 2015-12-11 2016-12-12 Data exchange method and apparatus, computer program, and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510921212.8A CN105554094B (en) 2015-12-11 2015-12-11 Data interactive method and device

Publications (2)

Publication Number Publication Date
CN105554094A true CN105554094A (en) 2016-05-04
CN105554094B CN105554094B (en) 2019-03-08

Family

ID=55833026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510921212.8A Active CN105554094B (en) 2015-12-11 2015-12-11 Data interactive method and device

Country Status (2)

Country Link
CN (1) CN105554094B (en)
WO (1) WO2017097262A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017097262A1 (en) * 2015-12-11 2017-06-15 北京奇虎科技有限公司 Data exchange method and apparatus, computer program, and computer-readable medium
CN107423072A (en) * 2017-08-11 2017-12-01 郑州云海信息技术有限公司 The method and apparatus of web page dynamic column filter and search list data
CN108536492A (en) * 2018-04-08 2018-09-14 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room attribute information acquiring method, device, equipment and storage medium
CN109213606A (en) * 2017-06-29 2019-01-15 北京京东尚科信息技术有限公司 A kind of method and apparatus of data interaction
CN111090879A (en) * 2019-12-05 2020-05-01 达闼科技成都有限公司 Data processing method, device, readable storage medium, electronic equipment and system
CN112511526A (en) * 2020-11-25 2021-03-16 深圳致星科技有限公司 Data transmission method, device and readable storage medium
CN113127337A (en) * 2020-12-30 2021-07-16 中国农业银行股份有限公司 Debugging method and device for individually starting mobile terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181442B (en) * 2019-06-17 2023-05-16 腾讯科技(深圳)有限公司 Unloading page display method, device, terminal, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069915A1 (en) * 2001-10-09 2003-04-10 James Clough Method for authenticating mobile printer users
US20070094401A1 (en) * 2005-10-21 2007-04-26 Francois Gagne Support for WISPr attributes in a TAL/CAR PWLAN environment
CN101018141A (en) * 2007-03-02 2007-08-15 李沫南 The method and system for providing the instant communication for the electronic bulletin board
CN103905502A (en) * 2012-12-27 2014-07-02 中国移动通信集团江苏有限公司 User position information obtaining method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736910B (en) * 2011-05-11 2017-07-28 新奥特(北京)视频技术有限公司 A kind of general command interface based on plug-in unit defines method
CN102801737B (en) * 2012-08-28 2016-04-27 北京城市网邻信息技术有限公司 A kind of asynchronous network communication means and device
CN103077032B (en) * 2013-01-06 2019-08-27 北京百度网讯科技有限公司 The operating method of application program and the client of application program
CN103957211B (en) * 2014-04-30 2017-06-30 北界创想(北京)软件有限公司 Data communications method and device between client and front end page
CN105554094B (en) * 2015-12-11 2019-03-08 北京奇虎科技有限公司 Data interactive method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069915A1 (en) * 2001-10-09 2003-04-10 James Clough Method for authenticating mobile printer users
US20070094401A1 (en) * 2005-10-21 2007-04-26 Francois Gagne Support for WISPr attributes in a TAL/CAR PWLAN environment
CN101018141A (en) * 2007-03-02 2007-08-15 李沫南 The method and system for providing the instant communication for the electronic bulletin board
CN103905502A (en) * 2012-12-27 2014-07-02 中国移动通信集团江苏有限公司 User position information obtaining method and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017097262A1 (en) * 2015-12-11 2017-06-15 北京奇虎科技有限公司 Data exchange method and apparatus, computer program, and computer-readable medium
CN109213606A (en) * 2017-06-29 2019-01-15 北京京东尚科信息技术有限公司 A kind of method and apparatus of data interaction
CN107423072A (en) * 2017-08-11 2017-12-01 郑州云海信息技术有限公司 The method and apparatus of web page dynamic column filter and search list data
CN107423072B (en) * 2017-08-11 2020-10-30 苏州浪潮智能科技有限公司 Method and device for screening dynamic columns of web page and searching table data
CN108536492A (en) * 2018-04-08 2018-09-14 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room attribute information acquiring method, device, equipment and storage medium
CN111090879A (en) * 2019-12-05 2020-05-01 达闼科技成都有限公司 Data processing method, device, readable storage medium, electronic equipment and system
CN111090879B (en) * 2019-12-05 2023-07-21 达闼机器人股份有限公司 Data processing method, device, readable storage medium, electronic equipment and system
CN112511526A (en) * 2020-11-25 2021-03-16 深圳致星科技有限公司 Data transmission method, device and readable storage medium
CN113127337A (en) * 2020-12-30 2021-07-16 中国农业银行股份有限公司 Debugging method and device for individually starting mobile terminal

Also Published As

Publication number Publication date
CN105554094B (en) 2019-03-08
WO2017097262A1 (en) 2017-06-15

Similar Documents

Publication Publication Date Title
CN105554094A (en) Method and device for data interaction
CN103888619B (en) A kind of message treatment method and system thereof
CN104468629A (en) Method and device for transmitting information in batches
CN105472035A (en) File transmission method and device
CN105337787A (en) Multi-server monitoring method, device and system
CN105530127A (en) Method for processing network access request by proxy server and proxy server
CN105100250A (en) Message distribution method, message distribution server and message distribution system
CN104486291A (en) Method, device and system for building connection
CN103747010A (en) Method, system and device for controlling PC (personal computer) by mobile terminal
WO2018053594A1 (en) Emoji images in text messages
CN103258056B (en) Process the method for style design table, server, client and system
CN105260444A (en) Adaptive data display method, terminal device and server
CN105095388A (en) Method and device for recommending App to mobile terminal during search
CN105719162A (en) Method and device of monitoring validity of promotion links
CN104301311A (en) Method and device for filtering network data content through DNS
CN105227673A (en) The data download method of anti-abduction, client, server and system
CN105630927A (en) Link generation method and apparatus
CN104580267A (en) A resource downloading method, device, server and corresponding system
CN105516333A (en) Interactive method and system based on webpage
RU2665240C2 (en) Method and device for page insertion
CN102769625A (en) Client-side Cookie information acquisition method and device
CN103942277A (en) Method and device for downloading file in browsers and browsers
CN105260200A (en) Processing method and device for upgrading operating system
US9866614B2 (en) Methods for website version control using bucket cookies
CN103051722B (en) A kind ofly determine the method whether page is held as a hostage and relevant device

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
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right