CN109740076A - Webpage display process and device - Google Patents

Webpage display process and device Download PDF

Info

Publication number
CN109740076A
CN109740076A CN201811615818.9A CN201811615818A CN109740076A CN 109740076 A CN109740076 A CN 109740076A CN 201811615818 A CN201811615818 A CN 201811615818A CN 109740076 A CN109740076 A CN 109740076A
Authority
CN
China
Prior art keywords
destination address
content
threshold
http
dead
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
CN201811615818.9A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811615818.9A priority Critical patent/CN109740076A/en
Publication of CN109740076A publication Critical patent/CN109740076A/en
Pending legal-status Critical Current

Links

Abstract

A kind of Webpage display process, device and electronic equipment are provided in the embodiment of the present disclosure, belongs to technical field of data processing, this method comprises: obtaining the http status code for destination address connection request that destination address server returns;In the case where the status code is greater than first threshold, the Content-Length value in http is further obtained;When the Content-Length value is not less than second threshold, judge whether the destination address hits dead link;When the destination address, which is that hit is dead, to be linked, control shows display transcoding page corresponding with the destination address in the client software of the destination address content.The scheme of the disclosure improves the usage experience of user.

Description

Webpage display process and device
Technical field
This disclosure relates to technical field of data processing more particularly to a kind of Webpage display process, device and electronic equipment.
Background technique
Website traffic (traffic) refers to the amount of access of website, for describe one website of access number of users and The indexs such as the webpage quantity that user is browsed.Website traffic statistic main indicator includes independent access person's quantity (unique Visitors), repeat visitor quantity (repeat visitors), page browsing number (page views) and each visitor Page browsing number (Page Views per user);And the statistical indicator of certain specific files, the page, as the page is shown Number, file download number etc..
Can sometimes such a case be met when we browse webpage: web page interlinkage is not upper or directly prompts The page can not be found, here it is dead links.In general, the dead link of webpage is exactly to be originally normal, and later URL passes through Modification or the page delete the link for keeping the link no longer significant.The item that dynamic link is no longer supported in database under normal circumstances Under part, dead link just will become;Or some file or page movement position cause the URL for being directed toward them no longer significant and As dead link;There are also being exactly web page contents by updating and being revised as other links, at this moment original link is just at dead Link.
Dead link is very unfavorable for the reading experience of user, if often there is dead link without repairing in time If, it will lead to user's forfeiture to the interest of corresponding website or webpage, existing technology is to be not processed, and directly shows dead chain page Face.Such defect be it is very unfriendly, user also can't see valuable other information, so as to cause the loss of flow.
Summary of the invention
In view of this, the embodiment of the present disclosure provides a kind of Webpage display process, device and electronic equipment, at least partly solve Problems of the prior art.
In a first aspect, the embodiment of the present disclosure provides a kind of Webpage display process, comprising:
Obtain the http status code for destination address connection request that destination address server returns;
In the case where the status code is greater than first threshold, the Content-Length in http is further obtained Value;
When the Content-Length value is not less than second threshold, judge whether the destination address hits dead chain It connects;
When the destination address, which is that hit is dead, to be linked, control shows in the client software of the destination address content and shows Show transcoding page corresponding with the destination address.
According to a kind of specific implementation of the embodiment of the present disclosure, the method also includes:
When the http status code is greater than first threshold, client executing degradation transcoding page operations are controlled.
According to a kind of specific implementation of the embodiment of the present disclosure, the method also includes:
When the Content-Length value is less than second threshold, client executing degradation transcoding page operations are controlled.
It is described the case where the status code is greater than first threshold according to a kind of specific implementation of the embodiment of the present disclosure Under, after further obtaining the Content-Length value in http, the method also includes:
Judge in web page contents corresponding to the destination address with the presence or absence of JSBridge;
If it exists, then further judge whether the text size of the web page contents is less than third threshold value, it is long to generate text Spend judging result;And
Determine whether to judge whether the destination address hits dead link based on the text size judging result.
It is described to be based on the text size judging result determination according to a kind of specific implementation of the embodiment of the present disclosure It is no to judge whether the destination address hits dead link, comprising:
When the text size of the web page contents is less than third threshold value, judge whether the destination address hits dead chain It connects.
It is described to judge whether the destination address hits dead chain according to a kind of specific implementation of the embodiment of the present disclosure It connects, comprising:
Judge whether the destination address hits and presets dead interlinkage agreement;
If so, directly controlling display and the destination address pair in the client software for showing the destination address content The transcoding page answered.
It is described to judge whether the destination address hits dead chain according to a kind of specific implementation of the embodiment of the present disclosure It connects, further includes:
When the destination address, which is not hit, presets dead interlinkage agreement, further judge corresponding to the destination address Whether content hits dead link;
If so, directly controlling display and the destination address pair in the client software for showing the destination address content The transcoding page answered.
Second aspect, the embodiment of the present disclosure provide a kind of Web page display apparatus, comprising:
First obtains module, for obtaining the http shape for destination address connection request of destination address server return State code;
Second obtains module, for further obtaining in http in the case where the status code is greater than first threshold Content-Length value;
Judgment module, for judging the destination address when the Content-Length value is not less than second threshold Whether dead link is hit;
Execution module, for when the destination address hits dead link, control to show the visitor of the destination address content Transcoding page corresponding with the destination address is shown in the software of family end.
The third aspect, the embodiment of the present disclosure additionally provide a kind of electronic equipment, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor It executes, so that at least one processor is able to carry out the net in any implementation of aforementioned first aspect or first aspect Page display methods.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of non-transient computer readable storage medium, the non-transient meter Calculation machine readable storage medium storing program for executing stores computer instruction, and the computer instruction is for making the computer execute aforementioned first aspect or the Webpage display process in any implementation of one side.
5th aspect, the embodiment of the present disclosure additionally provide a kind of computer program product, which includes The calculation procedure being stored in non-transient computer readable storage medium, the computer program include program instruction, when the program When instruction is computer-executed, the computer is made to execute the webpage in aforementioned first aspect or any implementation of first aspect Display methods.
Web displaying scheme in the embodiment of the present disclosure is directed to destination address including what acquisition destination address server returned The http status code of connection request;In the case where the status code is greater than first threshold, further obtain in http Content-Length value;When the Content-Length value is not less than second threshold, whether the destination address is judged The dead link of hit;When the destination address, which is that hit is dead, to be linked, control shows the client software of the destination address content It is middle to show transcoding page corresponding with the destination address.The scheme of the disclosure improves the usage experience of user.
Detailed description of the invention
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present disclosure, for this field For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of web displaying flow diagram that the embodiment of the present disclosure provides;
Fig. 2 is another web displaying flow diagram that the embodiment of the present disclosure provides;
Fig. 3 is another web displaying flow diagram that the embodiment of the present disclosure provides;
Fig. 4 is the Web page display apparatus structural schematic diagram that the embodiment of the present disclosure provides;
Fig. 5 is the electronic equipment schematic diagram that the embodiment of the present disclosure provides.
Specific embodiment
The embodiment of the present disclosure is described in detail with reference to the accompanying drawing.
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be practiced without these specific details.
The embodiment of the present disclosure provides a kind of Webpage display process.Webpage display process provided in this embodiment can be by a meter Device is calculated to execute, which can be implemented as software, or be embodied as the combination of software and hardware, which can To be integrally disposed in server, terminal device etc..
Referring to Fig. 1, a kind of Webpage display process that the embodiment of the present disclosure provides includes the following steps:
S101 obtains the http status code for destination address connection request that destination address server returns.
Client software be used to show web page contents provided by destination address (for example, http://www.xxxx.com), Client software can be operate in the application of Android platform, ios platform, windows platform or other operating system platforms Software.Before showing web page contents, client software can establish connection, and base with the server of third party content supplier Web page contents corresponding to destination address are obtained in the destination address that client software is got.
Unlike browser load web page contents, the scheme of the disclosure loads destination address by client software Provided web page contents need to judge based on destination address the connection status of http-server before load.
Referring to fig. 2, obtaining http status code may include steps of:
S201 establishes URL object, and the destination address is assigned to the URL object.
Specifically, can by establishing the object of URL type in the client, after client receives destination address, The destination address is assigned to URL object.Illustrative code is as follows:
URL a=new URL (" http://xx.xx.xx.xx:bb/c/d/e/f.html ")
S202 establishes connecting object for the URL object.
After obtaining URL object, new connecting object can establish based on the URL object, by the connecting object, Establish the connection between third-party server.
S203 receives the status code that destination address server is sent.
In order to receive the content of server return, the content object of character string type is established, is deposited by the content object The status code that third-party server is sent is stored up, the content in reading of content object can know specific status code.
S102 further obtains the Content- in http in the case where the status code is greater than first threshold Length value.
HTTP status code (HTTP Status Code) is 3 bit digitals to indicate web page server http response state Code.It is standardized by RFC 2616 and defines, and obtain RFC 2518, RFC 2817, RFC2295, RFC 2774, RFC 4918 etc. Specification extension.
1 HTTP status code example of table
Code Code description
200 (success) server has been successfully processed request.In general, this indicates that server provides the webpage of request.
201 (creation) requests successfully and server creates new resource.
202 (receiving) server has received request, but not yet handles.
203 (unauthorized information) server has been successfully processed request, but the information returned may be from another source.
204 (no content) server is successfully processed request, but without returning to any content.
205 (resetting content) server is successfully processed request, but without returning to any content.
206 (partial content) server is successfully processed part GET request.
The meaning that number since the range of status code is made of 3 bit digitals, and in different range represents is different, thus It may determine that whether status code is greater than first threshold (for example, 200), so that it is determined that http state whether there is problem.
Content-Length stem shows the size of entity body in message.This size contains research content, If compressed to file, Content-Length is exactly compressed size.Content-Length stem is exactly band There is the message of entity body that must use.Be to be able to detect server crash using Content-Length stem and Caused message truncation, and the shared multiple messages persistently connected are correctly segmented.
S103 judges whether the destination address hits when the Content-Length value is not less than second threshold Dead link.
From available Content-Length in http (head), Content-Length both presentation-entity length, Conveying length is indicated again.It can determine that the conveying length of message by server closing connection.In the header comprising message content In, if there is Content-length field, the corresponding value of the field must the length completely and inside message subject match.
It is possible thereby to obtain the value of Content-Length, for the object with normal web page contents, generally all There is the length value not less than certain numerical value (second threshold), by judging whether the value of Content-Length is not less than the Two threshold values, it can be determined that whether web page contents are normal.To further judge whether destination address hits dead link.
S104, when the destination address, which is that hit is dead, to be linked, control shows that the client of the destination address content is soft Transcoding page corresponding with the destination address is shown in part.
Dead link refers to the page invalidation, can not provide the user with the page of any valuable information.Dead link packet Include the dead chain of agreement and content two kinds of forms of dead chain.Under normal conditions, dynamic link can become under conditions of database is no longer supported At dead link, alternatively, some file or webpage move position, the link for being directed toward it is caused to become extremely to link.Web page contents are more Newly and change other links into, link originally also will become dead link.
By checking the http status code and Content-Length of server return, whether destination address can be determined The dead link of hit, when the destination address is hit extremely link, control shows the client software of the destination address content It is middle to show transcoding page corresponding with the destination address.
Transcoding page is the page comprising complete content in the relevant page of destination address stored in the server in advance, is turned Code page is stored in other different servers of destination address server.It, can by sending destination address to transcoding page server To obtain the corresponding transcoding page of destination address.
Referring to Fig. 3, according to a kind of specific implementation of the embodiment of the present disclosure, the method also includes: in the http Status code be greater than first threshold when, it is more serious to illustrate that destination address there is a problem of at this time, control client executing degrade Transcoding page operations.Degradation transcoding page, refers to and shows transcoding page on current page.It, can by executing degradation transcoding page operations The content being directly viewable in transcoding page is allowed users to, avoids only showing in blank such as " can not connect " on current page Hold.
Other than monitoring http status code, according to a kind of specific implementation of the embodiment of the present disclosure, described When Content-Length value is less than second threshold, client executing degradation transcoding page operations are controlled.
It is described the case where the status code is greater than first threshold according to a kind of specific implementation of the embodiment of the present disclosure Under, after further obtaining the Content-Length value in http, the method also includes:
Judge in web page contents corresponding to the destination address with the presence or absence of JSBridge;
If it exists, then further judge whether the text size of the web page contents is less than third threshold value, it is long to generate text Spend judging result;And
Determine whether to judge whether the destination address hits dead link based on the text size judging result.When described When the text size of web page contents is less than third threshold value, further judge whether the destination address hits dead link.
It is described to judge whether the destination address hits dead chain according to a kind of specific implementation of the embodiment of the present disclosure It connects, comprising:
Judge whether the destination address hits and presets dead interlinkage agreement;
If so, directly controlling display and the destination address pair in the client software for showing the destination address content The transcoding page answered.
It is described to judge whether the destination address hits dead chain according to a kind of specific implementation of the embodiment of the present disclosure It connects, further includes:
When the destination address, which is not hit, presets dead interlinkage agreement, further judge corresponding to the destination address Whether content hits dead link;
If so, directly controlling display and the destination address pair in the client software for showing the destination address content The transcoding page answered.
Corresponding with above method embodiment, referring to fig. 4, the embodiment of the present disclosure additionally provides a kind of Web page display apparatus 40, comprising:
First obtains module 401, for obtain destination address server return for destination address connection request Http status code.
Client software be used to show web page contents provided by destination address (for example, http://www.xxxx.com), Client software can be operate in the application of Android platform, ios platform, windows platform or other operating system platforms Software.Before showing web page contents, client software can establish connection, and base with the server of third party content supplier Web page contents corresponding to destination address are obtained in the destination address that client software is got.
Unlike browser load web page contents, the scheme of the disclosure loads destination address by client software Provided web page contents need to judge based on destination address the connection status of http-server before load.
Referring to fig. 2, obtaining http status code may include steps of:
S201 establishes URL object, and the destination address is assigned to the URL object.
Specifically, can by establishing the object of URL type in the client, after client receives destination address, The destination address is assigned to URL object.Illustrative code is as follows:
URL a=new URL (" http://xx.xx.xx.xx:bb/c/d/e/f.html ")
S202 establishes connecting object for the URL object.
After obtaining URL object, new connecting object can establish based on the URL object, by the connecting object, Establish the connection between third-party server.
S203 receives the status code that destination address server is sent.
In order to receive the content of server return, the content object of character string type is established, is deposited by the content object The status code that storage third-party server is sent can know specific status code by the content in reading of content object.
Second obtains module 402, for further obtaining http head in the case where the status code is greater than first threshold In Content-Length value.
HTTP status code (HTTP Status Code) is 3 bit digitals to indicate web page server http response state Code.It is standardized by RFC 2616 and defines, and obtain RFC 2518, RFC 2817, RFC2295, RFC 2774, RFC 4918 etc. Specification extension.
The meaning that number since the range of status code is made of 3 bit digitals, and in different range represents is different, thus It may determine that whether status code is greater than first threshold (for example, 200), so that it is determined that http state whether there is problem.
Content-Length stem shows the size of entity body in message.This size is to contain research content , for example file is compressed, Content-Length is exactly compressed size.Content-Length stem is exactly What the message with entity body must use.It is to be able to detect server crash using Content-Length stem Caused by message truncation, and the shared multiple messages persistently connected are correctly segmented.
Judgment module 403 is used for when the Content-Length value is not less than second threshold, with judging the target Whether dead link is hit in location.
From available Content-Length in http (head), Content-Length both presentation-entity length, Conveying length is indicated again.It can determine that the conveying length of message by server closing connection.In the header comprising message content In, if there is Content-length field, then the corresponding value of the field must completely and message subject inside length Match.
It is possible thereby to obtain the value of Content-Length, for the object with normal web page contents, generally all There is the length value not less than certain numerical value (second threshold), by judging whether the value of Content-Length is not less than the Two threshold values, it can be determined that whether web page contents are normal.To further judge whether destination address hits dead link.
Execution module 404, for when the destination address hits dead link, control to show the destination address content Transcoding page corresponding with the destination address is shown in client software.
Dead link refers to the page invalidation, can not provide the user with the page of any valuable information.Dead link packet Include the dead chain of agreement and content two kinds of forms of dead chain.Under normal conditions, dynamic link can become under conditions of database is no longer supported At dead link, alternatively, some file or webpage move position, the link for being directed toward it is caused to become extremely to link.Web page contents are more Newly and change other links into, link originally also will become dead link.
By checking the http status code and Content-Length of server return, whether destination address can be determined The dead link of hit, when the destination address is hit extremely link, control shows the client software of the destination address content It is middle to show transcoding page corresponding with the destination address.
Transcoding page is the page comprising complete content in the relevant page of destination address stored in the server in advance, is turned Code page is stored in other different servers of destination address server.It, can by sending destination address to transcoding page server To obtain the corresponding transcoding page of destination address.
Corresponding step in content performed by modules in above-mentioned Web page display apparatus and above method embodiment The content of middle execution is identical or corresponding, and details are not described herein.
Referring to Fig. 5, the embodiment of the present disclosure additionally provides a kind of electronic equipment 50, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor It executes, so that at least one processor is able to carry out Webpage display process in preceding method embodiment.
The embodiment of the present disclosure additionally provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit Storage media stores computer instruction, and the computer instruction is for executing the computer in preceding method embodiment.
The embodiment of the present disclosure additionally provides a kind of computer program product, and the computer program product is non-temporary including being stored in Calculation procedure on state computer readable storage medium, the computer program include program instruction, when the program instruction is calculated When machine executes, the computer is made to execute the Webpage display process in preceding method embodiment.
Below with reference to Fig. 5, it illustrates the structural schematic diagrams for the electronic equipment 50 for being suitable for being used to realize the embodiment of the present disclosure. Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, Digital Broadcasting Receiver Device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal are (such as vehicle-mounted Navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electronics shown in Fig. 5 Equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 5, electronic equipment 50 may include processing unit (such as central processing unit, graphics processor etc.) 501, It can be loaded into random access storage according to the program being stored in read-only memory (ROM) 502 or from storage device 508 Program in device (RAM) 503 and execute various movements appropriate and processing.In RAM 503, it is also stored with the behaviour of electronic equipment 50 Various programs and data needed for making.Processing unit 501, ROM 502 and RAM 503 are connected with each other by bus 504.It is defeated Enter/export (I/O) interface 505 and is also connected to bus 504.
In general, following device can connect to I/O interface 505: including such as touch screen, touch tablet, keyboard, mouse, figure As the input unit 506 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking The output device 507 of device, vibrator etc.;Storage device 508 including such as tape, hard disk etc.;And communication device 509.It is logical T unit 509 can permit electronic equipment 50 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although showing in figure The electronic equipment 50 with various devices is gone out, it should be understood that being not required for implementing or having all devices shown. It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 509, or from storage device 508 It is mounted, or is mounted from ROM 502.When the computer program is executed by processing unit 501, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request; From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein, The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
It should be appreciated that each section of the disclosure can be realized with hardware, software, firmware or their combination.
The above, the only specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, it is any Those familiar with the art is in the technical scope that the disclosure discloses, and any changes or substitutions that can be easily thought of, all answers Cover within the protection scope of the disclosure.Therefore, the protection scope of the disclosure should be subject to the protection scope in claims.

Claims (10)

1. a kind of Webpage display process characterized by comprising
Obtain the http status code for destination address connection request that destination address server returns;
In the case where the status code is greater than first threshold, the Content-Length value in http is further obtained;
When the Content-Length value is not less than second threshold, judge whether the destination address hits dead link;
When the destination address is the dead link of hit, control show in the client software of the destination address content display with The corresponding transcoding page of the destination address.
2. the method according to claim 1, wherein the method also includes:
When the http status code is greater than first threshold, client executing degradation transcoding page operations are controlled.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When the Content-Length value is less than second threshold, client executing degradation transcoding page operations are controlled.
4. according to the method described in claim 3, it is characterized in that, described the case where the status code is greater than first threshold Under, after further obtaining the Content-Length value in http, the method also includes:
Judge in web page contents corresponding to the destination address with the presence or absence of JSBridge;
If it exists, then further judge whether the text size of the web page contents is less than third threshold value, generate text size and sentence Disconnected result;And
Determine whether to judge whether the destination address hits dead link based on the text size judging result.
5. according to the method described in claim 4, it is characterized in that, described determined whether based on the text size judging result Judge whether the destination address hits dead link, comprising:
When the text size of the web page contents is less than third threshold value, judge whether the destination address hits dead link.
6. according to the method described in claim 5, it is characterized in that, described judge whether the destination address hits dead link, Include:
Judge whether the destination address hits and presets dead interlinkage agreement;
If so, control shows display transcoding corresponding with the destination address in the client software of the destination address content Page.
7. according to the method described in claim 6, it is characterized in that, described judge whether the destination address hits dead link, Further include:
When the destination address, which is not hit, presets dead interlinkage agreement, content corresponding to the destination address is further judged Whether dead link is hit;
If so, control shows display transcoding corresponding with the destination address in the client software of the destination address content Page.
8. a kind of Web page display apparatus characterized by comprising
First obtains module, for obtaining the http state for destination address connection request of destination address server return Code;
Second obtains module, for further obtaining in http in the case where the status code is greater than first threshold Content-Length value;
Judgment module, for whether judging the destination address when the Content-Length value is not less than second threshold The dead link of hit;
Execution module, for when the destination address hits dead link, control to show the client of the destination address content Transcoding page corresponding with the destination address is shown in software.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out Webpage display process described in aforementioned any claim 1-7.
10. a kind of non-transient computer readable storage medium, which stores computer instruction, The computer instruction is for making the computer execute Webpage display process described in aforementioned any claim 1-7.
CN201811615818.9A 2018-12-28 2018-12-28 Webpage display process and device Pending CN109740076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811615818.9A CN109740076A (en) 2018-12-28 2018-12-28 Webpage display process and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811615818.9A CN109740076A (en) 2018-12-28 2018-12-28 Webpage display process and device

Publications (1)

Publication Number Publication Date
CN109740076A true CN109740076A (en) 2019-05-10

Family

ID=66361491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811615818.9A Pending CN109740076A (en) 2018-12-28 2018-12-28 Webpage display process and device

Country Status (1)

Country Link
CN (1) CN109740076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437148A (en) * 2020-11-20 2021-03-02 北京奇艺世纪科技有限公司 Service request processing method and device, service server and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510195A (en) * 2008-02-15 2009-08-19 刘峰 Website safety protection and test diagnosis system structure method based on crawler technology
CN102857572A (en) * 2012-09-14 2013-01-02 北京星网锐捷网络技术有限公司 Method and device for processing HTTP (hyper text transport protocol) access request and gateway equipment
CN102929984A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Website failure searching method and device
CN103729477A (en) * 2014-01-26 2014-04-16 飞狐信息技术(天津)有限公司 Webpage data format detection method and device
CN104036053A (en) * 2014-07-07 2014-09-10 广州金山网络科技有限公司 Invalid link address processing method and device
CN105069011A (en) * 2015-07-07 2015-11-18 安一恒通(北京)科技有限公司 Webpage favorite management method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510195A (en) * 2008-02-15 2009-08-19 刘峰 Website safety protection and test diagnosis system structure method based on crawler technology
CN102857572A (en) * 2012-09-14 2013-01-02 北京星网锐捷网络技术有限公司 Method and device for processing HTTP (hyper text transport protocol) access request and gateway equipment
CN102929984A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Website failure searching method and device
CN103729477A (en) * 2014-01-26 2014-04-16 飞狐信息技术(天津)有限公司 Webpage data format detection method and device
CN104036053A (en) * 2014-07-07 2014-09-10 广州金山网络科技有限公司 Invalid link address processing method and device
CN105069011A (en) * 2015-07-07 2015-11-18 安一恒通(北京)科技有限公司 Webpage favorite management method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437148A (en) * 2020-11-20 2021-03-02 北京奇艺世纪科技有限公司 Service request processing method and device, service server and system

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
CN107656768B (en) Method and system for controlling page jump
CN109375918A (en) Interface rendering method, device, electronic equipment and the storage medium of small routine
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
CN106161145A (en) A kind of monitoring method and system of server system operation status information
CN109062626A (en) Exchange method, device and the equipment of Web page component and Native component
CN108494860A (en) WEB accesses system, WEB access methods and device for client
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN110046310A (en) The method and apparatus for analyzing the redirected link in the page
CN109902247A (en) A kind of method, apparatus and electronic equipment of page rendering
CN109743381A (en) Client and the long connection exchange method of server-side and device
CN113590974B (en) Recommendation page configuration method and device, electronic equipment and computer readable medium
CN105868244A (en) Link mark based webpage display method, mobile terminal and intelligent terminal
CN109684589A (en) Processing method, device and the computer storage medium of the comment data of client
CN106325936A (en) Rapid access method and rapid access system for application program
CN105100291A (en) Resource address generating method, device and system
CN111694757A (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN109684570A (en) Web information processing method and device
CN102662838A (en) Method and system for debugging Flash in browser
CN109800378A (en) Content processing method, device and electronic equipment based on custom browser
CN109885593A (en) Method and apparatus for handling information
CN109740076A (en) Webpage display process and device
CN109902726A (en) Biographic information processing method and processing device
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190510