[wp-trac] [WordPress Trac] #8504: Incorrect CURL options set in
HTTP API
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 6 09:12:08 GMT 2008
#8504: Incorrect CURL options set in HTTP API
-----------------------+----------------------------------------------------
Reporter: sambauers | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.7
Severity: normal | Keywords: HTTP API, has-patch
-----------------------+----------------------------------------------------
When making a HEAD request in the HTTP API via CURL the full body is
fetched, it should only fetch the head. The attached patch conditionally
sets CURLOPT_NOBODY to true.
Also the CURLOPT_RETURNTRANSFER setting is set conditionally then set back
to "1" regardless. The attached patch assumes the conditional is doing the
right thing.
These changes have been part of BackPress for a while now.
--
Ticket URL: <http://trac.wordpress.org/ticket/8504>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list