CURL : Aborting the IP

Discussion in 'PHP' started by seokochin, Nov 19, 2008.

  1. #1
    I am having problem with accessing a site with proxy IPs using curl.

    It works fine in Zend Framework.But showing error as :
    What may be the reason ?
     
    seokochin, Nov 19, 2008 IP
  2. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Post some code for us to take a look at .
     
    atlantaazfinest, Nov 19, 2008 IP
  3. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    here is the Code :

    please help
     
    seokochin, Nov 19, 2008 IP
  4. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Add these opts.
    curl_setopt($ch, CURLOPT_PROXYPORT, "PROXY PORT HERE NOT IN THE URL");

    also if you are using socks5 you have to specify it with CURLOPT_PROXYTYPE
     
    atlantaazfinest, Nov 19, 2008 IP
  5. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It is not working.I just include the port with the IP (197.232.23.12:8080).
     
    seokochin, Nov 19, 2008 IP
  6. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    take it out of the IP and put it in the port still doesnt work?
     
    atlantaazfinest, Nov 19, 2008 IP
  7. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    or better yet change if(curl_exec($ch) === false) to if(curl_exec($ch) == false)
     
    atlantaazfinest, Nov 19, 2008 IP