Patches item #1111653, was opened at 2005-01-28 19:53
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1111653&group_id=5470

Category: Library (Lib)
Group: Python 2.4
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Terrel Shumway (drurl)
Assigned to: Nobody/Anonymous (nobody)
Summary: HEAD/PUT/DELETE support for urllib2.py

Initial Comment:
urllib2 only supports GET or POST HTTP request methods.
 This patch adds support for other methods.

>>> import urllib2
>>> r =
urllib2.Request("http://jdiworks.net/",method="HEAD";)
>>> u = urllib2.urlopen(r)
>>> u.read()
''
>>> h = u.headers.getheader
>>> h("content-length")
'4754'
>>> h("accept-ranges")
'bytes'
>>> h("date")
'Fri, 28 Jan 2005 18:39:04 GMT'
>>> h("etag")
'"728074-1292-314c1c40"'
>>> h("last-modified")
'Thu, 01 Jul 2004 23:11:37 GMT'

TODO: fix 3xx redirect with a HEAD

----------------------------------------------------------------------

>Comment By: Martin v. L�wis (loewis)
Date: 2005-03-04 00:02

Message:
Logged In: YES 
user_id=21627

As there is still no uploaded file, I'm closing the patch as
invalid. Please resubmit a new patch when you have one.

----------------------------------------------------------------------

Comment By: Martin v. L�wis (loewis)
Date: 2005-01-29 14:37

Message:
Logged In: YES 
user_id=21627

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file. In addition, even if you
*did* check this checkbox, a bug in SourceForge
prevents attaching a file when *creating* an issue.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1111653&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to