[go: up one dir, main page]

CN104601636B - Webpage fit transmission method and relevant apparatus and communication system - Google Patents

Webpage fit transmission method and relevant apparatus and communication system Download PDF

Info

Publication number
CN104601636B
CN104601636B CN201310548216.7A CN201310548216A CN104601636B CN 104601636 B CN104601636 B CN 104601636B CN 201310548216 A CN201310548216 A CN 201310548216A CN 104601636 B CN104601636 B CN 104601636B
Authority
CN
China
Prior art keywords
user terminal
webpage
source code
web page
device type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310548216.7A
Other languages
Chinese (zh)
Other versions
CN104601636A (en
Inventor
林晓丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310548216.7A priority Critical patent/CN104601636B/en
Priority to PCT/CN2014/085378 priority patent/WO2015067090A1/en
Publication of CN104601636A publication Critical patent/CN104601636A/en
Application granted granted Critical
Publication of CN104601636B publication Critical patent/CN104601636B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • 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]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses provide webpage fit transmission method and relevant apparatus and communication system.A kind of webpage fit transmission method includes: the device type mark and communication identifier of the first user terminal acquisition second user terminal;Webpage fit transmission request is sent to adaptation services device, webpage fit transmission request carries the relevant information of the first webpage and the device type mark and communication identifier of second user terminal, so that adaptation services device is after receiving the webpage fit transmission request from the first user terminal, the source code that the second webpage that described device type is adapted to is identified with the device type of second user terminal is obtained based on relevant information, and the communication identifier based on second user terminal sends the source code of the second webpage to second user terminal.Technical solution provided in an embodiment of the present invention is conducive to improve the collocation degree of transmitted webpage and type of user terminal between different types of user terminal, and then improves the web page browing experience of user.

Description

Webpage adaptive transmission method, related device and communication system
Technical Field
The invention relates to the technical field of internet, in particular to a webpage adaptation transmission method, a related device and a communication system.
Background
Currently, some browsers provide a cross-screen traversing function of a web page, for example, the rapid transmission of the web page between user terminals of mobile phones, personal computers, ipads and the like can be realized, wherein the original web page is maintained when the web page is transmitted between the user terminals of various types.
During research and practice, the inventor of the present invention finds that the prior art has at least the following technical problems: in the prior art, the original webpage is kept unchanged when the webpage is transmitted between various types of user terminals, so that the problem that the webpage and the webpage opening terminal are not adaptive is solved. For example, a web page suitable for being opened by a personal computer is still the original web page suitable for being opened by the personal computer after being transmitted to a mobile phone, which greatly influences the reading experience of a user.
Disclosure of Invention
The embodiment of the invention provides a webpage adaptation transmission method, a related device and a communication system, aiming to improve the adaptation degree of a webpage transmitted between different types of user terminals and the types of the user terminals, and further improve the webpage reading experience of a user.
A first aspect of an embodiment of the present invention provides a method for adaptive transmission of a web page, where the method may include:
the method comprises the steps that a first user terminal obtains a device type identifier and a communication identifier of a second user terminal;
sending a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries related information of a first webpage and a device type identifier and a communication identifier of a second user terminal, so that the adaptation server obtains a source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information after receiving the webpage adaptation transmission request from the first user terminal, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the related information of the first webpage is a first network address of the first webpage or the source code of the first webpage.
A second aspect of the embodiments of the present invention provides a method for adaptive transmission of a web page, which may include:
the method comprises the steps that an adaptation server receives a webpage adaptation transmission request from a first user terminal, wherein the webpage adaptation transmission request carries relevant information of a first webpage and equipment type identification and communication identification of a second user terminal, and the relevant information of the first webpage is a first network address of the first webpage or a source code of the first webpage;
acquiring a source code of a second webpage which is adaptive to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage; and sending the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal.
A third aspect of the embodiments of the present invention provides a user terminal, which may include:
the acquisition unit is used for acquiring the equipment type identifier and the communication identifier of the second user terminal;
a sending unit, configured to send a web page adaptation transmission request to an adaptation server, where the web page adaptation transmission request carries relevant information of a first web page and a device type identifier and a communication identifier of the second user terminal, so that after the adaptation server receives the web page adaptation transmission request from the first user terminal, based on the relevant information, a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal is obtained, and based on the communication identifier of the second user terminal, the source code of the second web page is sent to the second user terminal, where the relevant information of the first web page is a first network address of the first web page or the source code of the first web page.
A fourth aspect of an embodiment of the present invention provides an adaptation server, which may include:
a receiving unit, configured to receive a web page adaptation transmission request from a first user terminal, where the web page adaptation transmission request carries relevant information of a first web page and a device type identifier and a communication identifier of a second user terminal, and the relevant information of the first web page is a first network address of the first web page or a source code of the first web page;
an obtaining unit, configured to obtain, based on the relevant information of the first web page, a source code of a second web page that is adapted to a device type described by the device type identifier of the second user terminal;
and the sending unit is used for sending the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal.
A fifth aspect of an embodiment of the present invention provides a communication system, which may include:
the system comprises a first user terminal, a second user terminal and an adaptive server;
the first user terminal is used for acquiring a device type identifier and a communication identifier of the second user terminal; sending a webpage adaptation transmission request to the adaptation server, wherein the webpage adaptation transmission request carries the relevant information of the first webpage and the equipment type identifier and the communication identifier of the second user terminal;
the adaptation server is configured to, after receiving a web page adaptation transmission request from the first user terminal, obtain, based on the related information, a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal, and send, based on the communication identifier of the second user terminal, the source code of the second web page to the second user terminal, where the related information of the first web page is a first network address of the first web page or the source code of the first web page.
It can be seen that, in some embodiments of the present invention, after the first user terminal obtains the device type identifier and the communication identifier of the second user terminal; and sending a webpage adaptation transmission request carrying the related information of the first webpage and the equipment type identifier and the communication identifier of the second user terminal to an adaptation server, so that the adaptation server obtains the source code of the second webpage adapted to the equipment type described by the equipment type identifier of the second user terminal based on the related information after receiving the webpage adaptation transmission request from the first user terminal, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the related information of the first webpage is the first network address of the first webpage or the source code of the first webpage. The first user terminal transmits the source code of the second webpage which corresponds to the source code of the first webpage and is matched with the device type described by the device type identification of the second user terminal to the second user terminal by means of the matching server, so that the webpage read by the first user terminal is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen viewing of the second user terminal, the matching degree of the webpage transmitted between the user terminals of different types and the type of the user terminal can be improved, and the webpage reading experience of the user is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for adaptive transmission of a web page according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another method for adaptive transmission of a web page according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another method for adaptive transmission of a web page according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating another method for adaptive transmission of a web page according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a user equipment according to an embodiment of the present invention;
FIG. 6 is a diagram of an adaptation server provided by an embodiment of the present invention;
fig. 7 is a schematic diagram of another ue provided in an embodiment of the present invention;
FIG. 8 is a schematic diagram of another adaptation server provided by embodiments of the present invention;
fig. 9 is a schematic diagram of a mobile communication terminal according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a communication system according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a webpage adaptation transmission method, a related device and a communication system, aiming to improve the adaptation degree of a webpage transmitted between different types of user terminals and the types of the user terminals, and further improve the webpage reading experience of a user.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following are detailed below.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
An embodiment of a method for adaptive transmission of a web page according to the present invention includes: the method comprises the steps that a first user terminal obtains a device type identifier and a communication identifier of a second user terminal; and sending a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries relevant information of a first webpage and a device type identifier and a communication identifier of a second user terminal, so that the adaptation server obtains a source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the relevant information after receiving the webpage adaptation transmission request from the first user terminal, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the relevant information of the first webpage is a first network address of the first webpage or the source code of the first webpage.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for adaptive transmission of a web page according to an embodiment of the present invention. As shown in fig. 1, a method for web page adaptation transmission according to an embodiment of the present invention may include the following steps:
101. the first user terminal obtains the device type identification and the communication identification of the second user terminal.
When the first user terminal wishes to transmit a currently browsed or browsed webpage to the second user terminal for browsing, or the second user terminal wishes to browse a currently browsed or browsed webpage of the first user terminal, the first user terminal can acquire the device type identifier and the communication identifier of the second user terminal. The first user terminal and the second user terminal may be a personal computer, a mobile communication terminal, a tablet computer, or the like.
The first user terminal and the second user terminal may be located in the same local area network, or may be located in different local area networks.
102. The method comprises the steps that a first user terminal sends a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries relevant information of a first webpage and a device type identifier and a communication identifier of a second user terminal, so that the adaptation server obtains a source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the relevant information after receiving the webpage adaptation transmission request from the first user terminal, and sends a source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the relevant information of the first webpage is a first network address of the first webpage or the source code of the first webpage.
In some embodiments of the present invention, the obtaining, by the first user terminal, the device type identifier and the communication identifier of the second user terminal may include: the method comprises the steps that a first user terminal obtains a device type identifier and a communication identifier of a second user terminal, which are input by a user; or after the first user terminal establishes a communication connection with the second user terminal, the first user terminal obtains the device type identifier and the communication identifier of the second user terminal from the second user terminal (for example, the second user terminal may actively send the device type identifier and the communication identifier of the second user terminal to the first user terminal, or the second user terminal may also send the device type identifier and the communication identifier of the second user terminal to the first user terminal according to a request of the first user terminal).
The device type identifier of the user terminal is used to describe the device type of the user terminal, and for example, the screen size and/or the operating system of the user terminal may be inferred based on the device type of the user terminal described by the device type identifier of the user terminal. For example, the device type of the user terminal described by the device type identifier of the user terminal (e.g., the first user terminal or the second user terminal, etc.) may be a mobile communication terminal, a personal computer, a tablet computer, or the like, and generally speaking, the screen of the mobile communication terminal is smaller than that of the tablet computer, and the screen of the tablet computer is smaller than that of the personal computer.
In some embodiments of the present invention, the sending the web page adaptation transmission request to the adaptation server may include: and when the device type of the first user terminal is judged to be different from that of the second user terminal based on the device type identifier of the second user terminal (for example, the first user terminal is a personal computer, the second user terminal is a mobile communication terminal or a tablet computer, and the like), sending a webpage adaptation transmission request to an adaptation server. Of course, the first user terminal may default that the device types of the first user terminal and the second user terminal are different, so that it is not necessary to determine whether the device types of the first user terminal and the second user terminal are different before the first user terminal sends the web page adaptation transmission request to the adaptation server.
In some embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the acquiring, by the adaptation server, the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage may include: if the site server provides a source code of a first webpage and a source code of a second webpage which are mapped with a first network address (namely, the source code of the first webpage and the source code of the second webpage both correspond to the first network address, and certainly, the main contents of the first webpage and the main contents of the second webpage are the same, but the formats of the first webpage and the second webpage are different), wherein the source code of the second webpage is adapted to the device type described by the device type identifier of the second user terminal, and the source code of the second webpage is obtained from the site server based on the first network address;
in other embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the adapting server obtains the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage, which may include: and acquiring a source code of the first webpage mapped with the first network address from the site server based on the first network address, and converting the source code of the first webpage into a source code of a second webpage adapted to the device type described by the device type identifier of the second user terminal.
In other embodiments of the present invention, if the related information of the first webpage is specifically the source code of the first webpage, the acquiring, by the adaptation server, the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage may include: the adaptation server converts the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identification of the second user terminal.
For example, the adapting server converts the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal, which may include, for example: adjusting a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjusting a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjusting a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjusting a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjusting a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter), and/or adjusting a CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adaptive according to the terminal device type) to obtain a source code of the second web page that is adapted to the device type described by the device type identification of the second user terminal.
It can be seen that, in this embodiment, after the first user terminal obtains the device type identifier and the communication identifier of the second user terminal; and sending a webpage adaptation transmission request carrying the related information of the first webpage and the equipment type identifier and the communication identifier of the second user terminal to an adaptation server, so that the adaptation server obtains the source code of the second webpage adapted to the equipment type described by the equipment type identifier of the second user terminal based on the related information after receiving the webpage adaptation transmission request from the first user terminal, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the related information of the first webpage is the first network address of the first webpage or the source code of the first webpage. The first user terminal transmits the source code of the second webpage which corresponds to the source code of the first webpage and is matched with the device type described by the device type identification of the second user terminal to the second user terminal by means of the matching server, so that the webpage read by the first user terminal is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen viewing of the second user terminal, the matching degree of the webpage transmitted between the user terminals of different types and the type of the user terminal can be improved, and the webpage reading experience of the user is further improved.
Another embodiment of the method for adaptive webpage transmission of the present invention, wherein another method for adaptive webpage transmission may include: the method comprises the steps that an adaptation server receives a webpage adaptation transmission request from a first user terminal, wherein the webpage adaptation transmission request carries relevant information of a first webpage and equipment type identification and communication identification of a second user terminal, and the relevant information of the first webpage is a first network address of the first webpage or a source code of the first webpage; acquiring a source code of a second webpage which is adaptive to the device type described by the device type identification of the second user terminal based on the related information of the first webpage; and transmitting the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal.
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for adaptive transmission of a web page according to another embodiment of the present invention. As shown in fig. 2, another web page adaptation transmission method provided by another embodiment of the present invention may include the following steps:
201. the method comprises the steps that an adaptation server receives a webpage adaptation transmission request from a first user terminal, wherein the webpage adaptation transmission request carries relevant information of a first webpage and equipment type identification and communication identification of a second user terminal, and the relevant information of the first webpage is a first network address of the first webpage or a source code of the first webpage;
when the first user terminal wishes to transmit a currently browsed or browsed webpage to the second user terminal for browsing, or the second user terminal wishes to browse a webpage currently browsed or browsed by the first user terminal, the first user terminal can acquire the device type identifier and the communication identifier of the second user terminal, and send a webpage adaptation transmission request carrying the related information of the first webpage and the device type identifier and the communication identifier of the second user terminal to the adaptation server. The first user terminal and the second user terminal may be a personal computer, a mobile communication terminal, a tablet computer, or the like.
The first user terminal and the second user terminal may be located in the same local area network, or may be located in different local area networks.
202. The adaptation server acquires a source code of a second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage;
203. and the adaptation server sends the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal.
The device type identifier of the user terminal is used to describe the device type of the user terminal, and for example, the screen size and/or the operating system of the user terminal may be inferred based on the device type of the user terminal described by the device type identifier of the user terminal. For example, the device type of the user terminal described by the device type identifier of the user terminal (e.g., the first user terminal or the second user terminal, etc.) may be a mobile communication terminal, a personal computer, a tablet computer, or the like, and generally speaking, the screen of the mobile communication terminal is smaller than that of the tablet computer, and the screen of the tablet computer is smaller than that of the personal computer.
In some embodiments of the present invention, the receiving, by the adaptation server, the web page adaptation transmission request from the first user terminal may include: the adaptation server receives a webpage adaptation transmission request sent by a first user terminal after judging that the device types of the first user terminal and a second user terminal are different based on the device type identifier of the second user terminal (for example, the first user terminal is a personal computer, the second user terminal is a mobile communication terminal or a tablet computer, and the like). Of course, the first user terminal may default that the device types of the first user terminal and the second user terminal are different, so that it is not necessary to determine whether the device types of the first user terminal and the second user terminal are different before the first user terminal sends the web page adaptation transmission request to the adaptation server.
In other embodiments of the present invention, the obtaining, by the adaptation server, the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal based on the relevant information of the first web page may include: and after judging that the equipment types of the first user terminal and the second user terminal are different based on the equipment type identification of the second user terminal, acquiring a source code of a second webpage which is adaptive to the equipment type described by the equipment type identification of the second user terminal based on the related information of the first webpage. Of course, the adaptation server may default that the device types of the first user terminal and the second user terminal are different, so that the adaptation server may not need to determine whether the device types of the first user terminal and the second user terminal are different before acquiring the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage.
In some embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the acquiring, by the adaptation server, the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage may include: if the site server provides a source code of a first webpage and a source code of a second webpage which are mapped with a first network address (namely, the source code of the first webpage and the source code of the second webpage both correspond to the first network address, and certainly, the main contents of the first webpage and the main contents of the second webpage are the same, but the formats of the first webpage and the second webpage are different), wherein the source code of the second webpage is adapted to the device type described by the device type identifier of the second user terminal, and the source code of the second webpage is obtained from the site server based on the first network address;
in other embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the adapting server obtains the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage, which may include: and acquiring a source code of the first webpage mapped with the first network address from the site server based on the first network address, and converting the source code of the first webpage into a source code of a second webpage adapted to the device type described by the device type identifier of the second user terminal.
In other embodiments of the present invention, if the related information of the first webpage is specifically the source code of the first webpage, the acquiring, by the adaptation server, the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage may include: the adaptation server converts the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identification of the second user terminal.
For example, the adapting server converts the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal, which may include, for example: adjusting a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjusting a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjusting a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjusting a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjusting a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter), and/or adjusting a CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adaptive according to the terminal device type) to obtain a source code of the second web page that is adapted to the device type described by the device type identification of the second user terminal.
It can be seen that, in this embodiment, after receiving a web page adaptation transmission request carrying relevant information of a first web page and device type identifiers and communication identifiers of a second user terminal from a first user terminal, an adaptation server acquires a source code of a second web page adapted to a device type described by a device type identifier of the second user terminal based on the relevant information of the first web page, where the relevant information of the first web page is a first network address of the first web page or a source code of the first web page; and transmitting the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal. The first user terminal transmits the source code of the second webpage which corresponds to the source code of the first webpage and is matched with the device type described by the device type identification of the second user terminal to the second user terminal by means of the matching server, so that the webpage read by the first user terminal is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen of the second user terminal to view, the matching degree of the transmitted webpage and the type of the user terminal between the user terminals of different types can be improved, and the webpage reading experience of the user is improved.
To facilitate a better understanding and an implementation of the above-described aspects of the embodiments of the present invention, a few specific application scenarios are presented below by way of example.
Referring to fig. 3, fig. 3 is a flowchart illustrating another method for adaptive transmission of a web page according to another embodiment of the present invention. As shown in fig. 3, another web page adaptation transmission method provided by another embodiment of the present invention may include the following steps:
301. the first user terminal obtains the device type identification and the communication identification of the second user terminal.
When the first user terminal wishes to transmit a currently browsed or browsed webpage to the second user terminal for browsing, or the second user terminal wishes to browse a currently browsed or browsed webpage of the first user terminal, the first user terminal can acquire the device type identifier and the communication identifier of the second user terminal. The first user terminal and the second user terminal may be a personal computer, a mobile communication terminal, a tablet computer, or the like.
The first user terminal and the second user terminal may be located in the same local area network, or may be located in different local area networks.
In some embodiments of the present invention, the obtaining, by the first user terminal, the device type identifier and the communication identifier of the second user terminal may include: the method comprises the steps that a first user terminal obtains a device type identifier and a communication identifier of a second user terminal, which are input by a user; or after the first user terminal establishes a communication connection with the second user terminal, the first user terminal obtains the device type identifier and the communication identifier of the second user terminal from the second user terminal (for example, the second user terminal may actively send the device type identifier and the communication identifier of the second user terminal to the first user terminal, or the second user terminal may also send the device type identifier and the communication identifier of the second user terminal to the first user terminal according to a request of the first user terminal).
The device type identifier of the user terminal is used to describe the device type of the user terminal, and for example, the screen size and/or the operating system of the user terminal may be inferred based on the device type of the user terminal described by the device type identifier of the user terminal. For example, the device type of the user terminal described by the device type identifier of the user terminal (e.g., the first user terminal or the second user terminal, etc.) may be a mobile communication terminal, a personal computer, a tablet computer, or the like, and generally speaking, the screen of the mobile communication terminal is smaller than that of the tablet computer, and the screen of the tablet computer is smaller than that of the personal computer.
302. The first user terminal sends a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries a first network address of a first webpage and a device type identifier and a communication identifier of a second user terminal.
303. The adaptation server receives the webpage adaptation transmission request from the first user terminal; the site server is queried whether to provide the source code of the second web page mapped with the first network address (i.e. the source code of the first web page and the source code of the second web page both correspond to the first network address, but the main contents of the first web page and the second web page are the same, but the format is different), wherein the source code of the second web page is adapted to the device type described by the device type identifier of the second user terminal.
If yes (i.e. the site server provides the source code of the second web page mapped with the first network address), go to step 306; if not, (i.e., the site server does not provide the source code for the second web page mapped to the first network address), then step 304 is performed.
304. The adaptation server acquires a source code of a first webpage mapped with a first network address from the site server based on the first network address;
305. the device type identifier of the second user terminal of the server is adapted, the source code of the first web page is converted into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal, and step 307 is executed.
For example, the adapting server converts the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal, which may include, for example: adjusting a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjusting a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjusting a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjusting a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjusting a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter), and/or adjusting a CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adaptive according to the terminal device type) to obtain a source code of the second web page that is adapted to the device type described by the device type identification of the second user terminal.
For example, assuming that the first user terminal is a personal computer, the second user terminal is a mobile phone, the first webpage is a WWW webpage, and the adaptation server may convert the source code of the first webpage into the source code of a hypertext Markup Language 5(HTML5, hypertext Markup Language 5) webpage or the source code of a Wireless Application Protocol (WAP) webpage based on the device type identifier of the second user terminal, so that the user experience of the second user terminal in browsing the second webpage may be much improved compared with the user experience in browsing the first webpage, because the HTML5 webpage or the WAP webpage is more adapted to the device type of the second user terminal. Therefore, based on the scheme of the embodiment, when the webpage is transmitted between the multi-user terminals, the webpage read by the first user terminal can be converted into the webpage suitable for the second user terminal to read, so that the webpage is suitable for the second user terminal to view on the current screen, and the browsing experience of the webpage is improved.
306. The adaptation server obtains the source code of the second web page from the site server based on the first network address, and step 307 is executed.
307. And the adaptation server sends the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal.
It can be seen that, in this embodiment, after receiving a web page adaptation transmission request carrying a network address of a first web page and a device type identifier and a communication identifier of a second user terminal from a first user terminal, an adaptation server acquires a source code of a second web page adapted to a device type described by the device type identifier of the second user terminal based on the network address of the first web page, where the network address of the first web page is a first network address of the first web page or a source code of the first web page; and transmitting the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal. The first user terminal transmits the source code of the second webpage which corresponds to the source code of the first webpage and is matched with the device type described by the device type identification of the second user terminal to the second user terminal by means of the matching server, so that the webpage read by the first user terminal is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen of the second user terminal to view, the matching degree of the transmitted webpage and the type of the user terminal between the user terminals of different types can be improved, and the webpage reading experience of the user is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating another method for adaptive transmission of a web page according to another embodiment of the present invention. As shown in fig. 4, another web page adaptation transmission method provided by another embodiment of the present invention may include the following steps:
401. the first user terminal obtains the device type identification and the communication identification of the second user terminal.
When the first user terminal wishes to transmit a currently browsed or browsed webpage to the second user terminal for browsing, or the second user terminal wishes to browse a currently browsed or browsed webpage of the first user terminal, the first user terminal can acquire the device type identifier and the communication identifier of the second user terminal. The first user terminal and the second user terminal may be a personal computer, a mobile communication terminal, a tablet computer, or the like.
The first user terminal and the second user terminal may be located in the same local area network, or may be located in different local area networks.
In some embodiments of the present invention, the obtaining, by the first user terminal, the device type identifier and the communication identifier of the second user terminal may include: the method comprises the steps that a first user terminal obtains a device type identifier and a communication identifier of a second user terminal, which are input by a user; or after the first user terminal establishes a communication connection with the second user terminal, the first user terminal obtains the device type identifier and the communication identifier of the second user terminal from the second user terminal (for example, the second user terminal may actively send the device type identifier and the communication identifier of the second user terminal to the first user terminal, or the second user terminal may also send the device type identifier and the communication identifier of the second user terminal to the first user terminal according to a request of the first user terminal).
The device type identifier of the user terminal is used to describe the device type of the user terminal, and for example, the screen size and/or the operating system of the user terminal may be inferred based on the device type of the user terminal described by the device type identifier of the user terminal. For example, the device type of the user terminal described by the device type identifier of the user terminal (e.g., the first user terminal or the second user terminal, etc.) may be a mobile communication terminal, a personal computer, a tablet computer, or the like, and generally speaking, the screen of the mobile communication terminal is smaller than that of the tablet computer, and the screen of the tablet computer is smaller than that of the personal computer.
402. The first user terminal sends a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries a source code of a first webpage and a device type identifier and a communication identifier of a second user terminal.
403. The adaptation server receives the webpage adaptation transmission request from the first user terminal; and the adaptation server converts the source code of the first webpage into the source code of the second webpage which is adapted to the device type described by the device type identification of the second user terminal based on the device type identification of the second user terminal.
For example, the adapting server converts the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal, which may include, for example: adjusting a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjusting a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjusting a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjusting a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjusting a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter), and/or adjusting a CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adaptive according to the terminal device type) to obtain a source code of the second web page that is adapted to the device type described by the device type identification of the second user terminal.
404. And the adaptation server sends the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal.
For example, assuming that the first user terminal is a personal computer, the second user terminal is a mobile phone, the first webpage is a WWW webpage, and the adaptation server may convert the source code of the first webpage into the source code of the HTML5 webpage or the source code of the WAP webpage based on the device type identifier of the second user terminal, so that the user experience of the second user terminal browsing the second webpage may be much improved compared to the user experience of browsing the first webpage, because the HTML5 webpage or the WAP webpage is more adapted to the device type of the second user terminal. Therefore, based on the scheme of the embodiment, when the webpage is transmitted between the multi-user terminals, the webpage read by the first user terminal can be converted into the webpage suitable for the second user terminal to read, so that the webpage is suitable for the second user terminal to view on the current screen, and the browsing experience of the webpage is improved.
It can be seen that, in this embodiment, after receiving a web page adaptation transmission request carrying a source code of a first web page and a device type identifier and a communication identifier of a second user terminal from a first user terminal, an adaptation server acquires a source code of a second web page adapted to a device type described by a device type identifier of the second user terminal based on a network address of the first web page, where the source code of the first web page is a source code of the first web page or a source code of the first web page; and transmitting the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal. The first user terminal transmits the source code of the second webpage which corresponds to the source code of the first webpage and is matched with the device type described by the device type identification of the second user terminal to the second user terminal by means of the matching server, so that the webpage read by the first user terminal is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen of the second user terminal to view, the matching degree of the transmitted webpage and the type of the user terminal between the user terminals of different types can be improved, and the webpage reading experience of the user is improved.
The following also provides a related apparatus for implementing the above-described scheme.
Referring to fig. 5, an embodiment of the present invention further provides a user terminal 500, which may include: an acquisition unit 510 and a transmission unit 520.
The obtaining unit 510 is configured to obtain a device type identifier and a communication identifier of the second user terminal.
A sending unit 520, configured to send a web page adaptation transmission request to an adaptation server, where the web page adaptation transmission request carries relevant information of a first web page and a device type identifier and a communication identifier of a second user terminal, so that, after the adaptation server receives the web page adaptation transmission request from the user terminal 500, based on the relevant information, the adaptation server obtains a source code of the second web page adapted to the device type described by the device type identifier of the second user terminal, and sends the source code of the second web page to the second user terminal based on the communication identifier of the second user terminal, where the relevant information of the first web page is a first network address of the first web page or the source code of the first web page.
In some embodiments of the present invention, the obtaining unit 510 may specifically be configured to: acquiring a device type identifier and a communication identifier of a second user terminal input by a user; or after the communication connection is established with the second user terminal, the device type identifier and the communication identifier of the second user terminal are acquired from the second user terminal.
In some embodiments of the present invention, in the aspect of sending the web page adaptation transmission request to the adaptation server, the sending unit 520 may be specifically configured to send the web page adaptation transmission request to the adaptation server when it is determined that the device types of the user terminal and the second user terminal are different based on the device type identifier of the second user terminal.
It can be understood that the functions of the functional modules of the user terminal 500 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
It can be seen that, in this embodiment, after the user terminal 500 acquires the device type identifier and the communication identifier of the second user terminal; sending a webpage adaptation transmission request carrying the related information of the first webpage and the device type identifier and communication identifier of the second user terminal to an adaptation server, so that the adaptation server obtains the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information after receiving the webpage adaptation transmission request from the user terminal 500, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the related information of the first webpage is the first network address of the first webpage or the source code of the first webpage. The user terminal 500 transmits the source code of the second webpage, which corresponds to the source code of the first webpage and is matched with the device type described by the device type identifier of the second user terminal, to the second user terminal by means of the matching server, so that the webpage read by the user terminal 500 is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen of the second user terminal to view, the matching degree of the webpage transmitted between the user terminals of different types and the type of the user terminal can be improved, and the webpage reading experience of the user is further improved.
Referring to fig. 6, an embodiment of the present invention further provides an adaptation server 600, which may include:
a receiving unit 610, an obtaining unit 620 and a sending unit 630.
A receiving unit 610, configured to receive a web page adaptation transmission request from a first user terminal, where the web page adaptation transmission request carries relevant information of a first web page and a device type identifier and a communication identifier of a second user terminal, and the relevant information of the first web page is a first network address of the first web page or a source code of the first web page;
an obtaining unit 620, configured to obtain, based on the relevant information of the first web page, a source code of the second web page adapted to the device type described by the device type identifier of the second user terminal;
a sending unit 630, configured to send the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal.
In some embodiments of the present invention, if the related information of the first web page is a first network address of the first web page, the obtaining unit 620 may be specifically configured to, if the site server provides a source code of the first web page and a source code of a second web page mapped with the first network address, where the source code of the second web page is adapted to the device type described by the device type identifier of the second user terminal, obtain the source code of the second web page from the site server based on the first network address; or, the source code of the first webpage mapped with the first network address is obtained from the site server based on the first network address, and the source code of the first webpage is converted into the source code of the second webpage which is adaptive to the device type described by the device type identifier of the second user terminal.
In other embodiments of the present invention, if the related information of the first web page is a source code of the first web page, the obtaining unit 620 may be specifically configured to convert the source code of the first web page into a source code of a second web page that is adapted to a device type described by a device type identifier of the second user terminal.
In some embodiments of the present invention, in the aspect of converting the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal, the obtaining unit 620 may be specifically configured to adjust a webpage overall frame parameter in the source code of the first webpage, adjust a webpage width parameter in the source code of the first webpage, adjust a webpage font parameter in the source code of the first webpage, adjust a layout parameter in the source code of the first webpage, adjust a picture scaling parameter in the source code of the first webpage, and/or adjust a CSS style adaptation parameter in the source code of the first webpage, so as to obtain the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal.
For example, the obtaining unit 620 converts the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal, which may include: adjusting a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjusting a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjusting a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjusting a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjusting a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter), and/or adjusting a CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adaptive according to the terminal device type) to obtain a source code of the second web page that is adapted to the device type described by the device type identification of the second user terminal.
It can be understood that the functions of the functional modules of the adaptation server 600 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
It can be seen that, in this embodiment, after receiving a web page adaptation transmission request carrying relevant information of a first web page and device type identifiers and communication identifiers of a second user terminal from a first user terminal, the adaptation server 600 acquires a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal based on the relevant information of the first web page, where the relevant information of the first web page is a first network address of the first web page or a source code of the first web page; and transmitting the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal. The first user terminal transmits the source code of the second webpage which corresponds to the source code of the first webpage and is matched with the device type described by the device type identification of the second user terminal to the second user terminal by means of the matching server, so that the webpage read by the first user terminal is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen of the second user terminal to view, the matching degree of the transmitted webpage and the type of the user terminal between the user terminals of different types can be improved, and the webpage reading experience of the user is improved.
Fig. 7 illustrates a structure of a user terminal 700 according to an embodiment of the present invention, where the user terminal 700 includes: at least 1 processor 701, e.g., a CPU, at least one network interface 704 or other user interface 703, memory 705, at least one communication bus 702. A communication bus 702 is used to enable connective communication between these components. The user terminal 700 optionally comprises a user interface 703 including a display, a keyboard or a pointing device (e.g. a mouse, trackball, touch pad or touch screen). The memory 705 may comprise a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. The memory 705 may optionally include at least one memory device located remotely from the processor 701.
In some embodiments, memory 705 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
an operating system 7051, which contains various system programs for implementing various basic services and for processing hardware-based tasks;
application module 7052 contains various applications for implementing various application services.
The application module 7052 includes, but is not limited to, an acquiring unit 510 and a transmitting unit 520.
For specific implementation of each module in the application module 7052, refer to corresponding modules in the embodiment shown in fig. 5, which are not described herein again.
In some embodiments of the present invention, the processor 701 may be configured to obtain a device type identifier and a communication identifier of the second user terminal by calling a program or an instruction stored in the memory 705; and sending a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries relevant information of a first webpage and a device type identifier and a communication identifier of a second user terminal, so that the adaptation server obtains a source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the relevant information after receiving the webpage adaptation transmission request from the user terminal 700, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, and the relevant information of the first webpage is a first network address of the first webpage or the source code of the first webpage.
When the user terminal 700 wishes to transmit a currently browsed or browsed webpage to the second user terminal for browsing, or the second user terminal wishes to browse a currently browsed or browsed webpage of the user terminal 700, the user terminal 700 may obtain the device type identifier and the communication identifier of the second user terminal. The user terminal 700 and the second user terminal may be a personal computer, a mobile communication terminal, or a tablet computer, etc.
The user terminal 700 and the second user terminal may be located in the same local area network, or may be located in different local area networks.
In some embodiments of the present invention, the obtaining, by the processor 701, the device type identifier and the communication identifier of the second user terminal may include: the processor 701 obtains a device type identifier and a communication identifier of a second user terminal input by a user; or, after establishing a communication connection with the second user terminal, the processor 701 obtains the device type identifier and the communication identifier of the second user terminal from the second user terminal (for example, the second user terminal may actively send the device type identifier and the communication identifier of the second user terminal to the user terminal 700, or the second user terminal may also send the device type identifier and the communication identifier of the second user terminal to the user terminal 700 according to the request of the processor 701).
The device type identifier of the user terminal is used to describe the device type of the user terminal, and for example, the screen size and/or the operating system of the user terminal may be inferred based on the device type of the user terminal described by the device type identifier of the user terminal. For example, the device type of the user terminal (e.g., the user terminal 700 or the second user terminal, etc.) described by the device type identifier of the user terminal may be a mobile communication terminal, a personal computer, a tablet computer, or the like, and generally speaking, the screen of the mobile communication terminal is smaller than that of the tablet computer, and the screen of the tablet computer is smaller than that of the personal computer.
In some embodiments of the present invention, the sending the web page adaptation transmission request to the adaptation server may include: when the device type identifier of the second user terminal determines that the device types of the user terminal 700 and the second user terminal are different (for example, the user terminal 700 is a personal computer, the second user terminal is a mobile communication terminal or a tablet computer, etc.), a web page adaptation transmission request is sent to the adaptation server. Of course, the first ue may default to the ue 700 and the second ue having different device types, so that the processor 701 may not need to determine whether the ue 700 and the second ue have different device types before sending the web page adaptation transmission request to the adaptation server.
In some embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the acquiring, by the adaptation server, the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage may include: if the site server provides a source code of a first webpage and a source code of a second webpage which are mapped with a first network address (namely, the source code of the first webpage and the source code of the second webpage both correspond to the first network address, and certainly, the main contents of the first webpage and the main contents of the second webpage are the same, but the formats of the first webpage and the second webpage are different), wherein the source code of the second webpage is adapted to the device type described by the device type identifier of the second user terminal, and the source code of the second webpage is obtained from the site server based on the first network address;
in other embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the adapting server obtains the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage, which may include: and acquiring a source code of the first webpage mapped with the first network address from the site server based on the first network address, and converting the source code of the first webpage into a source code of a second webpage adapted to the device type described by the device type identifier of the second user terminal.
In other embodiments of the present invention, if the related information of the first webpage is specifically the source code of the first webpage, the acquiring, by the adaptation server, the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage may include: the adaptation server converts the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identification of the second user terminal.
For example, the adapting server converts the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal, which may include, for example: adjusting a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjusting a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjusting a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjusting a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjusting a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter), and/or adjusting a CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adaptive according to the terminal device type) to obtain a source code of the second web page that is adapted to the device type described by the device type identification of the second user terminal.
It can be understood that the functions of the functional modules of the user terminal 700 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
It can be seen that, in this embodiment, after the user terminal 700 obtains the device type identifier and the communication identifier of the second user terminal; and sending a webpage adaptation transmission request carrying the related information of the first webpage and the device type identifier and communication identifier of the second user terminal to an adaptation server, so that the adaptation server obtains the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information after receiving the webpage adaptation transmission request from the user terminal 700, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the related information of the first webpage is the first network address of the first webpage or the source code of the first webpage. The user terminal 700 transmits the source code of the second webpage, which corresponds to the source code of the first webpage and is adapted to the device type described by the device type identifier of the second user terminal, to the second user terminal by means of the adaptation server, so that the webpage read by the user terminal 700 is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen of the second user terminal to view, the adaptation degree of the webpage transmitted between the user terminals of different types and the type of the user terminal can be improved, and the webpage reading experience of the user is further improved.
Fig. 8 illustrates a structure of an adaptation server 800 according to an embodiment of the present invention, where the adaptation server 800 includes: at least 1 processor 801, such as a CPU, at least one network interface 804 or other user interface 803, memory 805, at least one communication bus 802. A communication bus 802 is used to enable connective communication between these components. The adaptation server 800 optionally contains, among other things, a user interface 803 including a display, a keyboard or a pointing device (e.g., a mouse, trackball, touch pad or touch screen). Memory 805 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 805 may optionally include at least one memory device located remotely from the processor 801 as previously described.
In some embodiments, memory 805 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
an operating system 8051, which contains various system programs for implementing various basic services and for handling hardware-based tasks;
application module 8052 contains various applications for implementing various application services.
Included in application modules 8052, but not limited to, a receiving unit 610, an obtaining unit 620, and a sending unit 630. For specific implementation of each module in the application program module 8052, refer to the corresponding module in the embodiment shown in fig. 6, which is not described herein again.
In some embodiments of the present invention, the processor 801 may be configured to receive a web page adaptation transmission request from a first user terminal by invoking a program or an instruction stored in the memory 805, where the web page adaptation transmission request carries related information of a first web page and a device type identifier and a communication identifier of a second user terminal, and the related information of the first web page is a first network address of the first web page or a source code of the first web page; acquiring a source code of a second webpage which is adaptive to the device type described by the device type identification of the second user terminal based on the related information of the first webpage; and transmitting the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal.
When the first user terminal wishes to transmit a currently browsed or browsed webpage to the second user terminal for browsing, or the second user terminal wishes to browse a webpage currently browsed or browsed by the first user terminal, the first user terminal can acquire the device type identifier and the communication identifier of the second user terminal, and send a webpage adaptation transmission request carrying the related information of the first webpage and the device type identifier and the communication identifier of the second user terminal to the adaptation server. The first user terminal and the second user terminal may be a personal computer, a mobile communication terminal, a tablet computer, or the like.
The first user terminal and the second user terminal may be located in the same local area network, or may be located in different local area networks.
The device type identifier of the user terminal is used to describe the device type of the user terminal, and for example, the screen size and/or the operating system of the user terminal may be inferred based on the device type of the user terminal described by the device type identifier of the user terminal. For example, the device type of the user terminal described by the device type identifier of the user terminal (e.g., the first user terminal or the second user terminal, etc.) may be a mobile communication terminal, a personal computer, a tablet computer, or the like, and generally speaking, the screen of the mobile communication terminal is smaller than that of the tablet computer, and the screen of the tablet computer is smaller than that of the personal computer.
In some embodiments of the present invention, the processor 801 receiving the web page adaptation transmission request from the first user terminal may include: the processor 801 receives a web page adaptation transmission request sent by a first user terminal after determining that the device types of the first user terminal and the second user terminal are different based on the device type identifier of the second user terminal (for example, the first user terminal is a personal computer, the second user terminal is a mobile communication terminal or a tablet computer, and the like). Of course, the first user terminal may default that the device types of the first user terminal and the second user terminal are different, so that it is not necessary to determine whether the device types of the first user terminal and the second user terminal are different before the first user terminal sends the web page adaptation transmission request to the adaptation server.
In other embodiments of the present invention, the obtaining, by the processor 801, the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal based on the relevant information of the first web page may include: and after judging that the equipment types of the first user terminal and the second user terminal are different based on the equipment type identification of the second user terminal, acquiring a source code of a second webpage which is adaptive to the equipment type described by the equipment type identification of the second user terminal based on the related information of the first webpage. Of course, the processor 801 may default that the device types of the first user terminal and the second user terminal are different, and thus, before the processor 801 obtains the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage, it may not be necessary to determine whether the device types of the first user terminal and the second user terminal are different.
In some embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the obtaining, by the processor 801, the source code of the second webpage, which is adapted to the device type described by the device type identifier of the second user terminal, based on the related information of the first webpage, may include: if the site server provides a source code of a first webpage and a source code of a second webpage which are mapped with a first network address (namely, the source code of the first webpage and the source code of the second webpage both correspond to the first network address, and certainly, the main contents of the first webpage and the main contents of the second webpage are the same, but the formats of the first webpage and the second webpage are different), wherein the source code of the second webpage is adapted to the device type described by the device type identifier of the second user terminal, and the source code of the second webpage is obtained from the site server based on the first network address;
in other embodiments of the present invention, if the related information of the first webpage is the first network address of the first webpage, the obtaining, by the processor 801, the source code of the second webpage, which is adapted to the device type described by the device type identifier of the second user terminal, based on the related information of the first webpage, may include: and acquiring a source code of the first webpage mapped with the first network address from the site server based on the first network address, and converting the source code of the first webpage into a source code of a second webpage adapted to the device type described by the device type identifier of the second user terminal.
In other embodiments of the present invention, if the related information of the first webpage is specifically the source code of the first webpage, the obtaining, by the processor 801, the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage may include: the adaptation server converts the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identification of the second user terminal.
For example, the processor 801 converts the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal, which may include, for example: adjusting a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjusting a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjusting a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjusting a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjusting a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter), and/or adjusting a CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adaptive according to the terminal device type) to obtain a source code of the second web page that is adapted to the device type described by the device type identification of the second user terminal.
It can be understood that the functions of the functional modules of the adaptation server 800 of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
It can be seen that, in this embodiment, after receiving a web page adaptation transmission request carrying the relevant information of the first web page and the device type identifier and communication identifier of the second user terminal from the first user terminal, the adaptation server 800 acquires the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal based on the relevant information of the first web page, where the relevant information of the first web page is the first network address of the first web page or the source code of the first web page; and transmitting the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal. The first user terminal transmits the source code of the second webpage which corresponds to the source code of the first webpage and is matched with the device type described by the device type identification of the second user terminal to the second user terminal by means of the matching server, so that the webpage read by the first user terminal is converted into the webpage suitable for the second user terminal to read, the webpage is suitable for the current screen of the second user terminal to view, the matching degree of the transmitted webpage and the type of the user terminal between the user terminals of different types can be improved, and the webpage reading experience of the user is improved.
The embodiment of the present invention further provides a mobile communication terminal 900, and the mobile communication terminal 900 may be used to implement part or all of the functions of the user terminal in the above embodiments. As shown in fig. 9, for convenience of illustration, only some portions that may be relevant to the embodiments of the present invention are shown, and some specific technical details are not disclosed, please refer to the method portion of the embodiments of the present invention.
Referring to fig. 9, the mobile communication terminal 900 includes Radio Frequency (RF) circuit 910, memory 920, input unit 930, wireless fidelity (WiFi) module 970, display unit 940, sensor 950, audio circuit 960, processor 980, and power supply 990.
It will be understood by those skilled in the art that the structure of the mobile communication terminal 900 shown in fig. 9 is not limited to a mobile phone, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
The RF circuit 910 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information to the processor 980; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit may include, but is not limited to, an antenna, at least 1 amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. RF circuitry 910 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), Short Messaging Service (SMS), email, etc.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (e.g., audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile communication terminal 900. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (e.g., a user's operation on or near the touch panel 931 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 930 may include other input devices 932 in addition to the touch panel 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among them, the display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 931 may cover the display panel 941, and when the touch panel 931 detects a touch operation on or near the touch panel 931, the touch panel transmits the touch operation to the processor 980 to determine the type of the touch event, and then the processor 980 provides a corresponding visual output on the display panel 941 according to the type of the touch event. Although in fig. 9, the touch panel 931 and the display panel 941 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 may be integrated to implement the input and output functions of the mobile phone.
The mobile communication terminal 900 may further include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors, among others. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 941 and/or backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in each direction (generally, three axes), detect the gravity and direction when the mobile phone is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the posture of the mobile phone; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer and an infrared sensor, which can be configured on the mobile phone, detailed description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to, for example, another mobile phone through the RF circuit 910, or outputs the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 9 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the mobile communication terminal 900 and can be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications.
It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The mobile communication terminal 900 further includes a power supply 990 (e.g., a battery) for supplying power to various components.
Preferably, the power supply may be logically connected to the processor 980 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system. Although not shown, the mobile communication terminal 900 may further include a camera, a bluetooth module, etc., which will not be described herein.
The processor 980 may be configured to obtain a device type identifier and a communication identifier of the second user terminal; and sending a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries relevant information of a first webpage and a device type identifier and a communication identifier of a second user terminal, so that the adaptation server obtains a source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the relevant information after receiving the webpage adaptation transmission request from the first user terminal, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, and the relevant information of the first webpage is a first network address of the first webpage or the source code of the first webpage.
When the mobile communication terminal 900 wishes to transmit a currently browsed or browsed webpage to the second user terminal for browsing, or the second user terminal wishes to browse a currently browsed or browsed webpage of the mobile communication terminal 900, the mobile communication terminal 900 may obtain the device type identifier and the communication identifier of the second user terminal. The mobile communication terminal 900 and the second user terminal may be a personal computer, a mobile communication terminal, a tablet computer, or the like.
The mobile communication terminal 900 and the second user terminal may be located in the same lan or may be located in different lans.
In some embodiments of the present invention, the obtaining, by the processor 980, the device type identifier and the communication identifier of the second user terminal may include: the processor 980 obtains the device type identifier and the communication identifier of the second user terminal input by the user; or, the processor 980 obtains the device type identifier and the communication identifier of the second user terminal from the second user terminal after establishing a communication connection with the second user terminal (for example, the second user terminal may actively send the device type identifier and the communication identifier of the second user terminal to the mobile communication terminal 900, or the second user terminal may also send the device type identifier and the communication identifier of the second user terminal to the mobile communication terminal 900 according to the request of the processor 980).
The device type identifier of the user terminal is used to describe the device type of the user terminal, and for example, the screen size and/or the operating system of the user terminal may be inferred based on the device type of the user terminal described by the device type identifier of the user terminal. For example, the device type of the user terminal (e.g., the mobile communication terminal 900 or the second user terminal, etc.) described by the device type identifier of the user terminal may be a mobile communication terminal, a personal computer, a tablet computer, or the like, and generally, the screen of the mobile communication terminal is smaller than that of the tablet computer, and the screen of the tablet computer is smaller than that of the personal computer.
In some embodiments of the present invention, the sending the web page adaptation transmission request to the adaptation server may include: when the device type identifier of the second user terminal determines that the device types of the mobile communication terminal 900 and the second user terminal are different (for example, the mobile communication terminal 900 is a personal computer, the second user terminal is a mobile communication terminal or a tablet computer, etc.), a web page adaptation transmission request is sent to the adaptation server. Of course, the first user terminal may default that the device types of the mobile communication terminal 900 and the second user terminal are different, so that the processor 980 does not need to determine whether the device types of the mobile communication terminal 900 and the second user terminal are different before sending the web page adaptation transmission request to the adaptation server.
Referring to fig. 10, an embodiment of the present invention further provides a communication system, which may include:
a first user terminal 1010, a second user terminal 1020, and an adaptation server 1030.
The first user terminal 1010 is configured to obtain a device type identifier and a communication identifier of the second user terminal 1020; sending a web page adaptation transmission request to the adaptation server 1030, wherein the web page adaptation transmission request carries the relevant information of the first web page and the device type identifier and the communication identifier of the second user terminal;
the adaptation server 1030 is configured to, after receiving the web page adaptation transmission request from the first user terminal 1010, obtain, based on the related information, a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal 1020, and send, based on the communication identifier of the second user terminal 1020, the source code of the second web page to the second user terminal 1020, where the related information of the first web page is a first network address of the first web page or the source code of the first web page.
In some embodiments of the present invention, in the aspect of acquiring the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal 1020 based on the related information if the related information of the first web page is the first network address of the first web page, the adaptation server 1030 is specifically configured to acquire the source code of the second web page from the site server based on the first network address if the site server provides the source code of the first web page and the source code of the second web page mapped with the first network address, where the source code of the second web page is adapted to the device type described by the device type identifier of the second user terminal 1020; or, the source code of the first web page mapped with the first network address is obtained from the site server based on the first network address, and the source code of the first web page is converted into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal 1020.
In other embodiments of the present invention, if the related information of the first web page is the first network address of the first web page, in terms of acquiring the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal 1020 based on the related information of the first web page, the adaptation server 1030 is specifically configured to acquire the source code of the first web page mapped with the first network address from the site server based on the first network address, and convert the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal 1020.
In other embodiments of the present invention, if the related information of the first web page is specifically the source code of the first web page, in terms of acquiring the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal 1020 based on the related information of the first web page, the adaptation server 1030 is specifically configured to convert the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal 1020.
For example, in terms of converting the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal 1020, the adaptation server 1030 is specifically configured to adjust a web page overall frame parameter in the source code of the first web page (e.g., the web page overall frame parameter may be adjusted to an adaptive web page overall frame parameter), adjust a web page width parameter in the source code of the first web page (e.g., the web page width parameter may be adjusted to an adaptive web page width parameter, or an absolute width may be adjusted to a relative width), adjust a web page font parameter in the source code of the first web page (e.g., an absolute font may be adjusted to a relative font), adjust a layout parameter in the source code of the first web page (e.g., a fixed layout may be adjusted to a streaming layout), adjust a picture scaling parameter in the source code of the first web page (e.g., the picture scaling parameter may be adjusted to an adaptive picture scaling parameter) ) And/or adjusting the CSS style adaptation parameter in the source code of the first web page (after adjusting the CSS style adaptation parameter, the CSS style may be adapted according to the terminal device type) to obtain the source code of the second web page that is adapted to the device type described by the device type identifier of the second user terminal 1020.
The embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of the web page adaptation transmission method described in the above method embodiment.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. A method for adaptive transmission of web pages, comprising:
the method comprises the steps that a first user terminal obtains a device type identifier and a communication identifier of a second user terminal;
sending a webpage adaptation transmission request to an adaptation server, wherein the webpage adaptation transmission request carries related information of a first webpage and a device type identifier and a communication identifier of a second user terminal, so that the adaptation server acquires a source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal based on the related information after receiving the webpage adaptation transmission request from the first user terminal, and sends the source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal, wherein the related information of the first webpage is a first network address of the first webpage or the source code of the first webpage;
and the source code of the second webpage and the source code of the first webpage correspond to a first network address.
2. The method according to claim 1, wherein the obtaining, by the first user terminal, the device type identifier and the communication identifier of the second user terminal comprises: the method comprises the steps that a first user terminal obtains a device type identifier and a communication identifier of a second user terminal, which are input by a user; or after the first user terminal establishes communication connection with the second user terminal, acquiring the device type identifier and the communication identifier of the second user terminal from the second user terminal.
3. The method according to claim 1 or 2, wherein the sending of the web page adaptation transmission request to the adaptation server comprises: and sending a webpage adaptation transmission request to an adaptation server when the equipment type of the first user terminal is judged to be different from that of the second user terminal based on the equipment type identification of the second user terminal.
4. A method for adaptive transmission of web pages, comprising:
the method comprises the steps that an adaptation server receives a webpage adaptation transmission request from a first user terminal, wherein the webpage adaptation transmission request carries relevant information of a first webpage and equipment type identification and communication identification of a second user terminal, and the relevant information of the first webpage is a first network address of the first webpage or a source code of the first webpage;
acquiring a source code of a second webpage which is adaptive to the device type described by the device type identifier of the second user terminal based on the related information of the first webpage; sending the source code of the second webpage to the second user terminal based on the communication identification of the second user terminal;
and the source code of the second webpage and the source code of the first webpage correspond to a first network address.
5. The method of claim 4,
if the relevant information of the first webpage is the first network address of the first webpage, the obtaining of the source code of the second webpage, which is adapted to the device type described by the device type identifier of the second user terminal, based on the relevant information of the first webpage includes: if the site server provides a source code of a first webpage and a source code of a second webpage which are mapped with the first network address, wherein the source code of the second webpage is matched with the device type described by the device type identification of the second user terminal, the source code of the second webpage is obtained from the site server based on the first network address;
or,
and acquiring the source code of the first webpage mapped with the first network address from the site server based on the first network address, and converting the source code of the first webpage into the source code of the second webpage which is adaptive to the device type described by the device type identifier of the second user terminal.
6. The method of claim 4, wherein if the related information of the first webpage is the source code of the first webpage,
the obtaining, based on the related information of the first web page, a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal includes: and converting the source code of the first webpage into the source code of the second webpage which is adaptive to the device type described by the device type identification of the second user terminal.
7. The method according to claim 5 or 6, wherein the converting the source code of the first webpage into the source code of the second webpage adapted to the device type described by the device type identifier of the second user terminal comprises:
adjusting the web page overall frame parameter in the source code of the first web page, adjusting the web page width parameter in the source code of the first web page, adjusting the web page font parameter in the source code of the first web page, adjusting the layout parameter in the source code of the first web page, adjusting the picture scaling parameter in the source code of the first web page and/or adjusting the CSS style adaptive parameter in the source code of the first web page, so as to obtain the source code of the second web page, which is adaptive to the device type described by the device type identifier of the second user terminal.
8. A user terminal, comprising:
the acquisition unit is used for acquiring the equipment type identifier and the communication identifier of the second user terminal;
a sending unit, configured to send a web page adaptation transmission request to an adaptation server, where the web page adaptation transmission request carries relevant information of a first web page and a device type identifier and a communication identifier of the second user terminal, so that, after receiving the web page adaptation transmission request from the user terminal, the adaptation server obtains, based on the relevant information, a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal, and sends, based on the communication identifier of the second user terminal, the source code of the second web page to the second user terminal, where the relevant information of the first web page is a first network address of the first web page or the source code of the first web page;
and the source code of the second webpage and the source code of the first webpage correspond to a first network address.
9. The user terminal of claim 8,
the obtaining unit is specifically configured to: acquiring a device type identifier and a communication identifier of a second user terminal input by a user; or after establishing communication connection with the second user terminal, acquiring the device type identifier and the communication identifier of the second user terminal from the second user terminal.
10. The ue according to claim 8 or 9, wherein in the aspect of sending the web page adaptation transmission request to the adaptation server, the sending unit is specifically configured to send the web page adaptation transmission request to the adaptation server when it is determined that the device types of the ue and the second ue are different based on the device type identifier of the second ue.
11. An adaptation server, comprising:
a receiving unit, configured to receive a web page adaptation transmission request from a first user terminal, where the web page adaptation transmission request carries relevant information of a first web page and a device type identifier and a communication identifier of a second user terminal, and the relevant information of the first web page is a first network address of the first web page or a source code of the first web page;
an obtaining unit, configured to obtain, based on the relevant information of the first web page, a source code of a second web page that is adapted to a device type described by the device type identifier of the second user terminal;
a sending unit, configured to send a source code of the second webpage to the second user terminal based on the communication identifier of the second user terminal;
and the source code of the second webpage and the source code of the first webpage correspond to a first network address.
12. The adaptation server of claim 11,
if the related information of the first web page is the first network address of the first web page, the obtaining unit is specifically configured to, if a site server provides a source code of the first web page and a source code of a second web page mapped with the first network address, where the source code of the second web page is adapted to the device type described by the device type identifier of the second user terminal, obtain the source code of the second web page from the site server based on the first network address;
or, the source code of the first webpage mapped with the first network address is obtained from the site server based on the first network address, and the source code of the first webpage is converted into the source code of the second webpage which is adaptive to the device type described by the device type identifier of the second user terminal.
13. The adaptation server according to claim 11, wherein if the related information of the first web page is the source code of the first web page, the obtaining unit is specifically configured to convert the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identifier of the second user terminal.
14. An adaptation server according to claim 12 or 13, characterized in that, in said converting the source code of the first web page into the source code of the second web page adapted to the device type described by the device type identification of the second user terminal, the obtaining unit is specifically configured to,
adjusting the web page overall frame parameter in the source code of the first web page, adjusting the web page width parameter in the source code of the first web page, adjusting the web page font parameter in the source code of the first web page, adjusting the layout parameter in the source code of the first web page, adjusting the picture scaling parameter in the source code of the first web page and/or adjusting the CSS style adaptive parameter in the source code of the first web page, so as to obtain the source code of the second web page, which is adaptive to the device type described by the device type identifier of the second user terminal.
15. A communication system, comprising:
the system comprises a first user terminal, a second user terminal and an adaptive server;
the first user terminal is used for acquiring a device type identifier and a communication identifier of the second user terminal; sending a webpage adaptation transmission request to the adaptation server, wherein the webpage adaptation transmission request carries the relevant information of the first webpage and the equipment type identifier and the communication identifier of the second user terminal;
the adaptation server is configured to, after receiving a web page adaptation transmission request from the first user terminal, obtain, based on the relevant information, a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal, and send, based on a communication identifier of the second user terminal, the source code of the second web page to the second user terminal, where the relevant information of the first web page is a first network address of the first web page or the source code of the first web page;
and the source code of the second webpage and the source code of the first webpage correspond to a first network address.
16. The communication system of claim 15,
if the related information of the first web page is a first network address of the first web page, in the aspect of acquiring a source code of a second web page adapted to the device type described by the device type identifier of the second user terminal based on the related information, the adaptation server is specifically configured to, if a site server provides the source code of the first web page and the source code of the second web page mapped with the first network address, wherein the source code of the second web page is adapted to the device type described by the device type identifier of the second user terminal, acquire the source code of the second web page from the site server based on the first network address; or, the source code of the first webpage mapped with the first network address is obtained from the site server based on the first network address, and the source code of the first webpage is converted into the source code of the second webpage which is adaptive to the device type described by the device type identifier of the second user terminal.
CN201310548216.7A 2013-11-06 2013-11-06 Webpage fit transmission method and relevant apparatus and communication system Active CN104601636B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310548216.7A CN104601636B (en) 2013-11-06 2013-11-06 Webpage fit transmission method and relevant apparatus and communication system
PCT/CN2014/085378 WO2015067090A1 (en) 2013-11-06 2014-08-28 Methods and systems for adpating and transmitting webpages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310548216.7A CN104601636B (en) 2013-11-06 2013-11-06 Webpage fit transmission method and relevant apparatus and communication system

Publications (2)

Publication Number Publication Date
CN104601636A CN104601636A (en) 2015-05-06
CN104601636B true CN104601636B (en) 2018-12-11

Family

ID=53040870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310548216.7A Active CN104601636B (en) 2013-11-06 2013-11-06 Webpage fit transmission method and relevant apparatus and communication system

Country Status (2)

Country Link
CN (1) CN104601636B (en)
WO (1) WO2015067090A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859390A (en) * 2005-12-07 2006-11-08 华为技术有限公司 Method and device for providing net page browse information
CN101526952A (en) * 2009-01-19 2009-09-09 北京跳网无限科技发展有限公司 UA adaptation technology for identifying attribute of mobile phone terminal
CN101626521A (en) * 2009-08-11 2010-01-13 广州杰赛科技股份有限公司 Television network monitoring method, monitoring terminal and monitoring system
CN101815093A (en) * 2010-03-11 2010-08-25 深圳市嘉讯软件有限公司 Method for adapting webpage to mobile terminal and mobile terminal page adaptation device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100481088C (en) * 2007-06-07 2009-04-22 北京大学 Web page resource issuing method and issuing system
CN103078830B (en) * 2011-10-25 2016-07-27 阿里巴巴集团控股有限公司 Website information provides and sharing method, good friend's adding method and relevant device
CN102857579B (en) * 2012-09-27 2014-06-04 腾讯科技(深圳)有限公司 Information processing method, device, terminal and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859390A (en) * 2005-12-07 2006-11-08 华为技术有限公司 Method and device for providing net page browse information
CN101526952A (en) * 2009-01-19 2009-09-09 北京跳网无限科技发展有限公司 UA adaptation technology for identifying attribute of mobile phone terminal
CN101626521A (en) * 2009-08-11 2010-01-13 广州杰赛科技股份有限公司 Television network monitoring method, monitoring terminal and monitoring system
CN101815093A (en) * 2010-03-11 2010-08-25 深圳市嘉讯软件有限公司 Method for adapting webpage to mobile terminal and mobile terminal page adaptation device

Also Published As

Publication number Publication date
WO2015067090A1 (en) 2015-05-14
CN104601636A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN104518953B (en) Method for deleting message, instant communication terminal and system
CN108924037B (en) Display method of rich media communication RCS message and mobile terminal
CN105786878B (en) Display method and device of browsing object
CN104571979B (en) A kind of method and apparatus for realizing split view
CN113395337B (en) Method and device for preventing browser webpage from being hijacked, electronic equipment and storage medium
CN103455585A (en) Method, device and terminal for displaying commodity information
CN107967129A (en) Display control method and related product
CN109189303B (en) Text editing method and mobile terminal
CN106293738B (en) Expression image updating method and device
CN107229618B (en) Method and device for displaying page
CN106203228A (en) Two-dimensional code information transmission method, device and equipment
CN106155557A (en) A virtual button display method and mobile terminal
WO2015067142A1 (en) Webpage display method and device
CN109669656B (en) Information display method and terminal equipment
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN106326489A (en) Network resource updating method and device
CN105095161B (en) Method and device for displaying rich text information
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106339391B (en) Webpage display method and terminal equipment
CN105094872B (en) A kind of method and apparatus showing web application
CN106227534A (en) A kind of display screen division methods and terminal
CN107241394A (en) A kind of log transmission method, device and computer-readable recording medium
CN111966373A (en) APN resetting method, terminal equipment and storage medium
CN107346347B (en) Webpage table display method and device
CN106454953A (en) Flow control method, device and terminal

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