mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"
This commit is contained in:
parent
31bd1a1ba0
commit
9640142a72
18 changed files with 50 additions and 45 deletions
|
@ -15,8 +15,8 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function dwpost_install()
|
||||
|
@ -231,7 +231,7 @@ EOT;
|
|||
Logger::log('dwpost: data: ' . $xml, Logger::DATA);
|
||||
|
||||
if ($dw_blog !== 'test') {
|
||||
$x = Network::post($dw_blog, $xml, ["Content-Type: text/xml"])->getBody();
|
||||
$x = HTTPRequest::post($dw_blog, $xml, ["Content-Type: text/xml"])->getBody();
|
||||
}
|
||||
|
||||
Logger::log('posted to dreamwidth: ' . ($x) ? $x : '', Logger::DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue