Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = $_GET["url"];
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_VERBOSE, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)");
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, true);
- $post = array(
- "photo"=>"@photo.jpg",
- );
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- $response = curl_exec($ch);
- echo $response;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement