Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to test if site/server/whatever has ability to pipeline HTTP request.

So far, I think it is possible to send several request through one curl session, like:
curl http://www.example.com/1.html http://www.example.com/main.css http://www.example.com/2.html

Is possible to use below mentioned to simulate pipelining and how can I actually verify than pipelining was used?

I'm laso thinking about using netcat, send few requests and verify if it'll came back in correct order (as requested by RFC)

Could you give me some hints about how to verify a content was pipelined? (At the best on linux, but is not necessary.)

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I just checked with tcpdump, and it looks like the simple invocation of curl you're suggesting doesn't actually pipeline requests. The man page states they are fetched sequentially, which also suggests no pipelining.

When I've tested this in the past, I've just pasted the complete HTTP 1.1 requests into a telnet session.

To check, keep a tcpdump running in another window, eg "tcpdump -nli any -s0 -xX host 1.2.3.4 and port 80". If you try the curl commandline, you'll see that the first request is sent, a response is delivered, and then the second one is sent. If you are correctly pipelining, you should be able to see multiple GET lines being sent out before any response data comes back.

This feels a bit like a homework question, so I'm going to leave you there.

share|improve this answer
    
Well, it is not homework :), I was unable figure out, how can i determine the requests are really pipelined, so I shall not receive any response between set of requests? –  Ency Apr 5 '11 at 10:23
    
OK then :). If the requests are really pipelined, you should see both requests going out before the first response comes back. Did you get the tcpdump working ok? Without tcpdump or similar (eg, wireshark) it's basically impossible to verify that you're actually seeing pipelined requests –  Daniel Lawson Apr 5 '11 at 22:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.