Http Request

Posted on 2009-04-19
Last Modified: 2012-06-21
a index page contains some text and 2 images
when i use telnet "GET http/1.1"  i am supposed to get three response messages
why i am only getting one response message instead
can anyone plz help me on this?
Question by:emeraldpiggy
    LVL 92

    Assisted Solution

    because each get only returns one response
    you need to send 3 GET's, one for each resource required.


    Author Comment

    hi objects
    thanks for the reply
    arent we supposed to get 3 response with 1 get?
    cuz its http 1.1? (multiply objects can be sent over single TCP connection between client and server)

    plz clarify
    LVL 92

    Assisted Solution

    no, that would require telnet to interpret the html and work out what else needed to requested. telnet know nothing about http.


    Author Comment

    thanks object
    my mistake
    what if we use the browser sent one request ("GET http/1.1")
    then according to the theory (multiply objects can be sent over single TCP connection between client and server) 1 request can get 3 response right?

    thanks again for your help object
    LVL 92

    Assisted Solution

    multiple GET requests would still need to bent (which could use the same tcp connection).
    otherwise how would the server know what to return.

    LVL 51

    Accepted Solution

    > 1 request can get 3 response right?
    no, 1 request gets exactly one response
    keep-alive connections just mean that the same connection can be used for multiple get requests

    you can test with telnet by sending following header right after the GET line:


    then telnet does not close the connection and you can type in the next request

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
    A few customers have recently asked my thoughts on Password Managers.  As Security is a big part of our industry I was initially very hesitant and sceptical about giving a program all of my secret passwords.  But as I was getting asked about them mo…
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now