CN102314409A - Method for downloading page information and device thereof and service terminal - Google Patents

Method for downloading page information and device thereof and service terminal Download PDF

Info

Publication number
CN102314409A
CN102314409A CN2010102157447A CN201010215744A CN102314409A CN 102314409 A CN102314409 A CN 102314409A CN 2010102157447 A CN2010102157447 A CN 2010102157447A CN 201010215744 A CN201010215744 A CN 201010215744A CN 102314409 A CN102314409 A CN 102314409A
Authority
CN
China
Prior art keywords
page
client
picture
module
sending
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.)
Pending
Application number
CN2010102157447A
Other languages
Chinese (zh)
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.)
SHENZHEN CITY MILLION-E CULTURE INDUSTRIAL Co Ltd
Original Assignee
SHENZHEN CITY MILLION-E CULTURE INDUSTRIAL 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 SHENZHEN CITY MILLION-E CULTURE INDUSTRIAL Co Ltd filed Critical SHENZHEN CITY MILLION-E CULTURE INDUSTRIAL Co Ltd
Priority to CN2010102157447A priority Critical patent/CN102314409A/en
Publication of CN102314409A publication Critical patent/CN102314409A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for downloading page information and a device thereof and a service terminal. The method comprises the following steps that: the service terminal establishes data connection with a client according to a data connection request sent by the client; the service terminal acquires page information according to page request information sent by the client, encodes character data in the page information and position coordinate information of the character data in a page by using a Javascript serialized object notation (JSON) protocol, and sends the encoded character data and position coordinate information of the character data in the page to the client; and the client decodes the received character data and position coordinate information of the character data in the page and displays the decoded character data according to the position coordinate information of the decoded character data in the page. The method and the device have the advantages that: the speed for the client to download the page information can be increased, and the user experience is relatively good.

Description

A kind of method of downloading page information and device thereof, a kind of service end
Technical field
The present invention relates to wireless communication technology field, relate in particular to a kind of method and device thereof, and a kind of service end of downloading page information.
Background technology
In the prior art; Client (such as handheld electronic reader or portable terminal) can be passed through the network access service end; And then the page info of download service end (this page info includes lteral data and picture); But the page info speed of client downloads service end of the prior art is slow, and user experience is bad.
Summary of the invention
The invention provides a kind of method and device thereof of downloading page information, a kind of service end, the velocity ratio of its client downloads page info is very fast, and user experience is good.
Technical scheme of the present invention is:
A kind of method of downloading page information comprises step:
The data connection request that service end is sent according to client is set up and is connected with the data of said client;
The page request information that service end is sent according to said client is obtained page info, and lteral data in the page info that obtains and the location coordinate information of lteral data in the page are used the JSON protocol code; And the lteral data after will encoding and the location coordinate information of lteral data in the page send to client;
Said client is decoded to the lteral data and the location coordinate information of lteral data in the page that receive, shows decoded lteral data according to the location coordinate information of decoded lteral data in the page.
A kind of device of downloading page information comprises: service end and client,
Said service end comprises obtains page info module, coding module and first sending/receiving module; Said client comprises second sending/receiving module, decoder module and display module;
The data connection request that said first sending/receiving module sends according to said second sending/receiving module is set up and is connected with the data of said second sending/receiving module; The said page info module of obtaining receives the page request information that said second sending/receiving module sends through said first sending/receiving module, and obtains page info according to this page request information; Said coding module is used the JSON protocol code with lteral data in the page info that obtains and the location coordinate information of lteral data in the page; Lteral data after said first sending/receiving module will be encoded and the location coordinate information of lteral data in the page send to second sending/receiving module;
Lteral data and the location coordinate information of lteral data in the page behind the coding that said decoder module receives said second sending/receiving module are decoded, and said display module shows decoded lteral data according to decoded location coordinate information.
A kind of service end comprises and obtains page info module, coding module and sending/receiving module;
The data connection request that said sending/receiving module sends according to client is set up and is connected with the data of said client; The said page info module of obtaining receives the page request information that said client is sent through said sending/receiving module, and obtains page info according to this page request information; Said coding module is used the JSON protocol code with lteral data in the page info that obtains and the location coordinate information of lteral data in the page; Lteral data after said sending/receiving module will be encoded and the location coordinate information of lteral data in the page send to said client.
The method of downloading page information of the present invention and device thereof, a kind of service end; Service end is used the JsON protocol code with lteral data in the page info and the location coordinate information of lteral data in the page; The JSON protocol code can be described page info efficiently; Code efficiency is than higher, and then can improve the speed of client downloads page info, and user experience is relatively good.
Description of drawings
Fig. 1 is the method process flow diagram in one embodiment of downloading page information of the present invention;
Fig. 2 is the device structured flowchart in one embodiment of downloading page information of the present invention;
Fig. 3 is the device structured flowchart in another embodiment of downloading page information of the present invention;
Fig. 4 is a service end of the present invention structured flowchart in one embodiment.
Embodiment
The method of downloading page information of the present invention and device thereof, a kind of service end can improve the speed of client downloads page info, and user experience is relatively good.
Below in conjunction with accompanying drawing specific embodiment of the present invention is done a detailed elaboration.
The method of downloading page information of the present invention like Fig. 1, comprises step:
The data connection request that S101, service end are sent according to client is set up and is connected with the data of said client; This data connect and can set up through WIFI or 3G network, and promptly client and service end can radio communications; Client can be that handheld electronic reader or portable terminal are such as mobile phone etc.;
The page request information that S102, service end are sent according to said client is obtained page info; At the various page infos that the service end client needs, service end can be obtained the page info of client needs according to the page request information that client is sent, and this page request information can be the chained address of webpage; Page info can be the book information of e-book and so on;
S103, lteral data in the page info that obtains and the location coordinate information of lteral data in the page are used the JSON protocol code;
JSON (JavaScript Object Notation) is a kind of data interchange format of lightweight; The JSON protocol description ultimate principle of page info is that each screen elements is described respectively; Every kind of style information such as positions of elements coordinate is in another pattern file; This is in order to present displaying contents and pattern separately; Make to the different shared contents of screen ability, conveniently switch pattern, introduce the pattern description document of similar CSS;
JSON has following these forms:
To as if unordered " ' name/value ' a to " set.An object finishes with " { " (left parenthesis) beginning, " } " (right parenthesis).": " (colon) of each " title " heel; Use ", " (comma) to separate between " ' name/value ' to ";
Array is the ordered set of value (value), and an array finishes with " [" (left bracket) beginning, "] " (right bracket).Use ", " (comma) to separate between the value;
Value (value) can be character string (string), numerical value (number), true, false, null, object (object) or the array (array) that double quotation marks brackets, and these structures can be nested;
Character string (string) is by the set of any amount Unicode character of double quotation marks encirclement, uses the backslash escape, and a character (character) i.e. is an independent character string (characterstring);
Numerical value (number) is also closely similar with the numerical value of C or Java;
Use the JSON protocol code, can realize the efficient communication of client and service end, avoid client to use built-in browser; The communication that is client and service end is adopted http protocol in application layer; Be the JSON agreement on the http protocol layer, when client during to page info of service end request, service end is used the JSON protocol code to the lteral data in the page info; After client is received lteral data; At first use JSON decoder decode data, obtain the string data of the page, can reduce according to the location coordinate information of lteral data in the page and obtain the page;
Because JSON protocol description data, succinct efficient, transmission speed is fast, is particularly suitable for the network data transmission of this hand-held terminal device of client;
S104, lteral data and the location coordinate information of lteral data in the page after will encoding send to client;
S105, said client are decoded to the lteral data and the location coordinate information of lteral data in the page that receive, show decoded lteral data according to the location coordinate information of decoded lteral data in the page.
In the specific implementation; Step S103 also comprises: if comprise picture in the page info that obtains; Service end is used the JSON protocol code with this picture with Base64 coding and with the location coordinate information of picture in the page, and the picture after will encoding and the location coordinate information of picture in the page send to client;
This moment, step S105 also comprised: said client is decoded to the picture and the location coordinate information of picture in the page that receive, shows decoded picture according to the location coordinate information of decoded picture in the page.Owing to can encode to the picture in the page info, then further improved data rate, increased user experience.
In order page info to be carried out the version protection, prevent that unauthorized user from arriving service end downloading page information, can carry out copyright protection to the page info of storage in service end.Even unauthorized user has been downloaded page info like this, owing to there is not encryption key, the page info e-book of still not opening has played the effect of copyright protection.For authorized user; Can obtain the occupancy permit file from service end through client; Contain the key behind the public key encryption of useful this client in the occupancy permit file, client can be used the private key deciphering of oneself, obtains encryption key; Thereby the deciphering page info obtains original page info and reads.The concrete realization as follows:
Before the page request information that said service end is sent according to said client is obtained page info; Lteral data and/or picture in the page info that said service end use encryption keys is obtained are according to the sign generation occupancy permit file of said encryption key and said client; And after the page request information of sending according to said client is obtained page info, said occupancy permit file is sent to said client; Be that service end is used encryption keys in advance to lteral data and/or picture in the page info of storage; After client and service end are set up data and are connected; Sign and encryption key according to this client generate the occupancy permit file, also this occupancy permit file are sent to client when lteral data after will encoding and/or picture send to client;
Said client is before decoding to the lteral data that receives and/or picture and lteral data and/or the location coordinate information of picture in the page; Decipher said occupancy permit file according to the private key of said client self; Obtain said encryption key, decipher lteral data and/or the picture that receives according to this encryption key.
Corresponding with the method for above-mentioned downloading page information, the invention also discloses a kind of device of downloading page information, like Fig. 2, it comprises: service end and client,
Said service end specifically can comprise obtains page info module, coding module and first sending/receiving module; Said client comprises second sending/receiving module, decoder module and display module;
An end that obtains the page info module is connected with first sending/receiving module, and the other end is connected with first sending/receiving module through coding module; Second sending/receiving module is connected with display module through decoder module;
The data connection request that said first sending/receiving module sends according to said second sending/receiving module is set up and is connected with the data of said second sending/receiving module, and said first sending/receiving module can be set up wireless data through WIFI or 3G network with said second sending/receiving module and be connected; The said page info module of obtaining receives the page request information that said second sending/receiving module sends through said first sending/receiving module, and obtains page info according to this page request information; Said coding module is used the JSON protocol code with lteral data in the page info that obtains and the location coordinate information of lteral data in the page; Lteral data after said first sending/receiving module will be encoded and the location coordinate information of lteral data in the page send to second sending/receiving module;
Lteral data and the location coordinate information of lteral data in the page behind the coding that said decoder module receives said second sending/receiving module are decoded, and said display module shows decoded lteral data according to decoded location coordinate information.
During practical implementation, when said coding module comprises picture in the page info that obtains, this picture is used the JSON protocol code with the Base64 coding and with the location coordinate information of picture in the page; Picture after said first sending/receiving module will be encoded and the location coordinate information of picture in the page send to second sending/receiving module;
Picture and the location coordinate information of picture in the page behind the coding that said decoder module receives said second sending/receiving module are decoded, and show decoded picture according to the location coordinate information of decoded picture in the page.Can encode this moment to the picture in the page info, further improved data rate, increased user experience.
In order page info to be carried out the version protection; Prevent that unauthorized user from passing through client to service end downloading page information; Like Fig. 3; Said service end also comprises with said obtains the encrypting module that the page info module is connected, and said client also comprises the deciphering module that is connected between second sending/receiving module and the said decoder module;
Said encrypting module obtains before the page info module obtains page info said, uses lteral data and/or picture in the page info that encryption keys obtains, according to the sign generation occupancy permit file of said encryption key and client; First sending/receiving module said obtain the page info module and obtain page info after, said occupancy permit file is sent to said second sending/receiving module;
Said deciphering module receives said occupancy permit file through second sending/receiving module; At decoder module to the lteral data that receives/or picture and lteral data/or before the location coordinate information of picture in the page decode; Decipher said occupancy permit file according to the private key of said client self; Obtain said encryption key, decipher lteral data and/or the picture that receives according to this encryption key.
The invention also discloses a kind of service end, like Fig. 4, it comprises and obtains page info module, coding module and sending/receiving module;
The data connection request that said sending/receiving module sends according to client is set up and is connected with the data of said client, and sending/receiving module can be set up wireless data through WIFI or 3G network with client and be connected; The said page info module of obtaining receives the page request information that said client is sent through said sending/receiving module, and obtains page info according to this page request information; Said coding module is used the JSON protocol code with lteral data in the page info that obtains and the location coordinate information of lteral data in the page; Lteral data after said sending/receiving module will be encoded and the location coordinate information of lteral data in the page send to said client.
Said client is decoded to the lteral data and the location coordinate information of lteral data in the page that receive, shows decoded lteral data according to the location coordinate information of decoded lteral data in the page.
During practical implementation, when said coding module comprises picture in the page info that obtains, this picture is used the JSON protocol code with the Base64 coding and with the location coordinate information of picture in the page; Picture after said sending/receiving module will be encoded and the location coordinate information of picture in the page send to client.Said client is decoded to the picture and the location coordinate information of picture in the page that receive, shows decoded picture according to the location coordinate information of decoded picture in the page.Owing to can encode to the picture in the page info, then further improved data rate, increased user experience.
For the page info to the service end storage carries out the version protection, prevent that unauthorized user is to service end downloading page information; Said service end also comprises and obtains the encrypting module that the page info module is connected; Obtain before the page info module obtains page info said; Lteral data and/or picture in the page info that the use encryption keys is obtained are according to the sign generation occupancy permit file of said encryption key and client; Said sending/receiving module said obtain the page info module and obtain page info after, said occupancy permit file is sent to said client.
Said client is before decoding to the lteral data that receives and/or picture and lteral data and/or the location coordinate information of picture in the page; Decipher said occupancy permit file according to the private key of said client self; Obtain said encryption key, decipher lteral data and/or the picture that receives according to this encryption key.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection domain of the present invention.

Claims (10)

1. the method for a downloading page information is characterized in that, comprises step:
The data connection request that service end is sent according to client is set up and is connected with the data of said client;
The page request information that service end is sent according to said client is obtained page info, and lteral data in the page info that obtains and the location coordinate information of lteral data in the page are used the JSON protocol code; And the lteral data after will encoding and the location coordinate information of lteral data in the page send to client;
Said client is decoded to the lteral data and the location coordinate information of lteral data in the page that receive, shows decoded lteral data according to the location coordinate information of decoded lteral data in the page.
2. the method for downloading page information according to claim 1; It is characterized in that: if comprise picture in the page info that obtains; Service end is used the JSON protocol code with this picture with Base64 coding and with the location coordinate information of picture in the page, and the picture after will encoding and the location coordinate information of picture in the page send to client;
Said client is decoded to the picture and the location coordinate information of picture in the page that receive, shows decoded picture according to the location coordinate information of decoded picture in the page.
3. the method for downloading page information according to claim 2; It is characterized in that: before the page request information that said service end is sent according to said client is obtained page info; Lteral data and picture in the page info that said service end use encryption keys is obtained are according to the sign generation occupancy permit file of said encryption key and said client; And after the page request information of sending according to said client is obtained page info, said occupancy permit file is sent to said client;
Said client is before decoding to lteral data, picture and the lteral data, the location coordinate information of picture in the page that receive; Decipher said occupancy permit file according to the private key of said client self; Obtain said encryption key, decipher lteral data and the picture that receives according to this encryption key.
4. the device of a downloading page information is characterized in that, comprising: service end and client, said service end comprise obtains page info module, coding module and first sending/receiving module; Said client comprises second sending/receiving module, decoder module and display module;
The data connection request that said first sending/receiving module sends according to said second sending/receiving module is set up and is connected with the data of said second sending/receiving module; The said page info module of obtaining receives the page request information that said second sending/receiving module sends through said first sending/receiving module, and obtains page info according to this page request information; Said coding module is used the JSON protocol code with lteral data in the page info that obtains and the location coordinate information of lteral data in the page; Lteral data after said first sending/receiving module will be encoded and the location coordinate information of lteral data in the page send to second sending/receiving module;
Lteral data and the location coordinate information of lteral data in the page behind the coding that said decoder module receives said second sending/receiving module are decoded, and said display module shows decoded lteral data according to decoded location coordinate information.
5. the device of downloading page information according to claim 4 is characterized in that: when said coding module comprises picture in the page info that obtains, this picture is used the JSON protocol code with the Base64 coding and with the location coordinate information of picture in the page; Picture after said first sending/receiving module will be encoded and the location coordinate information of picture in the page send to second sending/receiving module;
Picture and the location coordinate information of picture in the page behind the coding that said decoder module receives said second sending/receiving module are decoded, and show decoded picture according to the location coordinate information of decoded picture in the page.
6. the device of downloading page information according to claim 5; It is characterized in that: said service end also comprises with said obtains the encrypting module that the page info module is connected, and said client also comprises the deciphering module that is connected between second sending/receiving module and the said decoder module;
Said encrypting module obtains before the page info module obtains page info said, uses lteral data and picture in the page info that encryption keys obtains, according to the sign generation occupancy permit file of said encryption key and client; First sending/receiving module said obtain the page info module and obtain page info after, said occupancy permit file is sent to said second sending/receiving module;
Said deciphering module receives said occupancy permit file through second sending/receiving module; Before decoder module is decoded to lteral data, picture and the lteral data, the location coordinate information of picture in the page that receive; Decipher said occupancy permit file according to the private key of said client self; Obtain said encryption key, decipher lteral data and the picture that receives according to this encryption key.
7. according to the device of claim 4 or 5 or 6 described downloading page information, it is characterized in that: said first sending/receiving module is set up data with said second sending/receiving module through WIFI or 3G network and is connected.
8. a service end is characterized in that, comprises obtaining page info module, coding module and sending/receiving module;
The data connection request that said sending/receiving module sends according to client is set up and is connected with the data of said client; The said page info module of obtaining receives the page request information that said client is sent through said sending/receiving module, and obtains page info according to this page request information; Said coding module is used the JSON protocol code with lteral data in the page info that obtains and the location coordinate information of lteral data in the page; Lteral data after said sending/receiving module will be encoded and the location coordinate information of lteral data in the page send to said client.
9. service end according to claim 8 is characterized in that: when said coding module comprises picture in the page info that obtains, this picture is used the JSON protocol code with the Base64 coding and with the location coordinate information of picture in the page; Picture after said sending/receiving module will be encoded and the location coordinate information of picture in the page send to client.
10. service end according to claim 9; It is characterized in that; Also comprise and obtain the encrypting module that the page info module is connected; Obtain before the page info module obtains page info said, use lteral data and picture in the page info that encryption keys obtains, according to the sign generation occupancy permit file of said encryption key and client; Said sending/receiving module said obtain the page info module and obtain page info after, said occupancy permit file is sent to said client.
CN2010102157447A 2010-06-30 2010-06-30 Method for downloading page information and device thereof and service terminal Pending CN102314409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102157447A CN102314409A (en) 2010-06-30 2010-06-30 Method for downloading page information and device thereof and service terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102157447A CN102314409A (en) 2010-06-30 2010-06-30 Method for downloading page information and device thereof and service terminal

Publications (1)

Publication Number Publication Date
CN102314409A true CN102314409A (en) 2012-01-11

Family

ID=45427592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102157447A Pending CN102314409A (en) 2010-06-30 2010-06-30 Method for downloading page information and device thereof and service terminal

Country Status (1)

Country Link
CN (1) CN102314409A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164109A (en) * 2012-08-31 2013-06-19 北京红日逸信科技有限公司 Method and system for dynamically displaying file in mobile terminal
CN103473047A (en) * 2013-08-29 2013-12-25 贝壳网际(北京)安全技术有限公司 Method and device for managing tab background in browser and client
CN108494742A (en) * 2018-03-05 2018-09-04 杭州泰酷科技有限公司 A kind of web data encrypted transmission mode applied to browser
CN110502711A (en) * 2019-07-17 2019-11-26 汉海信息技术(上海)有限公司 Page display method, device, electronic equipment and readable storage medium storing program for executing
CN111625746A (en) * 2020-05-27 2020-09-04 咪咕文化科技有限公司 Display method and system of application program page, electronic device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
韩义波等: "Ajax技术结合XML或JSON的使用比较", 《电脑知识与技术》 *
韩敏等: "基于JSON的地理信息数据交换方法研究", 《测绘科学》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164109A (en) * 2012-08-31 2013-06-19 北京红日逸信科技有限公司 Method and system for dynamically displaying file in mobile terminal
CN103473047A (en) * 2013-08-29 2013-12-25 贝壳网际(北京)安全技术有限公司 Method and device for managing tab background in browser and client
CN103473047B (en) * 2013-08-29 2017-03-29 贝壳网际(北京)安全技术有限公司 Method and device for managing tab background in browser and client
CN108494742A (en) * 2018-03-05 2018-09-04 杭州泰酷科技有限公司 A kind of web data encrypted transmission mode applied to browser
CN108494742B (en) * 2018-03-05 2023-10-27 杭州泰酷科技有限公司 Web data encryption transmission mode applied to browser
CN110502711A (en) * 2019-07-17 2019-11-26 汉海信息技术(上海)有限公司 Page display method, device, electronic equipment and readable storage medium storing program for executing
CN111625746A (en) * 2020-05-27 2020-09-04 咪咕文化科技有限公司 Display method and system of application program page, electronic device and storage medium
CN111625746B (en) * 2020-05-27 2024-01-30 咪咕文化科技有限公司 Application page display method, system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN101178716B (en) Method of micro-browsers processing JavaScript and micro-browsers thereof
CN1867142B (en) Method and system for mobile terminal device obtaining computer information
CN103262077A (en) Method and apparatus for a device identifier based solution for user identification
WO2008112932A3 (en) An apparatus and method for sending video content to a mobile device
CN103368722A (en) System and method for improving bluetooth low energy privacy
JP2008538464A5 (en)
JP2011518450A5 (en)
CN102314409A (en) Method for downloading page information and device thereof and service terminal
KR101638349B1 (en) Method for communicating of message based on wifi direct and apparatus performing the method
CN104469064A (en) Transmission method and system for screenshot content, display method and system and terminals
CN105141567B (en) Interaction data processing method and system, the exchange method of terminal applies and server-side
CN103344241A (en) Method and system for obtaining navigation message from public electronic map
CN104219300B (en) The sharing method and system of coordinate transformation parameter
US20120331100A1 (en) Electronic book and system for download of electronic document
CN102325225A (en) Method and device for playing video of mobile phone website
CN104461616A (en) Updating method and system of software of chip card
CN103873251A (en) Method and equipment for establishing connection by audio frequency
CN103037336A (en) Short message transmission method of two-dimensional code
CN104602208A (en) Short message encrypted communication method based on mobile network
CN107463536A (en) A kind of method and system for realizing document in online preview server in Android device
KR100676052B1 (en) System and method for jointing contents using sync server
CN101951406A (en) Network transmission method and device
CN101494784A (en) Arbitrary ratio image resizing in the dct domain
CN106161021A (en) Private data sending method and device, private data method of reseptance and device
CN105659537A (en) Correlation of sent and received electronic messages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120111