[wp-trac] [WordPress Trac] #32549: wp_remote_get does not stream to temp file
WordPress Trac
noreply at wordpress.org
Mon Jun 1 16:56:29 UTC 2015
#32549: wp_remote_get does not stream to temp file
--------------------------+------------------------------
Reporter: andddd | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 4.2.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by jacobsantos):
{{{
#!php
$filename = get_temp_dir() . '/' . wp_unique_filename( get_temp_dir(),
basename( $zip_url ) );
$response = wp_remote_get( $zip_url, array(
'timeout' => 15,
'stream' => true,
'filename' => $filename
) );
}}}
The code in WP_Http::request() does need to be fixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32549#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list