Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Setting outgoing IP address in LWP::UserAgent

by ptum (Priest)
on May 29, 2009 at 00:47 UTC ( #766783=perlquestion: print w/replies, xml ) Need Help??

ptum has asked for the wisdom of the Perl Monks concerning the following question:

I'm new to using LWP or Mechanize against HTTPS, and having some trouble. Because I'm on a multi-homed server, I need to specify the outgoing IP Address (firewall rules associated with the port). Is there a way for me to set the outgoing IP address within a user agent? Also, I'm getting a "500 SSL negotiation failed" message even though I've set the credentials:


Any suggestions?

No good deed goes unpunished. -- (attributed to) Oscar Wilde

Replies are listed 'Best First'.
Re: Setting outgoing IP address in LWP::UserAgent
by lakshmananindia (Chaplain) on May 29, 2009 at 03:12 UTC
Re: Setting outgoing IP address in LWP::UserAgent
by marcussen (Pilgrim) on May 29, 2009 at 02:30 UTC

    I can't answer your question concerning the outgoing IP, but SSL negotiation failed does not immideately indicate that your login failed, but rather that the encryption scheme used to transmit the credentials failed to initialize. You should consider that a type of "connection failed" errors. There can be a great number of reasons why this happens, such as missing certificate files, incorrect keys, and more. If you could provide more information on the matter we might be better positioned to shed some light on the issue.

    Confucius says kill mosquito unless cannon
Re: Setting outgoing IP address in LWP::UserAgent
by NetWallah (Canon) on May 29, 2009 at 04:44 UTC
    "Yes we can" - type answers provided at LWP and LocalIP/LocalPort.

    Sorry _ I don't have a multi-homed computer to try this on.

         Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)

Re: Setting outgoing IP address in LWP::UserAgent
by Anonymous Monk on May 29, 2009 at 03:28 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://766783]
Approved by planetscape
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2021-03-02 02:38 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (36 votes). Check out past polls.