Curl - I need help !

Discussion in 'PHP' started by polishseller, Dec 2, 2008.

  1. #1
    Hi, i have a problem with my script. I want, connect with site, by proxy . My script :

    <?
    
    
    $cUrl = curl_init();
    curl_setopt($cUrl, CURLOPT_URL, 'whatismyip.com');
    curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($cUrl, CURLOPT_HTTPPROXYTUNNEL, 1);
    curl_setopt($cUrl, CURLOPT_PROXY, '212.241.180.239:81');
    
    $PageContent = curl_exec($cUrl);
    curl_close($cUrl);
       
       ?>
    HTML:
    This is not working :/ Please help me. Bye !
     
    polishseller, Dec 2, 2008 IP
  2. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #2
    hello

    the proxy ip 212.241.180.239:81 is down , you need add a working proxy , if no now work

    Best
     
    Estevan, Dec 2, 2008 IP
  3. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3


    Why can't I use proxy site instead of IP ?
     
    seokochin, Dec 2, 2008 IP
  4. polishseller

    polishseller Peon

    Messages:
    200
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, i change proxy IP. Now it work, but, this don`t change my ip :/ Please help me .
     
    polishseller, Dec 2, 2008 IP
  5. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It won't change your IP.It will get that site to your server using that proxy IP.
     
    seokochin, Dec 2, 2008 IP
  6. polishseller

    polishseller Peon

    Messages:
    200
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I do not understand . I want change ip script. Look :


    HOSTING WITH SCRIPT SITE
    =====>>
    cUrl ip = 111 cUrl ip = 6346
     
    polishseller, Dec 2, 2008 IP
  7. varun089

    varun089 Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    if the prob still persists the solution is the ur hosting would not have curl function

    like they wouldnt have given u previlages to run curl functions in php

    reason is :-it eats bw big time

    like my host :(
     
    varun089, Dec 2, 2008 IP
  8. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    but most of the hosting support curl now a days
     
    seokochin, Dec 2, 2008 IP
  9. varun089

    varun089 Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    @^^ most of them have but hosting providers would have disabled that function for perticular class of hosting :-(
     
    varun089, Dec 2, 2008 IP
  10. polishseller

    polishseller Peon

    Messages:
    200
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ok, now works. I must, ANONYMOUS proxy, no transparent :). Bye
     
    polishseller, Dec 3, 2008 IP