1
0

AssetTester.pm 349 B

1234567891011121314151617
  1. package AssetTester;
  2. use strict;
  3. use XML::Serializer;
  4. use OpenSim::Utility;
  5. sub init {
  6. &OpenSimTest::Config::registerHandler("get_asset", \&_get_asset);
  7. }
  8. sub _get_asset {
  9. my $url = shift || $OpenSimTest::Config::ASSET_SERVER_URL;
  10. my $asset_id = shift;
  11. my $res = &OpenSim::Utility::HttpGetRequest($url . "/assets/" . $asset_id) . "\n";
  12. }
  13. 1;