Leandro Pedrosa | 8 Jul 2011 17:16
Picon

Live Stream RTSP + CURL PHP

This is my first time I went into the mailing list.

I wonder how do I transmit the live stream from the camera ip through the curl using php...

I used this code below, but do not know if it is correct.

$ ch = curl_init ();

curl_setopt ($ ch, CURLOPT_URL, rtsp: / / ip: 554/video1 ");
curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, false);
curl_setopt ($ ch, CURLOPT_USERPWD, "user: psw");
curl_setopt ($ ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$ output = curl_exec ($ ch);
$ info = curl_getinfo ($ ch);
curl_close ($ ch);

Because I need to transmit the live stream without the user enters the user and the password of the camera.

If you can help me, thank you very much.

 

Att,

 

Leandro Pedrosa Rodrigues

Programador

Prolins

 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Henry Steinberg | 9 Jul 2011 04:12
Favicon

SSL pages don't work when loaded with a proxy

I'm trying to connect to Linkedin (ssl) with a proxy, but despite the connection working on chrome with the same details, it fails to load even an error page on curl. This is the code I'm using:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.linkedin.com/reg/join');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_PROXY, '217.196.235.20:80');
curl_setopt($ch, CURLOPT_PROXYPORT, 80);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$contents = curl_exec($ch);
print $contents;
curl_close($ch);
Thanks
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Daniel Stenberg | 11 Jul 2011 23:44
Picon
Favicon
Gravatar

Re: SSL pages don't work when loaded with a proxy

On Sat, 9 Jul 2011, Henry Steinberg wrote:

> I'm trying to connect to Linkedin (ssl) with a proxy, but despite the 
> connection working on chrome with the same details, it fails to load even an 
> error page on curl. This is the code I'm using:

What return code do you get? Which libcurl version? What does the command line 
tool curl say against the same URL?

--

-- 

  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php


Gmane