beshoo | 4 Feb 2002 19:35

help

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;
?>
beshoo | 4 Feb 2002 19:40

Proxy and hide ip address problem

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;
?>
beshoo | 4 Feb 2002 01:53

hi all :) please help >>>>

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 but no luck

 

 

=======================================================

Walid Al Masri | 5 Feb 2002 14:33

Re: hi all :) please help >>>>

Oh thank you Dave for your RE:
but what i am loking for to change my ip address when i made any post look
like using a proxy server or somthing
BTW i am sorry that i sent 2 message but i am new on this mail system :)
what i am thinking about is using PROXY cmmand that curl support it :
<?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;
?>

but it is not work with me i dont know if it has any error in the coding
section :)

so please help to find my target :)

----- Original Message -----
From: "Dave Withnall" <withnall <at> connexus.net.au>
To: <curl-and-php <at> lists.sourceforge.net>;
<curl-and-php <at> lists.sourceforge.net>
Sent: Monday, February 03, 2003 10:29 AM
Subject: Re: hi all :) please help >>>>

> If you can see the website then theres no point blocking your ip address.
> If they are blocking your ip address from doing a post then you should
> contact the site adminstrators to find out why. perhaps theres a good
> reason for it. perhaps something else has gone wrong.
>
> If you do find a way to hide your ip address then you wont get any
feedback
> from the website so you don't know if it worked or not. but that feature
is
> not something built into cURL and you'd be better looking elsewhere.
>
> D.
>
> At 03:53 AM 4/02/2002 +0300, beshoo wrote:
> >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 but no luck
> >
> >
> >
> >
> >
> >=======================================================
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
>

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

beshoo | 3 Feb 2002 02:44

Re: hi all :) please help >>>>

Oh thank you Daniel for your help>
ok i under stand that i cant do that to fake the IP address.
but what i believe that if i tunnel my POST thru another Proxy server the IP
will be the New proxy server ip that i use it ,
cURL support that .. with this function :

 curl_setopt ($ch, CURLOPT_PROXY, "$proxyname:$proxyport");

but i test it with my company proxy server it is ( proxy.scs-net.org:8080)
it is not work :( may be i made some thing that`s not right in my coding .
and this function will be helpfull if i understan how can i use it

curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1 );

Please help me to do it :):)

----- Original Message -----
From: "Daniel Stenberg" <daniel <at> haxx.se>
To: "curl and php list" <curl-and-php <at> lists.sourceforge.net>
Sent: Monday, February 03, 2003 6:52 PM
Subject: Re: hi all :) please help >>>>

> On Tue, 5 Feb 2002, Walid Al Masri wrote:
>
> > but what i am loking for to change my ip address when i made any post
look
> > like using a proxy server or somthing
>
> If you use a direct TCP/IP connection with the server, there is absolutely
NO
> way you can hide your IP. The server MUST know it to be able to send back
the
> data to you.
>
> It is not possible to fake it using curl.
>
> --
>  Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
>

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

Walid Al Masri | 3 Feb 2002 14:48

Re: hi all :) please help >>>>

Thank you for you helpfull information :)
please help me to find how can I write the correct code using
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1 );

or do u have any reference?

----- Original Message -----
From: "Daniel Stenberg" <daniel <at> haxx.se>
To: "curl and php list" <curl-and-php <at> lists.sourceforge.net>
Sent: Tuesday, February 04, 2003 11:26 AM
Subject: Re: hi all :) please help >>>>

> On Sun, 3 Feb 2002, beshoo wrote:
>
> > ok i under stand that i cant do that to fake the IP address. but what i
> > believe that if i tunnel my POST thru another Proxy server the IP will
be
> > the New proxy server ip that i use it , cURL support that .. with this
> > function :
> >
> >  curl_setopt ($ch, CURLOPT_PROXY, "$proxyname:$proxyport");
> >
> > but i test it with my company proxy server it is
 proxy.scs-net.org:8080)
> > it is not work :(
>
> Well, that is how you use a HTTP proxy. You could perhaps consider
> elaborating a bit on the "it is not work" part.
>
> > may be i made some thing that`s not right in my coding . and this
function
> > will be helpfull if i understan how can i use it
> >
> > curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1 );
>
> If you want to tunnel the protocol trough the proxy, yes, then this is the
> option for you.
>
> --
>  Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
>

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

beshoo | 3 Feb 2002 20:58

Re: hi all :) please help >>>>

OK ....
I think you understand my problem :(
see with me please.
I have a PHP script it is make a POST to a web application it is a FORUM
My script is on my Vhost it is a Normal web host like any one over the net
:) but it is support cURL
OK.
but the target forum wont me to go there site to make the post but what I
like is to make the POST from my server.
Just to practice on POST by cURL
the target forum make a BLOCK on my web host ip
so I can not make any POST by my web host to that forum. cos they BLOCK my
web host IP address.
Hope you understand me .
OK
what I think that I can post MY data using some proxy(s) address cos what I
know that if I use Proxy the IP address will be
for Proxy that I use it :) (Sorry for my bad English)
I test that using this code :
--------------------------------------------------------
<?php
$ch = curl_init();
// the target site I wont to POST my data to :
curl_setopt($ch, CURLOPT_URL,"http://www.google.com");
// the proxy that i use it:
curl_setopt ($ch, CURLOPT_PROXY, "12.151.162.12:8080");
// I dont know if this function has to be used:"HTTPPROXYTUNNEL"
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
// Post command
curl_setopt($ch, CURLOPT_POST, 1);
// the VAR in the post command
curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1");
curl_exec ($ch);
curl_close ($ch);
?>
--------------------------------------------------------
when I Test the script that I made it I have some thing odd :)
actually it is work but what I have is look like when u type some url and
the url is on the PROXY Blocked list
and it say that the proxy can not access the page
but u have to know that if you test the page on a normal conection using
that proxy the page will be work fine !!!!
I Do not know if I become clear with this section of my problem may be my
bad English is my problem :) SORRY FOR THAT that what is happened with me
hope you help me
and by the way can you test my script please to see what I have :)
Please and I will be appreciative for you Mr.Daniel .
------------------------------------------------------------------
beshoo

----- Original Message -----
From: "Daniel Stenberg" <daniel <at> haxx.se>
To: "curl and php list" <curl-and-php <at> lists.sourceforge.net>
Sent: Tuesday, February 04, 2003 6:05 PM
Subject: Re: hi all :) please help >>>>

> On Sun, 3 Feb 2002, Walid Al Masri wrote:
>
> > Thank you for you helpfull information :)
>
> It's not easy being helpful when you don't tell us what your problem is.
>
> > please help me to find how can I write the correct code using
curl_setopt
> > ($ch, CURLOPT_HTTPPROXYTUNNEL, 1 );
>
> I doubt very much that you want to use that option.
>
> Using that method, curl will use CONNECT to the proxy and then fire off
GET
> to it, assuming it will be tunneled to the remote host. If you can't make
it
> work using the normal proxy way, I can't see how this will work.
>
> --
>  Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
>

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


Gmane