Re: Controlling source IP address within urllib2

2005-06-09 Thread Dan
Just FYI ... I finally got this to work. Unfortunately, I was unable to use the urllib2 library. The embedded Linux team here informed me that the urllib2 library will not be available on the machine I wanted to deploy on, so I had to go back to using the urllib and httplib libraries. After

Re: Controlling source IP address within urllib2

2005-06-08 Thread Dan
John, Thanks again for your help! I think that the do_open function in AbstractHTTPHandler does not return the correct object type as required by the opener. When I include the code you recommended, the implementation comes back with the message, urlopen error unknown url type: http. Strange,

Re: Controlling source IP address within urllib2

2005-06-06 Thread Dan
John, Thanks for your input. I can kind of see the light in this, but I'm having difficulty knowing where the do_open method comes from. Also, I'll need to follow redirects, so I assume then I would add a HTTPRedirectHandler instance to the urllib2.build_opener. (?) Thanks again for your help.

Re: Controlling source IP address within urllib2

2005-06-04 Thread John J. Lee
Dan [EMAIL PROTECTED] writes: Does anybody know how to control the source IP address (IPv4) when using the urllib2 library? I have a Linux box with several IP addresses in the same subnet, and I want to simulate several individuals within that subnet accessing web pages independently. I

Controlling source IP address within urllib2

2005-06-03 Thread Dan
Does anybody know how to control the source IP address (IPv4) when using the urllib2 library? I have a Linux box with several IP addresses in the same subnet, and I want to simulate several individuals within that subnet accessing web pages independently. I need the functionality of urllib2