urlopen

Dave Dean dave.dean at xilinx.com
Thu Apr 26 13:39:15 EDT 2007


Hi all,
  I'm running into some trouble using urllib.urlopen to grab a page from our 
corporate intranet.  The name of the internal site is simply http://web (no 
www or com).  I can use urlopen to grab a site like http://www.google.com 
just fine.  However, when I use urlopen to grab the internal site, I instead 
get data from http://www.web.com.  This is the url returned by the geturl() 
function.
  There must be a way to stop Python, or whoever is doing it, from changing 
my url.  Maybe urllib is not the correct approach.  Does anyone know a 
solution to this?
Thanks,
Dave





More information about the Python-list mailing list