What combination and permutation of version number can be used in request and response message

Discussion in 'CCENT / CCNA' started by shivaji, May 30, 2022.

  1. shivaji

    shivaji Bit Poster

    20
    0
    2
    You can ignore rest of the post and just tell me the version number combinations that are allowed for persistent connections and little bit of why. I thought only 1.1 in request and 1.1 in response was allowed but I am seeing textbooks which are using combinations of 1.0 and 1.1, and 1.0 and 1.0 in request and response messages.


    Rest of the post-:


    [​IMG]

    should not we use 1.1 there as that is the version of http for persistent connection? I don’t understand this.


    My confusion came due to this paragraph in the book.


    [​IMG]

    HTTP 1.0 is non-persistent whereas HTTP 1.1 is persistent.

    Here in figure 8-9 b), we are using persistent connection. But the version of HTP we are using is 1.0.

    Remaining page just for context(same page as confusion)-:

    [​IMG]

    And for simplicity can I just used 1.1 both in request and response in these figures for persistent connections?





    BELOW THIS ISN’T REQUIRED TO BE READ FOR ANSWERING THIS QUESTION

    Not sure if they are related to my question, but I found them while googling about the issue.

    According to RFC-:


    “An HTTP client SHOULD send a request version equal to the highest

    version for which the client is at least conditionally compliant, and

    whose major version is no higher than the highest version supported

    by the server, if this is known. An HTTP client MUST NOT send a

    version for which it is not at least conditionally compliant.”


    Not sure exactly what this would translate to.


    wanted to share stackoverflow link here. could not share.

    “An HTTP server SHOULD send a response version equal to the highest version for which the server is at least conditionally compliant, and whose major version is less than or equal to the one received in the request. An HTTP server MUST NOT send a version for which it is not at least conditionally compliant. A server MAY send a 505 (HTTP Version Not Supported) response if cannot send a response using the major version used in the client's request.”


    This means-:

    if server supports 1.1, then for both 1.1 and 1.0 requests, it should respond with 1.1 response

    if server supports only 1.0, then respond 1.1 request with 1.0 response
     

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.