zon3d . | 7 Mar 2012 07:25
Picon
Favicon

cURL and RTSP - Only Sending OPTIONS command

Hi there,

I have the following code:

<?php
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,"rtsp://v4.cache5.c.youtube.com/CjYLENy73wIaLQksUyxySIhRWBMYESARFEIJbXYtZ29vZ2xlSARSBXdhdGNoYIvds6zy7YCrTww=/0/0/0/video.3gp");
curl_setopt($ch,CURLOPT_CUSTOMREQUEST,"OPTIONS");
curl_setopt($ch,CURLOPT_USERAGENT,"LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25)");
$result = curl_exec($ch);
echo $result;
print_r(curl_getinfo($ch));
?>

The request that it sends is - Request: OPTIONS * RTSP/1.0   - that is not right. How come the URL is not where the * is? That is where it should be.

Secondly, even if I change the CustomRequest line to: curl_setopt($ch,CURLOPT_CUSTOMREQUEST,"DESCRIBE");  it still only sends Request: OPTIONS * RTSP/1.0 

Can anyone help me out? Thanks.
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Renato Bonicio | 28 Mar 2012 13:58
Picon

Faça parte da minha rede no LinkedIn

 
 
 
 
 
De Renato Bonicio
 
Desenvolvedor iOS na GoNow
São Paulo e Região, Brasil
 
 
 

curl,

Eu gostaria de adicioná-lo à minha rede profissional no LinkedIn.
-Renato

 
 
 
 
 
 
Você está recebendo convites de conexão por e-mail. Cancelar inscrição
© 2012, LinkedIn Corporation. 2029 Stierlin Ct. Mountain View, CA 94043, USA
 
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Gmane