Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

voxpelli/php-testfeeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestData

Some easily-manipulated test resource serves to help HTTP client developers simulate various conditions, including error conditions, in a deterministic way.

Installing

  1. git clone
  2. bin/make.sh
  3. ensure public web folder is pointing at web/

Dynamic Feeds

The root, e.g. http://testdata.player.fm will update every 10 seconds. Items are consistent, ie when the latest item is relegated to 2nd place in 10 seconds, it will retain its title, pubDate, and other properties.

Examples:

File Serving

File serving example:

~220MB mp3 with no length info

http://testdata.player.fm/file.php?name=human&type=audio/mpeg&length=false

~220MB mp3 with wrong length info

http://testdata.player.fm/file.php?name=human&type=audio/mpeg&length=123456

~10MB mp3

http://testdata.player.fm/file.php?name=meta&type=audio/mpeg&length=123456

~10MB mp3 with variable bitrate

http://testdata.player.fm/file.php?name=metavbr&type=audio/mpeg&length=123456

~tiny mp3

http://testdata.player.fm/file.php?name=freakowild&type=audio/mpeg&length=123456

Find more filenames and file types (ogg etc) in the git repo (see bin/media.sh script for now)

Arguments

  • ID (default: freakowild) - mp3 filename (see git repo for options)
  • length (default: true) - the response length header you want. "true" means guess actual length, "false" means no length or server's default.
  • prepause (default: 0) - a delay before sending
  • postpause (default: 0) - a delay after sending
  • type (default: true - note this is broken in production now due to a pending Dreamhost issue) - the response content header you want. "true" means guess actual type, "false" means no type or server's default.

License

[Extracts from certain podcasts and feeds are included here, license is held by their original owners and included here under what is assumed to be fair use as this is an openly-licensed project intended for education and technical advancement.]

The MIT License (MIT)

Copyright (c) from 2014, Nuvomondo Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Some test RSS feeds

Resources

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published