Data requesting method and client

A technology for requesting data and clients, applied in the field of communication, can solve the problems of security problems, inability to obtain data, and inability to count data traffic, so as to solve security problems and traffic problems, and reduce limitations.

Active Publication Date: 2013-03-06
XIAOMI INC
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since the internal webpage components communicate with the server based on methods such as Ajax or JavaScript, the data obtained from the server is only the webpage data of its own domain, resulting in certain limitations in the scope of its access to webpages, which are called cross-domain restrictions; in addition , because the internal web component communicates directly with the server, the application client where the internal web component is located cannot know the data requested by the internal web component, nor can it count data traffic, which causes security and traffic problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data requesting method and client
  • Data requesting method and client
  • Data requesting method and client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] The embodiment of the present invention provides a method for requesting data, see figure 1 , The method flow includes:

[0041] 101: The client obtains the assistance requested content submitted by the internal webpage component embedded in itself.

[0042] Specifically, the client obtains the assistance requested content submitted by the internal webpage component embedded in itself, including but not limited to:

[0043] The client monitors the assistance request submitted by the embedded internal webpage component, and the assistance request carries the client's identifier, the identifier indicating the request type, and the content requested for assistance.

[0044] 102: The client requests corresponding data from the server according to the requested assistance content.

[0045] Specifically, request corresponding data from the server, including but not limited to:

[0046] According to the server's geographic location or response speed, select a server from multiple servers...

Embodiment 2

[0057] In order to enable the client’s internal webpage component to access webpages across domains and enable the client to know the data requested by the internal webpage component, thereby solving the security problem and traffic problem caused by the requested data, an embodiment of the present invention provides a request The method of data, combined with the content of the above embodiment 1, see figure 2 , The method flow provided in this embodiment includes:

[0058] 201: The client obtains the assistance request content submitted by the internal webpage component embedded in itself.

[0059] Specifically, the client's acquisition of the requested assistance content submitted by the embedded internal webpage component includes but is not limited to: the client monitors the assistance request submitted by the embedded internal webpage component, and the assistance request carries the client's identifier and indicates the request type The logo and the content of the request ...

Embodiment 3

[0094] The embodiment of the present invention provides a client, which is used to execute the method for requesting data provided in the first or second embodiment above.

[0095] See image 3 , The client includes:

[0096] The obtaining module 301 is used to obtain the assistance requested content submitted by the internal webpage component embedded in itself;

[0097] The sending module 302 is configured to request corresponding data from the server according to the assistance request content obtained by the obtaining module 301;

[0098] The receiving module 303 is used to receive the corresponding data returned by the server;

[0099] The delivery module 304 is used to deliver the corresponding data received by the receiving module 303 to the internal webpage component.

[0100] Specifically, the acquisition module 301 is specifically configured to monitor the assistance request submitted by the internal webpage component embedded in itself, and the assistance request carries the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data requesting method and a client, and belongs to the field of communications. The method comprises the following steps that the client obtains the assistance requesting content submitted by an internal webpage assembly which is embedded in the client, and requests the corresponding data from a server according to the assistance requesting content; the corresponding data returned from the server is received, and is delivered to the internal webpage assembly. Because the communication between the client and the server is free from the limitation of domains, so the corresponding data is requested from the server according to the assistance requesting content submitted by the internal webpage assembly embedded in the client, then the internal webpage assembly can request the cross-domain data, and the limitation of the data requesting is reduced; in addition, the client can obtain the data requested by the internal webpage assembly, and carry out statistical operation of data flow, so the problems of safety and flow, due to data requesting, can be solved by the safety limitation and the flow limitation.

Description

Technical field [0001] The present invention relates to the field of communications, in particular to a method and client for requesting data. Background technique [0002] With the continuous development of communication technology, there are more and more types of applications. In order to provide better user services, most of the terminals are installed with various application clients, and the client can also be embedded in the component for accessing the webpage, which is called the internal webpage component, for example, in the application client Embedded in the browser, the browser is the internal web page component. In order to realize the function of accessing the webpage, the internal webpage component usually needs to request data from the network-side server. [0003] When the internal webpage component requests data, it can directly communicate with the server based on methods such as Ajax or JavaScript to send a data request to the server, so that the server return...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L12/801
Inventor 张鹏飞汪轩然许大芮
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products