Perl HTTP problem

Discussion in 'Programming' started by Michau, Apr 5, 2006.

  1. #1
    I have a spider written in Perl which uses LWP::UserAgent and HTTP::Request::Common. My computer has several IP addresses, so I want to choose from which IP address the script makes a connection. It is possible in PHP using curl, but I can'n find similar functionality in Perl. DO you know how to do it?
     
    Michau, Apr 5, 2006 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The only perl library where I think you can deal with this directly is IO::Socket. However, I am uncertain whether one can make that work. Unless someonen here has dealt with the problem, the best place to ask the question may be the Perl Monks website:

    http://www.perlmonks.org/

    I searched there, but I could not narrow anything down to something that looked like it fit your situation.
     
    clancey, Apr 5, 2006 IP
  3. Michau

    Michau Well-Known Member

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Thanks. I asked the question there and had an answer within two hours!
     
    Michau, Apr 6, 2006 IP