|
Prev: weird bug
Next: odd chars in perldoc prior to 5.10.0
From: Cosmic Cruizer on 18 Apr 2008 13:45 I'm using IO::Socket to test a port on a remote server on the Internet from our intranet. I need to make sure I go through the same proxy server each time. I believe I can direct my port probe to use the proxy server as the default gateway, which would solve my problem. From what I can tell, IO::Socket does not allow me to do that. Is there a module that will let me enter a value for a default gateway so I can dictate which proxy server I want to pass through?
From: Abigail on 18 Apr 2008 16:05 _ Cosmic Cruizer (XXjbhuntxx(a)white-star.com) wrote on VCCCXLIV September MCMXCIII in <URL:news:Xns9A846D59DF7E0ccruizermydejacom(a)207.115.17.102>: -- I'm using IO::Socket to test a port on a remote server on the Internet from -- our intranet. I need to make sure I go through the same proxy server each -- time. I believe I can direct my port probe to use the proxy server as the -- default gateway, which would solve my problem. From what I can tell, -- IO::Socket does not allow me to do that. Sure it does. If you are using a proxy on server proxy.example.com, you're making a socket connection to proxy.example.com - not to whatever server you are trying to reach through the proxy. -- Is there a module that will let me enter a value for a default gateway so I -- can dictate which proxy server I want to pass through? Maybe. You aren't telling us what the protocol is you are using. If you're trying to connect an HTTP server, there are several modules available that can work through a proxy server. But if it's some other protocol, you may be out of luck. Then you have to talk that protocol yourself - but you would have to do that with IO::Socket anyway. Abigail -- perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %; BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'
From: Cosmic Cruizer on 18 Apr 2008 17:16 Abigail <abigail(a)abigail.be> wrote in news:slrng0hvni.oar.abigail(a)alexandra.abigail.be: > _ > Cosmic Cruizer (XXjbhuntxx(a)white-star.com) wrote on VCCCXLIV September > MCMXCIII in > <URL:news:Xns9A846D59DF7E0ccruizermydejacom(a)207.115.17.102>: -- I'm > using IO::Socket to test a port on a remote server on the Internet > from -- our intranet. I need to make sure I go through the same proxy > server each -- time. I believe I can direct my port probe to use the > proxy server as the -- default gateway, which would solve my problem. > From what I can tell, -- IO::Socket does not allow me to do that. > > > Sure it does. If you are using a proxy on server proxy.example.com, > you're making a socket connection to proxy.example.com - not to > whatever server you are trying to reach through the proxy. > > > -- Is there a module that will let me enter a value for a default > gateway so I -- can dictate which proxy server I want to pass > through? > > > Maybe. > > You aren't telling us what the protocol is you are using. If you're > trying to connect an HTTP server, there are several modules available > that can work through a proxy server. > > But if it's some other protocol, you may be out of luck. Then you have > to talk that protocol yourself - but you would have to do that with > IO::Socket anyway. > > > Abigail So for this example, let's say I have the folowing: Internet destination is www.internet.com port 80 My server is 10.10.10.5 The proxy servers are 10.10.10.50 and 10.10.20.50. I want to go from my server, through the proxy at 10.10.20.50 to port 80 on www.internet.com. Port 25 is another port I might want to touch on the Internet server.
From: Abigail on 19 Apr 2008 18:09 _ Cosmic Cruizer (XXjbhuntxx(a)white-star.com) wrote on VCCCXLIV September MCMXCIII in <URL:news:Xns9A84912E6A70Cccruizermydejacom(a)207.115.33.102>: // Abigail <abigail(a)abigail.be> wrote in // news:slrng0hvni.oar.abigail(a)alexandra.abigail.be: // // > _ // > Cosmic Cruizer (XXjbhuntxx(a)white-star.com) wrote on VCCCXLIV September // > MCMXCIII in // > <URL:news:Xns9A846D59DF7E0ccruizermydejacom(a)207.115.17.102>: -- I'm // > using IO::Socket to test a port on a remote server on the Internet // > from -- our intranet. I need to make sure I go through the same proxy // > server each -- time. I believe I can direct my port probe to use the // > proxy server as the -- default gateway, which would solve my problem. // > From what I can tell, -- IO::Socket does not allow me to do that. // > // > // > Sure it does. If you are using a proxy on server proxy.example.com, // > you're making a socket connection to proxy.example.com - not to // > whatever server you are trying to reach through the proxy. // > // > // > -- Is there a module that will let me enter a value for a default // > gateway so I -- can dictate which proxy server I want to pass // > through? // > // > // > Maybe. // > // > You aren't telling us what the protocol is you are using. If you're // > trying to connect an HTTP server, there are several modules available // > that can work through a proxy server. // > // > But if it's some other protocol, you may be out of luck. Then you have // > to talk that protocol yourself - but you would have to do that with // > IO::Socket anyway. // > // > // > Abigail // // So for this example, let's say I have the folowing: // // Internet destination is www.internet.com port 80 // My server is 10.10.10.5 // The proxy servers are 10.10.10.50 and 10.10.20.50. // // I want to go from my server, through the proxy at 10.10.20.50 to port 80 // on www.internet.com. I'd use LWP::Simple. // Port 25 is another port I might want to touch on the // Internet server. What's an "Internet server"? Abigail -- perl -wle 'eval {die ["Just another Perl Hacker"]}; print ${$@}[$#{@${@}}]'
From: Cosmic Cruizer on 20 Apr 2008 20:21 Abigail <abigail(a)abigail.be> wrote in news:slrng0krd0.veg.abigail(a)alexandra.abigail.be: > _ > Cosmic Cruizer (XXjbhuntxx(a)white-star.com) wrote on VCCCXLIV September > MCMXCIII in > <URL:news:Xns9A84912E6A70Cccruizermydejacom(a)207.115.33.102>: // > Abigail <abigail(a)abigail.be> wrote in // > news:slrng0hvni.oar.abigail(a)alexandra.abigail.be: // > // > _ > // > Cosmic Cruizer (XXjbhuntxx(a)white-star.com) wrote on VCCCXLIV > September // > MCMXCIII in > // > <URL:news:Xns9A846D59DF7E0ccruizermydejacom(a)207.115.17.102>: -- > I'm // > using IO::Socket to test a port on a remote server on the > Internet // > from -- our intranet. I need to make sure I go through > the same proxy // > server each -- time. I believe I can direct my > port probe to use the // > proxy server as the -- default gateway, > which would solve my problem. // > From what I can tell, -- > IO::Socket does not allow me to do that. // > > // > > // > Sure it does. If you are using a proxy on server > proxy.example.com, // > you're making a socket connection to > proxy.example.com - not to // > whatever server you are trying to > reach through the proxy. // > > // > > // > -- Is there a module that will let me enter a value for a > default // > gateway so I -- can dictate which proxy server I want to > pass // > through? > // > > // > > // > Maybe. > // > > // > You aren't telling us what the protocol is you are using. If > you're // > trying to connect an HTTP server, there are several > modules available // > that can work through a proxy server. > // > > // > But if it's some other protocol, you may be out of luck. Then you > have // > to talk that protocol yourself - but you would have to do > that with // > IO::Socket anyway. > // > > // > > // > Abigail > // > // So for this example, let's say I have the folowing: > // > // Internet destination is www.internet.com port 80 > // My server is 10.10.10.5 > // The proxy servers are 10.10.10.50 and 10.10.20.50. > // > // I want to go from my server, through the proxy at 10.10.20.50 to > port 80 // on www.internet.com. > > > I'd use LWP::Simple. > > > // Port 25 is another port I might want to touch > on the // Internet server. > > > What's an "Internet server"? > > > > Abigail Looks like you got me pointed in the right direction. From what I'm reading, LWP::UserAgent is what I need/want. Thank you very much Abigail!
|
Pages: 1 Prev: weird bug Next: odd chars in perldoc prior to 5.10.0 |