• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

Http Request

hi
a index page contains some text and 2 images
when i use telnet "GET http://www.abc.org 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?
thanks
0
emeraldpiggy
Asked:
emeraldpiggy
  • 3
  • 2
4 Solutions
 
objectsCommented:
because each get only returns one response
you need to send 3 GET's, one for each resource required.

0
 
emeraldpiggyAuthor Commented:
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
0
 
objectsCommented:
no, that would require telnet to interpret the html and work out what else needed to requested. telnet know nothing about http.

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
emeraldpiggyAuthor Commented:
thanks object
my mistake
what if we use the browser sent one request ("GET http://www.abc.org 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
0
 
objectsCommented:
multiple GET requests would still need to bent (which could use the same tcp connection).
otherwise how would the server know what to return.

0
 
ahoffmannCommented:
> 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:

connection:keep-alive

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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now