CN107124477A - Processing method, terminal and the server of web site contents - Google Patents

Processing method, terminal and the server of web site contents Download PDF

Info

Publication number
CN107124477A
CN107124477A CN201710203087.6A CN201710203087A CN107124477A CN 107124477 A CN107124477 A CN 107124477A CN 201710203087 A CN201710203087 A CN 201710203087A CN 107124477 A CN107124477 A CN 107124477A
Authority
CN
China
Prior art keywords
device type
terminal
web site
server
site contents
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710203087.6A
Other languages
Chinese (zh)
Inventor
梁洁辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710203087.6A priority Critical patent/CN107124477A/en
Publication of CN107124477A publication Critical patent/CN107124477A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

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

Abstract

The invention discloses the processing method of web site contents, terminal and server, by sending the content requests message comprising device type mark to server;Allow server to identify the device type for determining terminal according to the device type, and the web site contents being adapted with the device type are returned to terminal.It can so be identified because terminal is added in the content requests message of transmission with the device type of the notification server terminal equipment type, this allows for server after content requests message is received, it can be identified according to the device type in content requests message, directly return to the web site contents being adapted with the terminal, avoid needs to carry out secondary information interaction between server and terminal for same web site contents, Internet resources are saved, accelerate the loading of browsing device net page, the appearance of the situation of page bounce is it also avoid simultaneously, improve browser access effect, greatly improve Consumer's Experience.

Description

Processing method, terminal and the server of web site contents
Technical field
The present invention relates to communication technical field, more specifically to a kind of processing method of web site contents, terminal and clothes Business device.
Background technology
With the continuous popularization of various intelligent terminals, people are also constantly being lifted to the demand that browses of various websites.And by In different types of intelligent terminal, the Website page size that it is adapted to is also different, for example, the website pages that will adapt to computer Face is put in mobile phone and shown, then user is when seeing whole webpage, web page contents meeting very little, and user is difficult to see clearly;If user's pin Page amplification is carried out to the part, then again web page contents can be caused to show incomplete.Therefore, the website of current various more main flows, Its webpage designed all can it is various can only (such as desktop computer, various standard mobile phones, tablet device and television equipment in terminal Deng) on be adapted to, to meet the demand of different screen size.
However, in existing adaptation procedure, server is to be sent according to website domain name and different types of terminal phase The web site contents of adaptation, but user input website domain name be often with " www. " start desktop computer domain name, this If when the terminal that uses of user when being non-desktop computer, the terminal that the web site contents that server is returned will be currently used with user Mismatch, it is necessary to the terminal redirected after being parsed web site contents ask, allow server to resend and the terminal coupling Web site contents.
For example, user inputs www.jd.com in mobile phone browser, now browser can carry out DNS (Domain Name System, domain name system) parsing, the request for obtaining web site contents is sent to destination server.Destination server receives this please After asking, because domain name is the domain name of desktop computer, therefore the web page contents (such as HTML (Hyper that desktop computer will be adapted to Text Markup Language, HTML), CSS (Cascading Style Sheets, CSS), JavaScript and picture etc.) rung with HTTP (Hyper Text Transfer Protocol, HTTP) The mode answered is sent to after mobile phone browser, mobile phone browser parsing JavaScript, finds the User-Agent of current device (user agent) is mobile phone mobile terminal browser, then abandons current received web page contents, pass through HTML DOM The web site contents request of mobile terminal is redirected in (Document Object Model, DOM Document Object Model) position, now accesses Domain name becomes m.jd.com, and hereafter the web site contents of adaptation mobile terminal are issued mobile phone browser by server again.
From said process, in existing adaptation procedure, because the domain-name information that user inputs is often desktop electricity The domain name of brain, not the problem of not taking into account that the device type of terminal, therefore, once the terminal that user uses is not desktop computer, just It can cause to need to carry out secondary information interaction between server and terminal, greatly waste Internet resources;Also result in simultaneously The time of browser loading webpage is elongated, causes Consumer's Experience to decline.And in the case where network environment is bad, browser is even The page of desktop computer can be first shown, then can just redirect to be adapted to the page that the currently used terminal of user is browsed again Face, this, which results in user, can be clearly felt that the page is beated, and browser access effect is deteriorated, greatly influence Consumer's Experience.
The content of the invention
The technical problem to be solved in the present invention is:In existing web site contents adaptation procedure, once user's input The device type for the terminal that domain name is used with user is mismatched, then terminal and server can be caused to need to re-start a website The request and return of content, greatly waste Internet resources, mobile phone browser is accessed effect and are deteriorated, strong influence user Experience.
In order to solve the above technical problems, the present invention provides a kind of processing method of web site contents, methods described includes:
The website domain name information of terminal-pair user input parse obtaining purpose IP address information;
The terminal includes device type mark and institute according to the generation of the device type of the corresponding terminal of browser of setting State the content requests message of website domain name information;
The terminal sends the content requests message according to the purpose IP address information.
Alternatively, the device type mark is arranged in the header fields of the content requests message.
Alternatively, it is described the website domain name information that user inputs parse and obtain purpose IP address information before, The processing method of the web site contents also includes:
The operating system that the terminal detection browser is adapted in itself, the browser is set according to the operating system The device type of corresponding terminal;
And/or,
Browser detects the operating system itself being adapted to, according to the operating system setting that the browser is adapted to The device type of the corresponding terminal of browser.
Alternatively, the invention provides a kind of processing method of web site contents, methods described includes:
Server is parsed to the content requests message received, extracts the device type in the content requests message Mark and website domain name information;
The server identifies the device type for determining target terminal according to the device type;
The net that the server determines to be adapted with the device type according to the device type and website domain name information Stand content;
And send the web site contents to the target terminal.
Alternatively, the processing method of described web site contents also includes:
When the device type in the content requests message extracted is designated space-time, the server is according to described interior Hold the operating system that the device operating system information in request message determines target terminal;
And the device type of the target terminal is determined based on the operating system, and sent and institute to the target terminal State the web site contents that device type is adapted.
Alternatively, it is described to determine that the device type of the target terminal includes based on the operating system:
The server judges whether the operating system uniquely corresponds to a kind of device type;If so, according to the operation System determines the device type of target terminal;
Otherwise, the website domain name information in the content requests message determines the device type of target terminal.
Alternatively, the invention provides a kind of terminal, the terminal includes:
Domain name mapping module, the website domain name information for being inputted to user parse obtaining purpose IP address information;
Message generation module, the device type generation for the corresponding terminal of browser according to setting includes device type The content requests message of mark and website domain name information;
Message sending module, for sending the content requests message according to the purpose IP address information.
Alternatively, the invention provides a kind of server, the server includes:
Extraction module is parsed, for being parsed to the content requests message received, the content requests message is extracted In device type mark and website domain name information;
Processing module, the device type of target terminal is determined for being identified according to the device type, and is set according to described Standby type and website domain name information determine the web site contents being adapted with the device type,
Sending module, for sending the web site contents to the target terminal.
Alternatively, the processing module that sends is used to identify the equipment class for determining target terminal according to the device type Type, and determine that the web site contents being adapted with the device type include according to the device type and website domain name information:
Space-time is designated for the device type in the content requests message that the parsing extraction module is extracted, Device operating system information in the content requests message determines the operating system of target terminal;
It is additionally operable to determine the device type of the target terminal based on the operating system;
It is additionally operable to be determined in the website that is adapted with the device type according to the device type and website domain name information Hold.
Alternatively, the processing module is used to be determined and the equipment class according to the device type and website domain name information The web site contents that type is adapted include:
For judging whether the operating system uniquely corresponds to a kind of device type;
It is additionally operable to, when judged result is to be, the device type of target terminal be determined according to the operating system;
It is additionally operable to when judged result is no, the website domain name information in the content requests message determines that target is whole The device type at end.
Beneficial effect
Processing method, terminal and the server for the web site contents that the present invention is provided, terminal pass through the website that is inputted to user Domain-name information parse obtaining purpose IP address information, and is generated according to the device type of the corresponding terminal of browser of setting The content requests message with website domain name information is identified comprising device type, further according to purpose IP address information to content requests report Text is transmitted;Server parses the content requests message, and extract after the content requests message of terminal transmission is received Device type is identified, and identifies the device type for determining terminal according to the device type, and device type and website domain name information to Terminal returns to the web site contents being adapted with the device type.So because terminal is added in the content requests message of transmission Can be with the device type mark of the notification server terminal equipment type, this allows for server and is receiving content requests message Afterwards, it can be identified according to the device type in content requests message, directly return to the web site contents being adapted with the terminal, keep away Exempt to need to carry out secondary information interaction for same web site contents between server and terminal, saved Internet resources;And by The web site contents being adapted with terminal are can obtain by once asking in it, this also causes browser to load the time of webpage more It is short, while it also avoid the appearance of the situation of page bounce, browser access effect is improved, user's body is greatly improved Test.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the structural representation for realizing the optional terminal of each embodiment one of the invention;
Fig. 2 is the structural representation for realizing the optional server of each embodiment one of the invention;
Fig. 3 is the interactive structure schematic diagram for realizing each embodiment one of the invention optional user, terminal and server;
A kind of schematic flow sheet of the processing method for web site contents that Fig. 4 provides for first embodiment of the invention;
At a kind of web site contents based on operating system to determine device type that Fig. 5 provides for first embodiment of the invention The schematic flow sheet of reason method;
A kind of equipment that target terminal is more specifically determined based on operating system that Fig. 6 provides for first embodiment of the invention The schematic flow sheet of type;
A kind of structural representation for terminal that Fig. 7 provides for third embodiment of the invention;
A kind of structural representation for more specifically terminal that Fig. 8 provides for third embodiment of the invention;
A kind of structural representation for server that Fig. 9 provides for third embodiment of the invention;
A kind of structural representation for browser that Figure 10 provides for fourth embodiment of the invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, using for The suffix of such as " module ", " part " or " unit " of element is represented only for being conducive to the explanation of the present invention, itself is not There is specific meaning.Therefore, " module " can be used mixedly with " part ".
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, Smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP are (portable Multimedia player), the terminal of guider etc. and such as fixed terminal of numeral TV, desktop computer etc..Below, Assuming that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except be used in particular for moving purpose element it Outside, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram for realizing the optional mobile terminal of each embodiment one of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, user input unit 120, output unit 130, memory 140th, controller 150 etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing All components shown.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include mobile communication module 111, wireless Internet mould Block 112 etc..
Mobile communication module 111 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 112 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
The order that user input unit 120 can be inputted according to user generates key input data to control each of mobile terminal Plant operation.User input unit 120 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display module 131 in the form of layer, touch-screen can be formed.
Output unit 130 is configured to provide output signal (for example, audio is believed with vision, audio and/or tactile manner Number, vision signal, alarm signal, vibration signal etc.).Output unit 130 can include display module 131, audio output mould Block 132 etc..
Display module 131 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity When talking about call mode, display module 131 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display module 131 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display module 131 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display module 131 may be used as input unit and output device.Display module 131 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 1 00 can include two or more display modules (or other display devices), for example, moving Dynamic terminal can include outside display module (not shown) and internal display module (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 132 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 140 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 132 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed. Dio Output Modules 132 can include loudspeaker, buzzer etc..
Memory 140 can store software program of the processing performed by controller 150 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.
Memory 140 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection The network storage device cooperation of 140 store function.
The overall operation of the generally control mobile terminal of controller 150.For example, controller 150 is performed and voice call, data Communication, video calling etc. related control and processing.Controller 150 can be with execution pattern identifying processing, will be in touch-screen The handwriting input of upper execution or picture draw input and are identified as character or image.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 150. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 140 and be performed by controller 150.
As shown in Fig. 2 the structural representation to realize the optional server of each embodiment one of the invention, the server 20 at least include:Input and output (IO) bus 21, processor 22, memory 23, internal memory 24 and communicator 25.Wherein,
Input and output (IO) bus 21 respectively with other parts of the server belonging to itself (processor 22, memory 23, Internal memory 24 and communicator 25) connection, and provide transmission lines for other parts.
Processor 22 generally controls the overall operation of the server belonging to itself.Calculated and true for example, processor 22 is performed The operation such as recognize.Wherein, processor 22 can be central processing unit (CPU).
Communicator 25, generally includes one or more assemblies, and it allows the server and radio communication system belonging to itself Radio communication between system or network.
The storage processor of memory 23 is readable, the software code that processor is executable, and it, which is included, is used for control processor 22 Perform the instruction (i.e. software perform function) of functions described herein.
Wherein, in the server that the present invention is provided, the function of parsing extraction module, processing module and sending module is realized Software code is storable in memory 23, and by processor 22 perform or compile after perform.
Internal memory 24, typically using semiconductor memory cell, including random access memory (RAM), read-only storage (ROM), with And cache (CACHE), RAM is most important of which memory.Internal memory 24 is one of important part in computer, and it is The operation of all programs is all carried out in internal memory in the bridge linked up with CPU22, computer, and it is to be used for temporarily that it, which is acted on, Operational data in Shi Cunfang CPU22, and the data exchanged with the external memory storage such as hard disk, as long as computer is in operation, CPU22 will carry out computing needing the data of computing to be transferred in internal memory, and CPU22 again sends out result after the completion of computing Come.
As shown in figure 3, the interactive structure to realize each embodiment one of the invention optional user, terminal and server Schematic diagram, it should be appreciated that in various embodiments, realizes the side of the present invention by interaction between user, terminal, server Case.Wherein, information exchange can be directly carried out between user and terminal, and can directly enter row information friendship between terminal and server Mutually.
It is described in detail below by way of specific embodiment.
First embodiment
Set to ensure that server can be able to be returned after the content requests message of terminal transmission is received with the terminal The web site contents that standby type is adapted, present embodiments provide a kind of processing method of web site contents, reference picture 4, and Fig. 4 is this hair The schematic flow sheet of the processing method for the web site contents that bright first embodiment is provided, including:
S401:The website domain name information of terminal-pair user input parse obtaining purpose IP address information;
It should be appreciated that in the present embodiment, user input website domain name information (i.e. website information, for example Www.jd.com etc.) after, browser is that the website domain name information can be parsed, so as to obtain the corresponding target in the website The IP address information of server.Then, terminal can send content requests message to destination service according to the IP address information Device, with the web site contents of the acquisition request website.
S402:Terminal includes device type mark and net according to the generation of the device type of the corresponding terminal of browser of setting Stand the content requests message of domain-name information;
Device type includes desk device, mobile device, tablet device, television equipment and other all in the present embodiment Such as uncommon device type of intelligent threading equipment.
In the present embodiment, device type mark can meet content requests message setting rule, energy being serviced device to know Other any character or field, such as numeral 1,2,3, or field DeviceType/A, DeviceType/B, DeviceType/C etc..
It is worth noting that, in the present embodiment, a device type mark is inevitable uniquely to characterize a kind of mobile device type. For example, characterizing desk device with 0, then hereafter other equipment type can not be characterized with 0 again.
S403:Terminal is according to purpose IP address information transmission content request message.
In the present embodiment, the content requests message for being sent to server according to purpose IP address information can be that HTTP please Message is sought, and device type mark can be arranged in the header fields of content requests message.
S404:Server is parsed to the content requests message received, extracts the equipment class in content requests message Type is identified and website domain name information;
It should be appreciated that server could be extracted only after the content requests message to receiving is parsed Go out device type mark and website domain name information.
S405:Server identifies the device type for determining target terminal according to device type;
It should be appreciated that there being pair between device type mark and device type in the present embodiment, in server It should be related to, it is assorted that server, which can be corresponded to by the corresponding relation and determine that a device type identifies characterized device type, .
S406:Server is determined in the website that is adapted with the device type according to device type and website domain name information Hold;
In the present embodiment, device type may for sky, i.e., this to server transmission content request message terminal not including Hold and device type mark is added in request message, now, a kind of feasible method is come really according to the operating system of target terminal Locking equipment type.
S407:Server sends the web site contents to target terminal.
In the present embodiment, the web site contents that target terminal is received are in the website being adapted to the device type of the terminal Hold, user can be directly displayed to.
It should be noted that step S401-S403 is terminal operation in the present embodiment, step S404-S407 is service Device operation.
In the present embodiment, when the device type that terminal is set is designated character, to ensure that server is known that content In the header fields of request message which just for device type identify, can consult with server, about be scheduled on header fields In the character of a certain particular location be device type mark, such as the last character in header fields.
By taking the HTTP request message of desk device as an example, if A characterizes desk device.Herein, it would be desirable to know existing In the header fields of HTTP request message, it generally comprises the information such as the Application Type of equipment, operating system, but does not include Device type is identified.Such as " Mozilla/5.0 (X11;Linux x86_64)AppleWebKit/537.36(KHTML,like Gecko) Chrome/51.0.2704.103Safari/537.36 ", expression is Chrome browsers under linux system HTTP request.And according to the message create-rule of this implementation, the HTTP request header field after it is generated is: “Mozilla/5.0(X11;Linux x86_64)AppleWebKit/537.36(KHTML,like Gecko)Chrome/ 51.0.2704.103Safari/537.36, A " can now be represented:Chrome in the desk device under linux system The HTTP request of browser.After so server receives the HTTP request message, good rule through consultation, you can understand Last character A in the header field is to characterize the device type of terminal for desk device.
It should be appreciated that when device type is designated field, to ensure that server is known that the field is to set A part in the field, can be used to set in identification name, such as field DeviceType/A by standby type identification DeviceType is the identification name of setting.So server can be looked for after receiving the message according to identification name DeviceType To whole mark device type mark DeviceType/A, and obtain with this device type of terminal.
In the present embodiment, before the website domain name information that is inputted to user parse and obtains purpose IP address information, Or, it is necessary to which first the device type to the corresponding terminal of browser is configured before the website domain name information that user inputs.
In the present embodiment, the setting for the device type of the corresponding terminal of browser can be automatic setting, now, A kind of feasible mode is:
Browser detects the operating system itself being adapted to, and is then determined further according to the operating system that browser is adapted to clear The device type of the corresponding terminal of device of looking at.
For example, browser is the browser suitable for Android (Android) equipment, then its own operation system being adapted to System is android system, and because android system is the operating system for mobile phone, terminal is so as to set browser pair The device type for the terminal answered is mobile device.
It should be appreciated that current application provider is when providing browser application, can be according in different terminal devices Core is so as to provide the browser of different editions, such as browser, the browser of IOS editions and the PC ends browser of Android editions Deng.So due to the browser initially installed or downloaded afterwards in the terminal, it is only used for certain types of terminal device In, the browser of such as Android editions is that can not be run on iPhone and computer, thus, is adapted to according to browser Operating system can automatically determine the device type of the corresponding terminal of browser.
It should be appreciated that corresponding between the device type of operating system terminal corresponding with browser in the present embodiment Relation can be stored in terminal simultaneously by the installation of the formal adjoint browser such as chart, and browser is fitted detecting itself Corresponding device type can be found by the corresponding relation of the storage after the operating system matched somebody with somebody.
It should be appreciated that in the present embodiment, for the browser of compatible several operation systems, its device type can To be set manually by user, the concrete mode set manually by user is referred to hereinafter.
It should be appreciated that in the present embodiment, can be used for the clear of plurality of devices type for the operating system being adapted to Look at device, its device type can also manually be set by user.
In the present embodiment, another feasible side that the device type for the corresponding terminal of browser is set automatically Formula is:
The dimension information of terminal is obtained, setting for the corresponding terminal of browser is then determined further according to the dimension information of acquisition Standby type.
Specifically, terminal can call API, (Application Programming Interface, application program connects Mouthful) interface, dimension information in the terminal essential information of write-in before obtaining in terminal.
According to the dimension information got, judge which size range it is in, and it is current clear to should determine that with this The device type for the terminal look at where device.
It should be appreciated that the corresponding relation in the present embodiment between size range and device type can pass through chart etc. The installation of formal adjoint browser is stored in terminal simultaneously, and terminal can find it after the size of itself is detected and fall into Size range, corresponding device type is then found by the corresponding relation of the storage.For example, terminal is detecting itself Size is 5 cun, that is, is fallen into the size range of mobile device, and terminal is so as to set the device type of the corresponding terminal of browser Mobile device.
It should be appreciated that in the present embodiment, two or more device type is fallen into for terminal size size Size range in when, its device type can manually be set by user.
It should be appreciated that in the present embodiment, when not falling within for terminal size size in the size range of setting, its Device type can manually be set by user.
In the present embodiment, the setting for the device type of the corresponding terminal of browser can also be manual by user It is configured, now terminal can receive the device type information of user's input, and the device type information inputted according to user To carry out the device type setting of the corresponding terminal of browser.
Such as, a device type input frame is set in a browser, and user's input equipment type in the input frame is believed Breath, such as mobile phone, computer etc., the device type information of the terminal-pair input is parsed, and obtains corresponding device type, and set Put.Such as user's input handset, then terminal the corresponding device type of mobile phone is found according to the information mapping table of storage inside For mobile device, the device type for then setting the corresponding terminal of browser is mobile device.
It should be appreciated that the mode in upper example needs user by modes such as typewritings come input equipment type information, and The information of user's input there must be in information mapping table, and process is more complicated, operation inconvenience, therefore a kind of preferable Mode is to set a device type to select menu in the setting page of browser, and user is by clicking on the selection menu therefrom The a certain device type provided in selecting choices from menus, the input to device type information is realized with this, so, and terminal can be straight The device type chosen according to user is connect to set the device type of the corresponding terminal of browser.It is worth noting that, user exists The actual process for selection device type of selecting choices from menus is exactly input process of the user to device type information.
In the present embodiment, before user to device type set manually, browser can be provided with default device Type (i.e. Default device type).The setting of the default device type can be that browser is carried out by above-mentioned Automatic Styles Automatically set;Can also the application provider of browser pre-set in browser application.
In the present embodiment, the above-mentioned setting function to browser can be integrated into a plug-in unit or a application, by This carries out unified device type setting to all browsers downloaded in terminal to realize so that user is downloading newly clear Look at device and when being surfed the Net by it, the acquisition of the web site contents of adaptation can be still realized by once interaction, is further improved Consumer's Experience.
In the present embodiment, if the device type in the content requests message that server is extracted is designated sky, i.e., this is to clothes The terminal of business device transmission content request message adds device type mark not in content request message, now, for the service of improving Device is adapted to successfully general to the identification accuracy rate of terminal type between the web site contents and target terminal that ensure return as much as possible Rate, the present embodiment additionally provide it is a kind of the web site contents processing method of device type is determined based on operating system, referring to Fig. 5, Including:
S501:Device operating system information in content requests message determines the operating system of target terminal;
It should be appreciated that according to the create-rule of existing content requests message, in the head word of content request message Duan Zhong, generally comprises the operation system information of equipment.For example in " Mozilla/5.0 (X11;Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103Safari/537.36 " this In HTTP request header field, server is parsed after the HTTP request message, you can obtain the behaviour in the request message Make system information " Linux x86_64 ", thus server can determine that the operating system of target terminal is the Linux of 64 Operating system.
S502:The device type of target terminal is determined based on the operating system;
It should be appreciated that for some operating systems, it is only in the equipment applied to a certain type, now Realize the determination according to operating system to device type;Such as MacOSX systems only run on the serial computer of Apple Macintosh On, thus server can determine that the device type of target terminal is desk device according to MacOSX systems, for this kind of only right Operating system applied to the equipment of a certain type also has Android, iOS, Windows XP, Windows 8, Windows 10th, WindowsPhone etc..Due to the presence of this type operating system so that server can be according to operating system sometimes Determine the device type of target terminal.
S503:The web site contents being adapted with device type are sent to target terminal.
It should be appreciated that the target terminal in the present embodiment is the terminal of transmission content request message, namely service Device returns to the terminal of web site contents.
In the present embodiment, it is a kind of to determine the device type detailed process of target terminal referring to Fig. 6, bag based on operating system Include:
S601:Judge whether operating system uniquely corresponds to a kind of device type, if so, going to S602;Otherwise, go to S603;
It should be appreciated that for some operating systems, it can apply in the equipment of two or more type, Such as linux system.
S602:The device type of target terminal is determined according to operating system.
It should be appreciated that in the present embodiment, server can be by the corresponding pass between operating system and device type System is saved by forms such as charts, so as to realize the operation for the device type that target terminal is determined according to operating system.
S603:Website domain name information in content requests message determines the device type of target terminal.
It should be appreciated that in the present embodiment, two or more class is can apply to for such as linux system etc. Operating system in the equipment of type, server can not determine the device type of target terminal according to operating system, now still press According to the mode of prior art, the device type of target terminal is determined according to website domain name information.
It is worth noting that, each step in the present embodiment can be by terminal as shown in Figure 1 and clothes as shown in Figure 2 Business device is respectively completed, specifically, the website domain name information inputted to user parsed and content requests messages generation Process can be completed by the controller 150 of terminal as shown in Figure 1, and the setting of the device type to the corresponding terminal of browser Process then can jointly be completed by user input unit 120, memory 140 and controller 150, further for content requests report The transmission process of text can then be completed by wireless communication unit 110.And reception to content request message and in website The transmission process of appearance is then completed by the communicator 25 of server as shown in Figure 2, and for the parsing of content requests message And the determination process of device type then can jointly be completed by 22, memory 23 and internal memory 24.
The processing method for the web site contents that the present embodiment is provided, by sending the content requests report identified comprising device type Text gives server;Allow server according to the device type identify determine terminal device type, and to terminal return with The web site contents that the device type is adapted.So clothes can be informed because terminal is added in the content requests message of transmission The device type mark for the device terminal equipment type of being engaged in, this allows for server after content requests message is received, can be with According to the device type mark in content requests message, the web site contents being adapted with the terminal are directly returned to, it is to avoid service Need to carry out secondary information interaction for same web site contents between device and terminal, saved Internet resources;And because it passes through Once request can obtain the web site contents being adapted with terminal, and this also make it that the time of browser loading webpage is shorter, simultaneously The appearance of the situation of page bounce is it also avoid, browser access effect is improved, greatly improves Consumer's Experience.
Second embodiment
Technical scheme for a better understanding of the present invention, the present embodiment is on the basis of first embodiment, with content requests Message is HTTP request message, and device type identifies the end for being arranged at HTTP request header field, and user can enter manually The setting of row device type, and in case of browser is provided with default value to device type, further is made to the present invention Illustrate.
If:Device type mark includes identification name part " DeviceType ";If:0 characterizes desk device, and 1 characterizes movement Equipment, 2 characterize tablet device, and 3 characterize television equipment;If:The currently used terminal of user is mobile phone.
First, user enters the setting that browser carries out browser equipment type, because browser is provided with default value in itself, The step can skip;
Then, when user inputs the website domain name to be accessed in address field and proceeds by web page browsing, mobile phone is browsed The website domain name is parsed into IP address by device, and generates the HTTP request message identified in header fields comprising device type (device type is designated DeviceType/1 in the present embodiment), and to target website server send the HTTP request message with Acquisition request web site contents;
Server receives and parses through the HTTP request message sent by the mobile phone, extracts setting in the HTTP request message Standby type identification:DeviceType/1;
Server is according to the corresponding relation between the device type mark and device type having, you can should it is determined that sending The device type of the equipment of HTTP request message is mobile device.
Hereafter, server is according to the device type of determination, will adapt to the web site contents that mobile phone browses and returns to the mobile phone;
Mobile phone is received after the web site contents of server return, the browser resolves web site contents, and is rendered Come, to allow user to be operated.
The processing method for the web site contents that the present embodiment is provided, by adding device type mark in HTTP request message Know so that server can directly determine the device type of terminal and return to the web site contents of adaptation.So that server and terminal Between can disposably realize the request and return to web site contents, saved Internet resources, accelerated browser and webpage is added Carry, while it also avoid the appearance of the situation of page bounce, improve browser access effect, improve Consumer's Experience.
3rd embodiment
Present embodiments provide a kind of terminal, reference picture 7, a kind of terminal that Fig. 7 provides for third embodiment of the invention Structural representation, including:
Domain name mapping module 71, the website domain name information for being inputted to user, which parse, obtains purpose IP address letter Breath;
Message generation module 72, the device type generation for the corresponding terminal of browser according to setting includes equipment class Type identifies the content requests message with website domain name information;
Message sending module 73, for according to purpose IP address information transmission content request message.
It should be appreciated that in the present embodiment, user is after input website domain name information, and browser is can be to the net Domain-name information of standing is parsed, so as to obtain the IP address information of the corresponding destination server in the website.Then, terminal is according to this IP address information can send content requests message to destination server, with the web site contents of the acquisition request website.
It is to be further understood that in the present embodiment, the device type of the corresponding terminal of browser is browser correspondence Terminal device type.In the present embodiment device type include desk device, mobile device, tablet device, television equipment, with And the uncommon device type such as other intelligent threading equipment.
In the present embodiment, device type mark can meet content requests message setting rule, energy being serviced device to know Other any character or field, such as letter A, B, C, or field DeviceType/1, DeviceType/2, DeviceType/3 etc..
It is worth noting that, in the present embodiment, a device type mark is inevitable uniquely to characterize a kind of mobile device type. For example, characterizing mobile device with B, then hereafter other equipment type can not be characterized with B again.
In the present embodiment, the content requests message for server can be HTTP request message, and device type mark Knowledge can be arranged in the header fields of content requests message.
It should be appreciated that when device type is designated character, to ensure that server is known that content requests message Header fields in which just for device type identify, can consult with server, about be scheduled on a certain in header fields The character of particular location is the last character in device type mark, such as header fields.
It should be appreciated that when device type is designated field, to ensure that server is known that the field is to set A part in the field, can be used to set in identification name, such as field DeviceType/A by standby type identification DeviceType is the identification name of setting.So server can be looked for after receiving the message according to identification name DeviceType To whole mark device type mark DeviceType/A, and obtain with this device type of terminal.
In the present embodiment, referring to Fig. 8, terminal also includes system setup module 74, for being worked in domain name mapping module 71 Before, or before the website domain name information that user inputs, the device type of terminal corresponding to browser is configured.
In the present embodiment, system setup module 74 can be for the setting of the device type of the corresponding terminal of browser Automatic to set, now, a kind of feasible set-up mode is:
The operating system that the detection browser of system setup module 74 is adapted to, the operation being then adapted to further according to browser System determines the device type of the corresponding terminal of browser.
It should be appreciated that current application provider is when providing browser application, can be according in different terminal devices Core is so as to provide the browser of different editions, such as browser, the browser of IOS editions and the PC ends browser of Android editions Deng.So due to the browser initially installed or downloaded afterwards in the terminal, it is only used for certain types of terminal device In, the browser of such as Android editions is that can not be run on iPhone and computer, thus, system setup module 74 The operating system being adapted to according to browser can automatically determine the device type of the corresponding terminal of browser.
It should be appreciated that corresponding between the device type of operating system terminal corresponding with browser in the present embodiment Relation can be stored in terminal simultaneously by the installation of the formal adjoint browser such as chart, and system setup module 74 is being detected Corresponding device type can be found by the corresponding relation of the storage after the operating system that browser itself is adapted to.
It should be appreciated that in the present embodiment, for the browser of compatible several operation systems, its device type can To be set manually by user.
In the present embodiment, system setup module 74 is set automatically for the device type of the corresponding terminal of browser Another feasible pattern be:
System setup module 74 obtains the dimension information of terminal, then determines browser further according to the dimension information of acquisition The device type of corresponding terminal.
Specifically, system setup module 74 can call api interface, the terminal essential information of write-in before obtaining in terminal Middle dimension information;According to the dimension information got, judge which size range it is in, and it is current to should determine that with this The device type of terminal where browser.
It should be appreciated that the corresponding relation in the present embodiment between size range and device type can pass through chart etc. The installation of formal adjoint browser is stored in terminal simultaneously, and terminal can find it after the size of itself is detected and fall into Size range, corresponding device type is then found by the corresponding relation of the storage.
It should be appreciated that in the present embodiment, two or more device type is fallen into for terminal size size Size range in when, its device type can manually be set by user.
It should be appreciated that in the present embodiment, when not falling within for terminal size size in the size range of setting, its Device type can manually be set by user.
In the present embodiment, system setup module 74 can be with for the setting of the device type of the corresponding terminal of browser It is configured manually by user, now system setup module 74 can receive the device type information of user's input, and root The device type information inputted according to user is set to carry out the device type of the corresponding terminal of browser.
In the present embodiment, before user to device type set manually, browser can be provided with default device Type (i.e. Default device type).The setting of the default device type can be that system setup module 74 passes through above-mentioned automatic setting What mode was set automatically;Can also the application provider of browser pre-set in browser application.
In the present embodiment, said system setup module 74 can be set work(to the device type of the corresponding terminal of browser It can be integrated into a plug-in unit or a application, unified equipment thus is carried out to all browsers downloaded in terminal to realize Type is set so that user can be realized suitable when having downloaded new browser and having been surfed the Net by it, still by once interaction The acquisition for the web site contents matched somebody with somebody, further improves Consumer's Experience.
The present embodiment additionally provides a kind of server, referring to Fig. 9, a kind of clothes that Fig. 9 provides for third embodiment of the invention The structural representation of business device, including:
Extraction module 91 is parsed, for being parsed to the content requests message received, the content requests report is extracted Device type mark and website domain name information in text;
Processing module 92, the device type of target terminal is determined for being identified according to device type, and according to the equipment Type and website domain name information determine the web site contents being adapted with the device type;
Sending module 93, for sending the web site contents to target terminal.
It should be appreciated that there being pair between device type mark and device type in the present embodiment, in server It should be related to, it is assorted that server, which can be corresponded to by the corresponding relation and determine that a device type identifies characterized device type, .
In the present embodiment, the device type in the content requests message that parsing extraction module 91 is extracted is identified Sky, i.e., this added to the terminal of server transmission content request message not in content request message device type mark, now, To improve identification accuracy rate of the server to terminal type, ensure to fit between the web site contents and target terminal that return as much as possible With successful probability, processing module 92 is additionally operable to the device type in the content requests message that parsing extraction module 91 is extracted Space-time is designated, the device operating system information in content requests message determines the operating system of target terminal, and is based on Operating system determines the device type of target terminal, determines mutually to fit with device type further according to device type and website domain name information The web site contents matched somebody with somebody.
Hereafter, the web site contents being adapted with device type can be sent to target terminal by sending module 93.
It should be appreciated that according to the create-rule of existing content requests message, in the head word of content request message Duan Zhong, generally comprises the operation system information of equipment.
It should be appreciated that the target terminal in the present embodiment is the terminal of transmission content request message, namely service Device returns to the terminal of web site contents.
It should be appreciated that for some operating systems, it is only in the equipment applied to a certain type, now Realize the determination according to operating system to device type;Such as MacOSX systems only run on the serial computer of Apple Macintosh On, thus server can determine that the device type of target terminal is desk device according to MacOSX systems, for this kind of only right Operating system applied to the equipment of a certain type also has Android, iOS, Windows XP, Windows 8, Windows 10th, WindowsPhone etc..Due to the presence of this type operating system so that processing module 92 can be according to operation sometimes System determines the device type of target terminal.
It should be appreciated that for some operating systems, it can apply in the equipment of two or more type, Such as linux system.Therefore, processing module 92 for according to the device type and website domain name information determine with it is described The web site contents that device type is adapted include:
For judging whether the operating system uniquely corresponds to a kind of device type;
It is additionally operable to, when judged result is to be, the device type of target terminal be determined according to the operating system;
It is additionally operable to when judged result is no, the website domain name information in the content requests message determines that target is whole The device type at end.
That is, the operating system in equipment for can apply to two or more type, the nothing of processing module 92 Method determines the device type of target terminal according to operating system, now always according to the mode of prior art, according to website domain name Information determines the device type of target terminal.
It is worth noting that, the concrete structure of the terminal and server in the present embodiment can also be by such as Fig. 1 and such as Fig. 2 institutes Show, now domain name mapping module 71, message generation module 72 and system setup module 74 can be arranged at terminal as shown in Figure 1 Controller 150 in, its function can be completed by controller 150, and message sending module 73 can be arranged at radio communication list In member 110, its function can be completed by wireless communication unit 110.And realize parsing extraction module 91 and processing module 92 The software code of function is storable in the memory 23 of server as shown in Figure 2, and after processor 22 is performed or compiled Perform.
Terminal and server that the present embodiment is provided, the content requests message identified comprising device type is sent by terminal To server;Allow server to identify the device type for determining terminal according to the device type, and returned to terminal with being somebody's turn to do The web site contents that device type is adapted.So because terminal adds the service of can informing in the content requests message of transmission The device type mark of the device terminal equipment type, this allows for server after content requests message is received, can be by According to the device type mark in content requests message, the web site contents being adapted with the terminal are directly returned to, it is to avoid server Need to carry out secondary information interaction for same web site contents between terminal, saved Internet resources;And because it passes through one The i.e. available web site contents being adapted with terminal of secondary request, this also make it that the time of browser loading webpage is shorter, while The appearance of the situation of page bounce is avoided, browser access effect is improved, greatly improves Consumer's Experience.
Fourth embodiment
Technical scheme for a better understanding of the present invention, the present embodiment is on the basis of 3rd embodiment, with content requests Message is HTTP request message, and device type identifies the end for being arranged at HTTP request header field, and user can enter manually The setting of row device type, and browser is provided with the situation of default value to device type, and HTTP request message does not include Exemplified by device type mark both of these case, present invention work is further illustrated.
If:The currently used terminal of user is Android mobile phone.
Example 1:
If:Device type mark includes identification name part " DeviceType ";If:0 characterizes desk device, and 1 characterizes movement Equipment, 2 characterize tablet device, and 3 characterize television equipment.
Referring to Figure 10, a kind of structural representation for browser 1000 that Figure 10 provides for the present embodiment, including:Address field list Member 10001, system setting unit 10002, Context resolution unit 10003, web site contents rendering unit 10004, HTTP units 10005 and dns resolution unit 10006.
It should be appreciated that browser can be arranged at for address field unit 10001 and system setting unit 10002 1000 APP layers 1001, APP1001 layers are mainly used between browser and user carrying out man-machine interaction;For Context resolution list Member 10003 and web site contents rendering unit 10004 can be arranged at the core layer 1002 of browser 1000, the core layer of browser 1002 are mainly used in parsing the data received and show user;For HTTP units 10005 and dns resolution unit 10006 can be arranged at the network protocol layer 1003 of browser 1000, and network protocol layer 1003 is mainly used between server Carry out data interaction.
Specifically, user can be by the setting in the progress browser equipment type of system setting unit 10002, due to clear Device of looking at is provided with default value in itself, and user can also select the setting without browser equipment type, directly using default device Type;
Hereafter, address field unit 10001 can receive the website domain name to be accessed that user inputs in address field, and will The dns resolution unit 10006 for transferring to network protocol layer 1003 parsed, obtain the IP address of Website server, and by HTTP units 10005 generate the HTTP request message for identifying " DeviceType/1 " comprising device type in header fields, and IP address according to Website server is sent to the target website server.
Server receives and parses through the HTTP request message sent by the mobile phone, extracts in the HTTP request message Device type is identified:DeviceType/1;
The parsing extraction module of server identifies the corresponding relation between device type according to the device type having, i.e., The device type that can determine that the equipment for sending the HTTP request message is mobile device.
Hereafter, the transmission processing module of server can will adapt to the website that mobile phone is browsed according to the device type of determination Content is sent to the mobile phone;
Mobile phone is received after the web site contents of server return, should by the Context resolution unit resolves of core layer 1002 Web site contents, and rendered by web site contents rendering unit 10004 come to allow user to be operated.
Example 2:
Now HTTP request message is identified not comprising device type, therefore the system of browser 1000APP layers 1001 is set Unit 10002 will not be used for carrying out the setting of browser equipment type, and whole browser is operationally:Address field unit first 10001 can receive the website domain name to be accessed that user inputs in address field, and it is transferred to the DNS of network protocol layer 1003 Resolution unit 10006 is parsed, and obtains the IP address of Website server, and generate HTTP request report by HTTP units 10005 Text (does not include device type mark) in the request message, and is sent to the targeted website according to the IP address of Website server Server.
The parsing extraction module of server is received and parsed through after the HTTP request message sent by the Android mobile phone, by Operation system information of the operating system determining unit in the HTTP request message determines to send setting for the HTTP request message Standby operating system is Android operation system.
Device type determining unit passes through between operating system and device type according to the Android operation system of determination afterwards Corresponding relation, you can it is determined that send the equipment of the HTTP request message device type be mobile device.
Hereafter, the content sending unit of server can will adapt to the website that mobile phone is browsed according to the device type of determination Content is sent to the Android mobile phone;
The Android mobile phone is received after the web site contents of server return, passes through the Context resolution unit of core layer 1002 10003 parse the web site contents, and are rendered by web site contents rendering unit 10004 come to allow user to be grasped Make.
Terminal and server that the present embodiment is provided, are identified by adding device type in HTTP request message so that Server can directly determine the device type of terminal and return to the web site contents of adaptation so that can one between server and terminal Secondary property realizes the request and return to web site contents, has saved Internet resources, has accelerated loading of the browser to webpage, while The appearance of the situation of page bounce is avoided, browser access effect is improved;Meanwhile, the HTTP request received in server When being identified in message without device type, the judgement of device type is carried out by the operation system information in HTTP request message, Improve identification accuracy rate of the server to terminal type, ensure that to large extent the web site contents of return and target terminal it Between be adapted to successful probability, further improve Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of processing method of web site contents, it is characterised in that including:
The website domain name information of terminal-pair user input parse obtaining purpose IP address information;
The terminal includes device type mark and the website domain name according to the generation of the device type of the corresponding terminal of browser The content requests message of information;
The terminal sends the content requests message according to the purpose IP address information.
2. the processing method of web site contents as claimed in claim 1, it is characterised in that the device type mark is arranged at institute In the header fields for stating content requests message.
3. the processing method of web site contents as claimed in claim 1 or 2, it is characterised in that in the net inputted to user Domain-name information of standing parse before obtaining purpose IP address information, and the processing method of the web site contents also includes:
The terminal receives the device type information of user's input, and the browser correspondence is set according to the device type information Terminal device type;
And/or,
Browser detects the operating system itself being adapted to, and is browsed according to being set the operating system that the browser is adapted to The device type of the corresponding terminal of device.
4. a kind of processing method of web site contents, it is characterised in that including:
Server is parsed to the content requests message received, extracts the device type mark in the content requests message With website domain name information;
The server identifies the device type for determining target terminal according to the device type;
The server is determined in the website that is adapted with the device type according to the device type and website domain name information Hold;
And send the web site contents to the target terminal.
5. the processing method of web site contents as claimed in claim 4, it is characterised in that the processing method of the web site contents is also Including:
When the device type in the content requests message extracted is designated space-time, the server please according to the content The device operating system information in message is asked to determine the operating system of target terminal;
And the device type of the target terminal is determined based on the operating system, and set to target terminal transmission with described The web site contents that standby type is adapted.
6. the processing method of web site contents as claimed in claim 5, it is characterised in that described to be determined based on the operating system The device type of the target terminal includes:
The server judges whether the operating system uniquely corresponds to a kind of device type;If so, according to the operating system Determine the device type of target terminal;
Otherwise, the website domain name information in the content requests message determines the device type of target terminal.
7. a kind of terminal, it is characterised in that including:
Domain name mapping module, the website domain name information for being inputted to user parse obtaining purpose IP address information;
Message generation module, the device type generation for the corresponding terminal of browser according to setting includes device type mark With the content requests message of website domain name information;
Message sending module, for sending the content requests message according to the purpose IP address information.
8. a kind of server, it is characterised in that including:
Extraction module is parsed, for being parsed to the content requests message received, is extracted in the content requests message Device type is identified and website domain name information;
Processing module, the device type of target terminal is determined for being identified according to the device type, and according to the equipment class Type and website domain name information determine the web site contents being adapted with the device type;
Sending module, for sending the web site contents to the target terminal.
9. server as claimed in claim 8, it is characterised in that the processing module is used to be identified according to the device type The device type of target terminal is determined, and determines mutually to fit with the device type according to the device type and website domain name information The web site contents matched somebody with somebody include:
Space-time is designated for the device type in the content requests message that the parsing extraction module is extracted, according to Device operating system information in the content requests message determines the operating system of target terminal;
It is additionally operable to determine the device type of the target terminal based on the operating system;
It is additionally operable to the web site contents being adapted according to the device type and the determination of website domain name information with the device type.
10. server as claimed in claim 9, it is characterised in that the processing module be used for according to the device type and Website domain name information determines that the web site contents being adapted with the device type include:
For judging whether the operating system uniquely corresponds to a kind of device type;
It is additionally operable to, when judged result is to be, the device type of target terminal be determined according to the operating system;
It is additionally operable to when judged result is no, the website domain name information in the content requests message determines target terminal Device type.
CN201710203087.6A 2017-03-30 2017-03-30 Processing method, terminal and the server of web site contents Pending CN107124477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710203087.6A CN107124477A (en) 2017-03-30 2017-03-30 Processing method, terminal and the server of web site contents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710203087.6A CN107124477A (en) 2017-03-30 2017-03-30 Processing method, terminal and the server of web site contents

Publications (1)

Publication Number Publication Date
CN107124477A true CN107124477A (en) 2017-09-01

Family

ID=59718261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710203087.6A Pending CN107124477A (en) 2017-03-30 2017-03-30 Processing method, terminal and the server of web site contents

Country Status (1)

Country Link
CN (1) CN107124477A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019076014A1 (en) * 2017-10-17 2019-04-25 平安科技(深圳)有限公司 Webpage generation method and apparatus, terminal device and medium
CN110430451A (en) * 2019-08-20 2019-11-08 北京豆萌信息技术有限公司 Video broadcasting method, player, server and system
CN110618768A (en) * 2019-03-18 2019-12-27 北京无限光场科技有限公司 Information presentation method and device
CN111460285A (en) * 2020-03-17 2020-07-28 北京百度网讯科技有限公司 Information processing method, device, electronic equipment and storage medium
CN111478942A (en) * 2020-03-06 2020-07-31 视联动力信息技术股份有限公司 Request processing method and device, electronic equipment and storage medium
CN112019397A (en) * 2020-07-08 2020-12-01 深圳市智微智能科技股份有限公司 Convenient and fast network diagnosis method and system with visualized diagnosis data
CN115062255A (en) * 2022-06-29 2022-09-16 北京飞天经纬科技股份有限公司 Website adaptation method and device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Web page resource issuing method and issuing system
US20080120538A1 (en) * 2006-11-22 2008-05-22 University Of New Brunswick Visual web page authoring tool for multi-context web pages
CN103220371A (en) * 2012-01-18 2013-07-24 中国移动通信集团公司 Method and system for conducting content adaptation
CN105022806A (en) * 2015-07-03 2015-11-04 厦门二五八集团有限公司 Method and system for establishing mobile page based on internet webpage of translation template
CN106331149A (en) * 2016-09-14 2017-01-11 北京知道未来信息技术有限公司 Webpage code adapting method applicable to client environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120538A1 (en) * 2006-11-22 2008-05-22 University Of New Brunswick Visual web page authoring tool for multi-context web pages
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Web page resource issuing method and issuing system
CN103220371A (en) * 2012-01-18 2013-07-24 中国移动通信集团公司 Method and system for conducting content adaptation
CN105022806A (en) * 2015-07-03 2015-11-04 厦门二五八集团有限公司 Method and system for establishing mobile page based on internet webpage of translation template
CN106331149A (en) * 2016-09-14 2017-01-11 北京知道未来信息技术有限公司 Webpage code adapting method applicable to client environment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019076014A1 (en) * 2017-10-17 2019-04-25 平安科技(深圳)有限公司 Webpage generation method and apparatus, terminal device and medium
CN110618768A (en) * 2019-03-18 2019-12-27 北京无限光场科技有限公司 Information presentation method and device
CN110430451A (en) * 2019-08-20 2019-11-08 北京豆萌信息技术有限公司 Video broadcasting method, player, server and system
CN110430451B (en) * 2019-08-20 2021-09-10 北京豆萌信息技术有限公司 Video playing method, player, server and system
CN111478942A (en) * 2020-03-06 2020-07-31 视联动力信息技术股份有限公司 Request processing method and device, electronic equipment and storage medium
CN111478942B (en) * 2020-03-06 2024-06-07 视联动力信息技术股份有限公司 Request processing method, request processing device, electronic equipment and storage medium
CN111460285A (en) * 2020-03-17 2020-07-28 北京百度网讯科技有限公司 Information processing method, device, electronic equipment and storage medium
CN111460285B (en) * 2020-03-17 2023-11-03 阿波罗智联(北京)科技有限公司 Information processing method, apparatus, electronic device and storage medium
CN112019397A (en) * 2020-07-08 2020-12-01 深圳市智微智能科技股份有限公司 Convenient and fast network diagnosis method and system with visualized diagnosis data
CN115062255A (en) * 2022-06-29 2022-09-16 北京飞天经纬科技股份有限公司 Website adaptation method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107124477A (en) Processing method, terminal and the server of web site contents
US10109079B2 (en) Method and apparatus for processing tab in graphical interface
CN104965848B (en) A kind of front end resource loading method and device
CN102867007A (en) Webpage browsing method and device
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
US20070233748A1 (en) Internet access apparatus and method for notifying of Web page update using the same
WO2014176906A1 (en) Online video playing method and apparatus and computer readable medium
EP2146291A1 (en) Method and system for providing interface of web page
CN103136034A (en) Method and browser of processing information
CN107766358A (en) The method and relevant apparatus that a kind of page is shared
CN105302802A (en) Picture uploading method and system and browser
CN106936727A (en) A kind of Webpage display process and device
KR20080100597A (en) System and method for providing service of mobile web data via blocking the specified data
CN104021127A (en) Information processing method and electronic device
US10095791B2 (en) Information search method and apparatus
WO2015058614A1 (en) Bookmark storage method and device, and method and device for determining bookmark to be browsed
CN106130919A (en) A kind of volume control device, method and mobile terminal
KR101001512B1 (en) System for transmitting/receiving contents connected in link structure in internet page and control method thereof, and browsing apparatus used in the system
CN105338091A (en) High-transmission-efficiency personalized information interface display method and apparatus
CN111291005B (en) File viewing method, device, terminal equipment, system and storage medium
CN110309454B (en) Interface display method, device, equipment and storage medium
CN102866880A (en) System and method for self-design of mobile phone page layout by mobile user
KR20090053076A (en) Mobile terminal, rss system having the mobile terminal and method for providing updated information thereof
KR100936612B1 (en) Method for loading multimedia contents in the mobile internet browser and wireless communication terminal therefor
KR100851303B1 (en) Method for storing and display bookmark in mobile communication terminal

Legal Events

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

Application publication date: 20170901

RJ01 Rejection of invention patent application after publication