1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

SOme help with CURL please

Discussion in 'PHP' started by JEET, Jan 16, 2009.

  1. #1
    Hi,
    I got to download a webpage using curl, and post the headers of my browser. I also need rotate my IP each time. Can I do this?
    Please help me with some code, or tutorial etc.
    Thanks :)
    SEMrush
     
    JEET, Jan 16, 2009 IP
    SEMrush
  2. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #2
    harrisunderwork, Jan 16, 2009 IP
    JEET likes this.
  3. JEET

    JEET Notable Member

    Messages:
    3,622
    Likes Received:
    455
    Best Answers:
    19
    Trophy Points:
    235
    #3
    Hi,
    Thanks for the script, but I'm not able to rotate IP. Do I put the curl script somewhere and access it via proxy, or is it something else I'm not getting? :)
    Can you please recommend some proxies as well?
    Thanks :)
     
    JEET, Jan 16, 2009 IP
  4. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Well there are various proxy lists, gather some of them, put them in an array, randomize them and feed it to curl.
     
    harrisunderwork, Jan 16, 2009 IP
  5. JEET

    JEET Notable Member

    Messages:
    3,622
    Likes Received:
    455
    Best Answers:
    19
    Trophy Points:
    235
    #5
    Thanks :) Added green reputation points. :)
    Regards
     
    JEET, Jan 16, 2009 IP
  6. JEET

    JEET Notable Member

    Messages:
    3,622
    Likes Received:
    455
    Best Answers:
    19
    Trophy Points:
    235
    #6
    Hi,
    There's another problem here. I was trying to use proxies setup using phproxy script, but when I enter a URL it becomes something like:
    index.php?q=aHRklwjichwuxjihrhq
    How do I decode this thing?
    Is there some other proxies (setup using some other script) I can use?
    Thanks :)
     
    JEET, Jan 16, 2009 IP