[Python-Dev] possible urllib bug on Windows XP (original) (raw)
Mike Klaas mike.klaas at gmail.com
Tue Apr 3 04:23:43 CEST 2007
- Previous message: [Python-Dev] possible urllib bug on Windows XP
- Next message: [Python-Dev] Distutils and -framework on MacOSX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 4/2/07, Shane Geiger <sgeiger at ncee.net> wrote:
I have a curious situation which might be a bug in urllib (Python 2.5 installed from a .msi file gotten from python.org) when running on Windows XP. (This is running inside a Parallels virtual machine, but I don't see how that matters, because, as you will see in a second, I'm able to access the Web server both by its IP address and name.
Here's a screenshot of a console session: http://www.ncee.net/shane/urllib.png You can see from the screenshot: 1. This machine is able to ping the Web server's IP address. 2. I can even access the Web server via the DNS name assigned (www.nce.net) using wget.exe (from UnxUtils). 3. However, when I try to simulate wget.exe by using urllib, I get an error. Here's the urllib command (which, incidentally works fine from my MacBook Pro): python -c "import urllib ; urllib.urlretrieve("http://www.ncee.net/shane/test.py","test.py")"
In the screen shot, you are retrieving a different filename with python: python -c "import urllib ; urllib.urlretrieve("http://www.ncee.net/shane/login_test.py")"
-Mike
- Previous message: [Python-Dev] possible urllib bug on Windows XP
- Next message: [Python-Dev] Distutils and -framework on MacOSX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]