0

I'm trying to use python to check if a MJPEG stream url is alive or not.

I've tried the following:

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

With no luck, it just times out of gives an error.

If I view the status in a firebug or chrome dev toolbar, the status is always "Pending" instead of "200".

Is there a way to check to make sure it's not a 404 or other error?

Cheers, Ben

Ben Kilah
  • 3,445
  • 9
  • 44
  • 56

1 Answers1

0

Turns out it was my camera web server.

Ben Kilah
  • 3,445
  • 9
  • 44
  • 56