473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

HTTP 1.1 pipelining

can some one guide me how to use HTTP 1.1 pipelining in Python.

Client will generate 3 get requests continuously as shown below and
then read the response for each GET request.

Algorithm
----------
GET(ur1_l)
GET(url_2)
GET(url_3)
readResponse(url_1)
readResponse(url_2)
readResponse(url_3)

i m a python newbie and pls forgive me if this question sounds silly.
thanks in advance for any help.
Jul 18 '05 #1
3 2374
noviceUser wrote:
can some one guide me how to use HTTP 1.1 pipelining in Python.

Client will generate 3 get requests continuously as shown below and
then read the response for each GET request.

Algorithm
----------
GET(ur1_l)
GET(url_2)
GET(url_3)
readResponse(url_1)
readResponse(url_2)
readResponse(url_3)


I don't think this is how HTTP/1.1 pipelining works. It is still a
request-response protocol - the only "pipelining" is in the fact that it
doesn't require a separate connection session for each request-response
pair. That is:

HTTP/1.0:
<establish connection>
GET(url_1)
readResponse(url_1)
<close connection>
<establish connection>
GET(url_2)
readResponse(url_2)
<close connection>
<establish connection>
GET(url_3)
readResponse(url_3)
<close connection>

HTTP/1.1:
<establish connection>
GET(url_1)
readResponse(url_1)
GET(url_2)
readResponse(url_2)
GET(url_3)
readResponse(url_3)
<close connection>

Or maybe you are thinking of establishing parallel connections? In that
case look for some examples using threads and sockets...


--
C isn't that hard: void (*(*f[])())() defines f as an array of
unspecified size, of pointers to functions that return pointers to
functions that return void.
Jul 18 '05 #2
Ivan Voras <ivoras@__geri.cc.fer.hr> schreef:
I don't think this is how HTTP/1.1 pipelining works. It is still a
request-response protocol - the only "pipelining" is in the fact that it
doesn't require a separate connection session for each request-response
pair.


"Pipelining" != "Connection: Keep-Alive"

<http://www.mozilla.org/projects/netlib/http/pipelining-faq.html>

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #3
JanC wrote:
Ivan Voras <ivoras@__geri.cc.fer.hr> schreef:

I don't think this is how HTTP/1.1 pipelining works. It is still a
request-response protocol - the only "pipelining" is in the fact that it
doesn't require a separate connection session for each request-response
pair.

"Pipelining" != "Connection: Keep-Alive"

<http://www.mozilla.org/projects/netlib/http/pipelining-faq.html>


Thank you - it's clearer to me now!

But, isn't this a direct consequence of keep-alive?

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joshua W. Biagio | last post by:
Hello all, I am having difficulty getting the HTTP/1.1 support (i.e. pipelining and persistent connections) for the BaseHTTPServer library to work. When I change the line for the protocol in...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
3
by: ashesdesign | last post by:
Hi All, I am very new to php and even newer to XML. Can anyone please shed some light on how to post XML requests via HTTP. I have been searching high and low and have come across many...
5
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
4
by: Bob Badger | last post by:
Hi, Simple question (although I guess with a complicated answer). Is HTTP an async protocol? For instance, if I send a message to a c# webservice via http what is the protocol actually doing? ...
2
by: Rein Petersen | last post by:
Hi All, I've recently been intrigued with this notion of "Service Streaming": http://ajaxpatterns.org/HTTP_Streaming in which you make use of the webserver and browsers ability to maintain...
2
by: Rod | last post by:
Hi, I have a frameset with two frames. The .aspx page for each frame contains a button with a server click event handler assigned. The server code for one button runs a time consuming process,...
4
by: swq22 | last post by:
Which python module is capable of pipelining http requests? (I know httplib can send mulitple requests per tcp connection, but in a strictly serial way. )
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.