cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Proxy and hide ip address problem

From: beshoo <beshoo_at_beshoo.com>
Date: Mon, 4 Feb 2002 21:40:07 +0300

HI :)

i am using the CURL to make a post to the target scipt. from my webserver but i like to know if the target script Block my web site Ip address so i can not make any Post so can i hide my ip address to be like anonymous
please help > and be know that i made a search on your mailing but no luck

see this EG

i used the prxy function put do you have any ideia ?

but it is not working :(

please help .

<?php
$url = "http://www.google.com";
$user_agent = "Opera rulez";
$proxyname = "http://proxy.whirlpool.com";
$proxyport = "8080";
$ch = curl_init();
  curl_setopt ($ch, CURLOPT_URL, $url);
  curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt ($ch, CURLOPT_TIMEOUT, 10);
  curl_setopt ($ch, CURLOPT_PROXY, "$proxyname:$proxyport");
$result = curl_exec ($ch);
  curl_close ($ch);
  echo $result;
?>

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-02-02