nopaste
Home
All pastes
Popular pastes
Recent pastes
Solved webcam shit!!!
By: PnE | Date: Oct 8 2008 20:56 | Format: PHP | Expires: never | Size: 517 B | Hits: 1281
Edit & repaste
|
raw paste
|
Request removal
<?php
$ch
=
curl_init
(
)
or
die
(
curl_error
(
)
)
;
curl_setopt
(
$ch
,
CURLOPT_URL
,
"http://lan:85/cgi-bin/video.jpg?size=3"
)
;
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
)
;
curl_setopt
(
$ch
,
CURLOPT_HTTPAUTH
,
CURLAUTH_BASIC
)
;
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
'user:pass'
)
;
// IF required
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYHOST
,
0
)
;
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
0
)
;
$data1
=
curl_exec
(
$ch
)
or
die
(
curl_error
(
)
)
;
header
(
"Content-type: image/jpeg"
)
;
print_r
(
$data1
)
;
echo
curl_error
(
$ch
)
;
curl_close
(
$ch
)
;
?>
Latest pastes
K.I.Ds Videos-Pictures Update July 22
5 days ago
Se..xy Girl With Vegetables
10 days ago
Weather is outragous
11 days ago
Where can i watch Colin from Accounts season 2
13 days ago
Wanted to know what your conviction is on this theme
14 days ago