Cause analysis of aborted in result of HttpWatch [map]

Source: Internet
Author: User

We sometimes see values for non-HTTP status code (status codes) in the process of Web debugging using HttpWatch, for example: (aborted).

  

(aborted) is one of the three non-HTTP status code defined in HttpWatch, which is used in HttpWatch to indicate that the server has not returned any Status code to the request issued:

    • L (aborted)
    • L (Cache)
    • L error_*

The meaning of the last two values is obvious. (cache) is used to indicate that the content returned in the request is not retrieved from the server but is retrieved directly from the browser's cache. Therefore, the server does not return status Code if there is no real exchange of information with the server. The other is error_*, which is used to indicate that an error occurs when the Internet Explorer requests data to cause the request to fail.

(aborted) is more complex than the above two, which occurs when IE begins processing a request for a specified URL, but the request is aborted. The following are typical examples of several requests being aborted:

    1. During a page load (for example, a picture is being downloaded), the user taps a link in the page or clicks the browser's Stop button. In this case, ie aborts all activation status requests, and the result of these aborted requests in HttpWatch is displayed (aborted).
    2. When the user triggers an hover event for an element (hover requests), and the mouse moves out of the zone where the hover event is bound during the request. In this case, requests that have not yet been completed will be forcibly discarded by IE.
    3. Sometimes developers use Ajax to request data, but instead of waiting for the server to return data and continue to do other processing, requests that should be received will be forcibly discarded by IE.

In fact, the core of the above question is "will the request received by the server be (forcibly) aborted?" The answer to this question depends on when the request will be discarded. By looking at HttpWatch's timing chart, you can clearly see when the request was canceled.

Here is an example of a request being aborted during a connection:

  

In the example above, the server does not receive a request from the client because the request has not yet reached the send stage

The following aborted scenario occurs when IE is waiting for the server to return the request results

  

The three types of information that are defined in HttpWatch are primarily intended to reflect some of the information that the user interacts with the site (non-status Code), rather than to indicate that the request has been wrong

Cause analysis of aborted in result of HttpWatch [map]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.