Python check status of URL stream -


i'm trying use python check if mjpeg stream url alive or not.

i've tried following:

 connection = urlopen('http://localhost/videostream.cgi'), timeout=10)  response = connection.getcode()  connection.close() 

with no luck, times out of gives error.

if view status in firebug or chrome dev toolbar, status "pending" instead of "200".

is there way check make sure it's not 404 or other error?

cheers, ben

turns out camera web server.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -