How write a IGMP V3 request

2012-10-01 Thread pedr0
Hello, I wrote this piece of code but I am not able to modify it in order to use IGMPV3 and use the source feature of IGMPV3, how can I add a membership for a group on an interface for specified source ? Something like this piece of code (C under Linux):

HTTP ResponseNotReady

2011-10-04 Thread pedr0
Hi at all, I don't understand why, in this piece of code, i catch the raise ResponseNotReady(self.__state) http.client.ResponseNotReady: Request-sent EVERY time I run this piece of code: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request

Re: HTTP ResponseNotReady

2011-10-04 Thread pedr0
Hi solved this problem, I have to add: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request http_connection.request(POST, /,params,headers=headers_) r1 = http_connection.getresponse() r1.read() // THIS ONE #second request

Re: HTTP ResponseNotReady

2011-10-04 Thread pedr0
Mumble mumble... I described bad my question I think, yes I read that, but maybe is not a correct way of working. The http request I did retrieve (every time) an empty response, when I print the read() result call the result is the same of the sample you are talking about.

HTTP Persistent connection

2011-10-03 Thread pedr0
request It works using two different socket, I can see that using wireshark, each request use two different source port. I am using Python 2.6.1, some can suggest me how solve problem ? Thanks in advance. \pedr0 -- http://mail.python.org/mailman/listinfo/python-list

Re: HTTP Persistent connection

2011-10-03 Thread pedr0
I forget to insert second request. host = www.higuys.net #first request http_connection = httplib.HTTPConnection(host) http_connection.request(method,url_first,headers=headers) response = http_connection.getresponse() #second request http_connection = httplib.HTTPConnection(host)

Re: HTTP Persistent connection

2011-10-03 Thread pedr0
Because I am a newbye!!! Thanks a lot for your answer! -- http://mail.python.org/mailman/listinfo/python-list