Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
Well in case someone need to do this... this is the code.. very easy at all.. header ('Content-type: image/jpeg'); $ch =curl_init("http://contelec.sytes.net:2002/IMAGE.JPG?cidx=20072261649239281";); curl_setopt($ch,CURLOPT_USERPWD,"invitado:invitado"); curl_exec($ch); curl_close($ch);

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
2007/3/12, Richard Lynch <[EMAIL PROTECTED]>: Instead of trying to re-invent the authentication wheel, just use http://php.net/curl wow!! Thanks you A LOOOT!!! thats amazing!!! On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: > hi, i install 4 IP cameras and i want to extract

Re: [PHP] Image from a secure site

2007-03-12 Thread Richard Lynch
Instead of trying to re-invent the authentication wheel, just use http://php.net/curl On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote: > hi, i install 4 IP cameras and i want to extract the images from their > web interface that is protected be a username and password (HTTP AUTH) > and show i

[PHP] Image from a secure site

2007-03-08 Thread Manolet Gmail
hi, i install 4 IP cameras and i want to extract the images from their web interface that is protected be a username and password (HTTP AUTH) and show it into another system. so i do a function to connect to it and get the image... function subd($host,$port,$ownername,$passw,$request) { $sock =