curlopt_interface doesn't work

Discussion in 'PHP' started by boss132854, Oct 5, 2006.

  1. #1
    Hello. I have a problem. When I don't use the curlopt_interface option, the site I'm trying to open shows the ip address of my host. Now, I would like to set curlopt_interface to some other value, like a real ip address of one of my users that is currently viewing some webpage through my curl page. Basically, if I do this curl_setopt($ch, "CURLOPT_INTERFACE", "88.156.26.56");, it doesn't work, but if I do this curl_setopt($ch, "CURLOPT_INTERFACE", "127.0.0.1");, it works. Does anybody know how to solve that? Thanks.
     
    boss132854, Oct 5, 2006 IP
  2. edD

    edD Peon

    Messages:
    146
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm really not sure, but I think the interface name, ip address, or host name must belong to the local machine.

    http://us3.php.net/curl_setopt
     
    edD, Oct 5, 2006 IP
  3. boss132854

    boss132854 Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, probably. Anyway, thanks for reply.
     
    boss132854, Oct 5, 2006 IP