Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"

This commit is contained in:
nupplaPhil 2020-03-04 22:07:05 +01:00 committed by Hypolite Petovan
commit 5344efef71
43 changed files with 528 additions and 485 deletions

View file

@ -27,7 +27,7 @@ use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Profile;
use Friendica\Util\Network;
use Friendica\Network\HTTPRequest;
use Friendica\Util\Strings;
function redir_init(App $a) {
@ -171,7 +171,7 @@ function redir_magic($a, $cid, $url)
}
// Test for magic auth on the target system
$serverret = Network::curl($basepath . '/magic');
$serverret = HTTPRequest::curl($basepath . '/magic');
if ($serverret->isSuccess()) {
$separator = strpos($target_url, '?') ? '&' : '?';
$target_url .= $separator . 'zrl=' . urlencode($visitor) . '&addr=' . urlencode($contact_url);