Homec4science

Follow redirects in HTTPSFuture and add a simple wrapper function above it

Authored by vrana <jakubv@fb.com> on Jun 19 2012, 01:12.

Description

Follow redirects in HTTPSFuture and add a simple wrapper function above it

Summary: See D2787 for usage.

Test Plan:

echo strlen(HTTPSFuture::loadContent('http://vrana.cz/'))."\n"; // redirect
echo strlen(HTTPSFuture::loadContent('http://www.vrana.cz/'))."\n";
echo strlen(HTTPSFuture::loadContent('http://www.vrana.czzz/'))."\n";

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D2785

Details

Committed
vrana <jakubv@fb.com>Jun 19 2012, 02:38
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU36efb961c831: Allow setting instance of PhutilTranslator
Branches
Unknown
Tags
Unknown

Event Timeline