473,782 Members | 2,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setuptools, ez_setup over http proxy

I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?

The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.

Oct 14 '05 #1
5 9852
yoda wrote:
I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?
The key thing is just that Python's urllib module needs to be able to
retrieve web pages and download files. Try pulling up your Python
interpreter and retrieving a page with urllib. If it works, you're
good to go, and no need to bother with anything else.

If it doesn't work, try Jay's suggestions for setting environment
variables, or consult the urllib doc and/or code for more details on
how urllib finds out what proxy to use.
The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."
Yeah, I mention this because by far the most common cause of problems
for Windows users is that they're behind one of those infernal
NTLM-based firewalls and thus can't use urllib unaided.

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.


The distutils-sig mailing list is the best place to ensure you get an
answer relatively quickly, since I don't subscribe to this list, just
skim it from time to time.

Oct 14 '05 #2
yoda wrote:
I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?
The key thing is just that Python's urllib module needs to be able to
retrieve web pages and download files. Try pulling up your Python
interpreter and retrieving a page with urllib. If it works, you're
good to go, and no need to bother with anything else.

If it doesn't work, try Jay's suggestions for setting environment
variables, or consult the urllib doc and/or code for more details on
how urllib finds out what proxy to use.
The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."
Yeah, I mention this because by far the most common cause of problems
for Windows users is that they're behind one of those infernal
NTLM-based firewalls and thus can't use urllib unaided.

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.


The distutils-sig mailing list is the best place to ensure you get an
answer relatively quickly, since I don't subscribe to this list, just
skim it from time to time.

Oct 14 '05 #3

yoda wrote:
I've recently configured my network such that I use squid as a http
proxy. I'd now like to be able to use setuptools and ez_setup via this
proxy. Is this possible? If so, how do I do it?

The most that the setuptools documentation says is
(http://peak.telecommunity.com/DevCenter/setuptools):

"....If you are behind an NTLM-based firewall that prevents Python
programs from accessing the net directly, you may wish to first install
and use the APS proxy server, which lets you get past such firewalls in
the same way that your web browser(s) do....."

ps. I'm not sure that this is the right forum for this question. If it
isn't feel free to point me to the right place.


Hi,

This is really an urllib2 question ...

setup an environment variable "HTTP_PROXY " that points to your proxy
server, of the form:

user:password@s erver:port

urllib2 doco will probably have more details

Ray Smith

Oct 14 '05 #4
Thanks guys,
Incidentally, I had already tried setting the env variable $http_proxy
but that didn't seem to work.

That being said, I'm moving this discussion to the distutils-SIG
mailing list while I carry out some tests.

Thanks again.

Oct 14 '05 #5
It appears that it was my proxy config that was flakey. setup tools
works like a charm. :$

Oct 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3817
by: Thomas Miller | last post by:
Is there ANY way for a windows app to consume a web service by going through a SOCKS proxy? This is a MUST for me because the windows app I am building will be deployed to many corporate clients who are behind SOCKS proxies. My app also has corporate clients that are behind a HTTP proxy. Is there a way for the windows app to consume a web service through a HTTP proxy? Please post any relevant code you have, THANKS!
0
1848
by: Xavier - www.andeol.com | last post by:
Hi, My first post on this newsgroup as I have a very strange problem with a WSE client trying to access a .NET WS through a secured HTTP Proxy : it is woking with HTTPS but not with HTTP ?! I am really talking about the same code and only changing the server url. The problem is due to the HTTP proxy authentification but we don't understand why. Using EtherReal, we can see in both cases that the WS client is trying to access the server and...
0
897
by: Fred Pacquier | last post by:
Hello, I would be grateful if someone could point me to an existing and working http proxy implementation that satisfies the following requirements : - as small and simple as possible, ideally no dependencies outside python - easy to customize (for controlling outgoing http headers for instance) - supports chaining to another remote proxy I have spent some time on the list at :
2
10694
by: chris | last post by:
Hi, I am trying to upload files on FTP and used the code below: Dim request As FtpWebRequest request = WebRequest.Create("ftp://ftp...../test.txt") request.Method = WebRequestMethods.Ftp.UploadFile request.Credentials = New
2
2899
by: Robin Haswell | last post by:
Hey there Soon we will have many squid proxies on many seperate connections for use by our services. I want to make them available to users via a single HTTP proxy - however, I want fine-grained control over how the squid proxies are selected for each connection. This is so I can collect statistics, control usage on each proxy, monitor what's going on - etc. However I don't want to implement the HTTP proxy protocol in Python, and would...
2
9434
by: master | last post by:
Hi, I was using the FtpWebRequest class in .NET 2.0 for an FTP transport over SSL. It is working well, however the new requirement for my application is to tranfer files via an HTTP proxy. The FtpWebRequest class supports such a proxy, however, the documentation states that the FTP client can only download files and list directories (so the transfer is read-only). The problem is that the application is transferring files both ways - to...
10
5814
by: =?ISO-8859-1?Q?BJ=F6rn_Lindqvist?= | last post by:
I want to use Python to connect to a SSH account over a HTTP proxy to automate some operations. I thought paramiko would be able to do that, but it can not (it seems). Is there some other Python module that can do what I want? -- mvh Björn
0
1924
by: Dan Lenski | last post by:
Hi all, I've recently written an HTTP proxy server for the Motorola E815 cell phone, based on Suzuki Hisao's "Tiny HTTP Proxy" (http:// www.okisoft.co.jp/esc/python/proxy/). This cell phone allows free Internet access if you change the default proxy server, but it has a severely buggy HTTP client implementation which will freeze if there's no Content-Length header. Basically, it's impossible to read normal web pages without some...
0
1330
by: Premalatha | last post by:
Hi, I want to implement FTP over HTTP proxy. Is there any free open source code in 'C' for FTP proxy ? or Open source code in 'C' for HTTP <-> FTP Conversion . Also suggest me the useful links for its implementation. I have also checked the implementation in squid and other HTTP proxy.
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10311
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.