This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author karlcow
Recipients ezio.melotti, facundobatista, gregory.p.smith, janik, karlcow, orsenthil
Date 2013-03-06.03:39:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362541154.44.0.268360963715.issue14132@psf.upfronthosting.co.za>
In-reply-to
Content
→  curl -sI  http://kniznica.uniza.sk/opac

HTTP/1.1 302 Moved Temporarily
Date: Wed, 06 Mar 2013 03:23:06 GMT
Server: Indy/9.0.50
Content-Type: text/html
Location: ?fs=C79F09C9F1304E7AA4FF7C211BEA2B9B&fn=main


→ python3.3

Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib.parse
>>> urllib.parse.urlparse("http://kniznica.uniza.sk/opac")
ParseResult(scheme='http', netloc='kniznica.uniza.sk', path='/opac', params='', query='', fragment='')
>>> urllib.parse.urlparse("?fs=C79F09C9F1304E7AA4FF7C211BEA2B9B&fn=main")
ParseResult(scheme='', netloc='', path='', params='', query='fs=C79F09C9F1304E7AA4FF7C211BEA2B9B&fn=main', fragment='')

Redirection is defined at
http://hg.python.org/cpython/file/5e294202f93e/Lib/urllib/request.py#l643
History
Date User Action Args
2013-03-06 03:39:14karlcowsetrecipients: + karlcow, facundobatista, gregory.p.smith, orsenthil, ezio.melotti, janik
2013-03-06 03:39:14karlcowsetmessageid: <1362541154.44.0.268360963715.issue14132@psf.upfronthosting.co.za>
2013-03-06 03:39:14karlcowlinkissue14132 messages
2013-03-06 03:39:13karlcowcreate