Baa

    • heluecht
      link
      fedilink
      11 year ago

      @jakob Ich habe https://lemmy.schuerz.at/c/test und https://lemmy.schuerz.at verwendet.

    • heluecht
      link
      fedilink
      11 year ago

      @jakob Du kannst dieses Script versuchen:

      #!/usr/bin/env php
      <?php
      use Friendica\DI;
      use Friendica\Util\HTTPSignature;
      use Friendica\Network\HTTPClient\Client\HttpClientOptions;
      
      require dirname(__DIR__) . '/vendor/autoload.php';
      
      $dice = new \Dice\Dice();
      $dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php');
      
      DI::init($dice);
      
      $url = 'https://lemmy.ml/u/OptimusPrime';
      $url = 'https://lemmy.ml/u/OptimusPrime/outbox';
      $url = 'https://lemmy.ml';
      $url = 'https://lemmy.schuerz.at/c/test';
      $url = 'https://lemmy.schuerz.at';
      $data = HTTPSignature::fetchRaw($url, 0, [HttpClientOptions::ACCEPT_CONTENT => 'application/activity+json']);
      echo $data->getBody() . "\n\n" . $data->getContentType() . "\n";
      die();
      

      Das speicherst Du im local-Ordner ab und startest es dann per php local/lemmy.php (oder wie auch immer Du es nennen möchtest)

      Dann siehst Du, dass die Ausgabe anders ist, abhängig vom Server.