curl-and-python

Curl RTSP Commands not Available in Python?

From: zon3d . <zon3d_at_hotmail.com>
Date: Wed, 7 Mar 2012 22:25:15 +1100

I am trying to use the Curl RTSP commands that are listed on this page, but they do not seem to be working. Supposedly setopt(option, value) corresponds to curl_easy_setopt in libcurl, where option is specified with the CURLOPT_* constants in libcurl, without the CURLOPT_ prefixes. However for the RTSP options, it does not work.
For example:

c.setopt(pycurl.RTSP_REQUEST, RTSPREQ_OPTIONS)c.setopt(pycurl.RTSP_STREAM_URI, uri)
The error that comes up is: "AttributeError: 'module' object has no attribute 'RTSP_REQUEST'"

Does anyone know what I am doing wrong?

Thank you.

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2012-03-07