Implement MIME sniffing.
|
@ -96,7 +96,7 @@ fn assert_parse(url: &'static str,
|
|||
use sniffer_task;
|
||||
|
||||
let (start_chan, start_port) = channel();
|
||||
let sniffer_task = sniffer_task::new_sniffer_task();
|
||||
let sniffer_task = sniffer_task::new_mock_sniffer_task();
|
||||
load(LoadData::new(Url::parse(url).unwrap(), start_chan), sniffer_task);
|
||||
|
||||
let response = start_port.recv().unwrap();
|
||||
|
|
|
@ -47,6 +47,7 @@ pub mod pub_domains;
|
|||
pub mod resource_task;
|
||||
pub mod storage_task;
|
||||
mod sniffer_task;
|
||||
mod mime_classifier;
|
||||
|
||||
/// An implementation of the [Fetch spec](http://fetch.spec.whatwg.org/)
|
||||
pub mod fetch {
|
||||
|
|
1418
components/net/mime_classifier.rs
Normal file
|
@ -5,7 +5,8 @@
|
|||
//! A task that sniffs data
|
||||
use std::sync::mpsc::{channel, Receiver, Sender};
|
||||
use std::thread::Builder;
|
||||
use resource_task::{TargetedLoadResponse};
|
||||
use mime_classifier::MIMEClassifier;
|
||||
use resource_task::{TargetedLoadResponse, LoadResponse, ProgressMsg};
|
||||
|
||||
pub type SnifferTask = Sender<TargetedLoadResponse>;
|
||||
|
||||
|
@ -20,17 +21,89 @@ pub fn new_sniffer_task() -> SnifferTask {
|
|||
|
||||
struct SnifferManager {
|
||||
data_receiver: Receiver<TargetedLoadResponse>,
|
||||
mime_classifier: MIMEClassifier
|
||||
}
|
||||
|
||||
impl SnifferManager {
|
||||
fn new(data_receiver: Receiver <TargetedLoadResponse>) -> SnifferManager {
|
||||
SnifferManager {
|
||||
data_receiver: data_receiver,
|
||||
mime_classifier: MIMEClassifier::new()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl SnifferManager {
|
||||
fn start(self) {
|
||||
|
||||
for mut snif_data in self.data_receiver.iter() {
|
||||
// Read all the data
|
||||
let mut resource_data = vec!();
|
||||
loop {
|
||||
match snif_data.load_response.progress_port.recv().unwrap() {
|
||||
ProgressMsg::Payload(data) => {
|
||||
resource_data.push_all(data.as_slice());
|
||||
}
|
||||
ProgressMsg::Done(res) => {
|
||||
let (new_progress_chan, new_progress_port) = channel();
|
||||
|
||||
// TODO: should be calculated in the resource loader, from pull requeset #4094
|
||||
let nosniff = false;
|
||||
let check_for_apache_bug = false;
|
||||
|
||||
// We have all the data, go ahead and sniff it and replace the Content-Type
|
||||
if res.is_ok() {
|
||||
snif_data.load_response.metadata.content_type = self.mime_classifier.classify(
|
||||
nosniff,check_for_apache_bug,&snif_data.load_response.metadata.content_type,
|
||||
&resource_data
|
||||
);
|
||||
}
|
||||
let load_response = LoadResponse {
|
||||
progress_port: new_progress_port,
|
||||
metadata: snif_data.load_response.metadata,
|
||||
};
|
||||
|
||||
if snif_data.consumer.send(load_response).is_err() {
|
||||
break;
|
||||
}
|
||||
if resource_data.len() > 0 {
|
||||
new_progress_chan.send(ProgressMsg::Payload(resource_data)).unwrap();
|
||||
}
|
||||
new_progress_chan.send(ProgressMsg::Done(res)).unwrap();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // end for
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn new_mock_sniffer_task() -> SnifferTask {
|
||||
let(sen, rec) = channel();
|
||||
let builder = TaskBuilder::new().named("SnifferManager");
|
||||
builder.spawn(move || {
|
||||
MockSnifferManager::new(rec).start();
|
||||
});
|
||||
sen
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
struct MockSnifferManager {
|
||||
data_receiver: Receiver<TargetedLoadResponse>,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
impl MockSnifferManager {
|
||||
fn new(data_receiver: Receiver <TargetedLoadResponse>) -> MockSnifferManager {
|
||||
MockSnifferManager {
|
||||
data_receiver: data_receiver,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
impl MockSnifferManager {
|
||||
fn start(self) {
|
||||
loop {
|
||||
match self.data_receiver.recv() {
|
||||
|
|
1
tests/content/parsable_mime/application/font-woff/test.wof
Executable file
|
@ -0,0 +1 @@
|
|||
wOFF
|
BIN
tests/content/parsable_mime/application/ogg/small.ogg
Normal file
157
tests/content/parsable_mime/application/pdf/test.pdf
Normal file
|
@ -0,0 +1,157 @@
|
|||
%PDF-1.2
|
||||
%âãÏÓ
|
||||
|
||||
9 0 obj
|
||||
<<
|
||||
/Length 10 0 R
|
||||
/Filter /FlateDecode
|
||||
>>
|
||||
stream
|
||||
H‰Í<EFBFBD>ÑJÃ0†Ÿ ïð{§²fç$M“ínÒ-<14>‚<EFBFBD>[&jeŠâÛÛ¤ñ~‚$ÉÉÿ}ÉÉ…¬Ij«¬ÌsÀ—‚Ç~€XÖ-],÷‚$Y—÷Ó)ü'N«u1!œ„ÀVÙ?ŸÁ?
|
||||
žb1RbbœÒ‰ÉH²[¹™TD:#ž&ØÙÌX®¦øiç»$qnf¬ƒ¿†¶]»ÀõËîãaÿ¶{ÿÂØ£‰›×q|JªLs]™QÒI¸¬jî„%¯Œ9Øé`ß঺¼ÅU»ite<74>zÛ$›’Ú¿OeBÆÄ’Ò¯á¸Råþ@zÜ—úóÿgª¼ø<õ¡ª
|
||||
endstream
|
||||
endobj
|
||||
10 0 obj
|
||||
246
|
||||
endobj
|
||||
4 0 obj
|
||||
<<
|
||||
/Type /Page
|
||||
/Parent 5 0 R
|
||||
/Resources <<
|
||||
/Font <<
|
||||
/F0 6 0 R
|
||||
/F1 7 0 R
|
||||
>>
|
||||
/ProcSet 2 0 R
|
||||
>>
|
||||
/Contents 9 0 R
|
||||
>>
|
||||
endobj
|
||||
6 0 obj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /TrueType
|
||||
/Name /F0
|
||||
/BaseFont /Arial
|
||||
/Encoding /WinAnsiEncoding
|
||||
>>
|
||||
endobj
|
||||
7 0 obj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /TrueType
|
||||
/Name /F1
|
||||
/BaseFont /BookAntiqua,Bold
|
||||
/FirstChar 31
|
||||
/LastChar 255
|
||||
/Widths [ 750 250 278 402 606 500 889 833 227 333 333 444 606 250 333 250
|
||||
296 500 500 500 500 500 500 500 500 500 500 250 250 606 606 606
|
||||
444 747 778 667 722 833 611 556 833 833 389 389 778 611 1000 833
|
||||
833 611 833 722 611 667 778 778 1000 667 667 667 333 606 333 606
|
||||
500 333 500 611 444 611 500 389 556 611 333 333 611 333 889 611
|
||||
556 611 611 389 444 333 611 556 833 500 556 500 310 606 310 606
|
||||
750 500 750 333 500 500 1000 500 500 333 1000 611 389 1000 750 750
|
||||
750 750 278 278 500 500 606 500 1000 333 998 444 389 833 750 750
|
||||
667 250 278 500 500 606 500 606 500 333 747 438 500 606 333 747
|
||||
500 400 549 361 361 333 576 641 250 333 361 488 500 889 890 889
|
||||
444 778 778 778 778 778 778 1000 722 611 611 611 611 389 389 389
|
||||
389 833 833 833 833 833 833 833 606 833 778 778 778 778 667 611
|
||||
611 500 500 500 500 500 500 778 444 500 500 500 500 333 333 333
|
||||
333 556 611 556 556 556 556 556 549 556 611 611 611 611 556 611
|
||||
556 ]
|
||||
/Encoding /WinAnsiEncoding
|
||||
/FontDescriptor 8 0 R
|
||||
>>
|
||||
endobj
|
||||
8 0 obj
|
||||
<<
|
||||
/Type /FontDescriptor
|
||||
/FontName /BookAntiqua,Bold
|
||||
/Flags 16418
|
||||
/FontBBox [ -250 -260 1236 930 ]
|
||||
/MissingWidth 750
|
||||
/StemV 146
|
||||
/StemH 146
|
||||
/ItalicAngle 0
|
||||
/CapHeight 930
|
||||
/XHeight 651
|
||||
/Ascent 930
|
||||
/Descent 260
|
||||
/Leading 210
|
||||
/MaxWidth 1030
|
||||
/AvgWidth 460
|
||||
>>
|
||||
endobj
|
||||
2 0 obj
|
||||
[ /PDF /Text ]
|
||||
endobj
|
||||
5 0 obj
|
||||
<<
|
||||
/Kids [4 0 R ]
|
||||
/Count 1
|
||||
/Type /Pages
|
||||
/MediaBox [ 0 0 612 792 ]
|
||||
>>
|
||||
endobj
|
||||
1 0 obj
|
||||
<<
|
||||
/Creator (1725.fm)
|
||||
/CreationDate (1-Jan-3 18:15PM)
|
||||
/Title (1725.PDF)
|
||||
/Author (Unknown)
|
||||
/Producer (Acrobat PDFWriter 3.02 for Windows)
|
||||
/Keywords ()
|
||||
/Subject ()
|
||||
>>
|
||||
endobj
|
||||
3 0 obj
|
||||
<<
|
||||
/Pages 5 0 R
|
||||
/Type /Catalog
|
||||
/DefaultGray 11 0 R
|
||||
/DefaultRGB 12 0 R
|
||||
>>
|
||||
endobj
|
||||
11 0 obj
|
||||
[/CalGray
|
||||
<<
|
||||
/WhitePoint [0.9505 1 1.0891 ]
|
||||
/Gamma 0.2468
|
||||
>>
|
||||
]
|
||||
endobj
|
||||
12 0 obj
|
||||
[/CalRGB
|
||||
<<
|
||||
/WhitePoint [0.9505 1 1.0891 ]
|
||||
/Gamma [0.2468 0.2468 0.2468 ]
|
||||
/Matrix [0.4361 0.2225 0.0139 0.3851 0.7169 0.0971 0.1431 0.0606 0.7141 ]
|
||||
>>
|
||||
]
|
||||
endobj
|
||||
xref
|
||||
0 13
|
||||
0000000000 65535 f
|
||||
0000002172 00000 n
|
||||
0000002046 00000 n
|
||||
0000002363 00000 n
|
||||
0000000375 00000 n
|
||||
0000002080 00000 n
|
||||
0000000518 00000 n
|
||||
0000000633 00000 n
|
||||
0000001760 00000 n
|
||||
0000000021 00000 n
|
||||
0000000352 00000 n
|
||||
0000002460 00000 n
|
||||
0000002548 00000 n
|
||||
trailer
|
||||
<<
|
||||
/Size 13
|
||||
/Root 3 0 R
|
||||
/Info 1 0 R
|
||||
/ID [<47149510433dd4882f05f8c124223734><47149510433dd4882f05f8c124223734>]
|
||||
>>
|
||||
startxref
|
||||
2726
|
||||
%%EOF
|
1
tests/content/parsable_mime/application/postscript/test.ps
Executable file
|
@ -0,0 +1 @@
|
|||
%!PS-Adobe-
|
BIN
tests/content/parsable_mime/application/vnd.ms-fontobject/vnd.ms-fontobject
Executable file
BIN
tests/content/parsable_mime/application/x-gzip/test.gz
Normal file
BIN
tests/content/parsable_mime/application/x-rar-compressed/test.rar
Executable file
1
tests/content/parsable_mime/application/zip/test.zip
Executable file
|
@ -0,0 +1 @@
|
|||
PK
|
BIN
tests/content/parsable_mime/audio/aiff/test.aif
Normal file
BIN
tests/content/parsable_mime/audio/basic/test.au
Normal file
BIN
tests/content/parsable_mime/audio/midi/test.mid
Normal file
BIN
tests/content/parsable_mime/audio/mpeg/test.mp3
Normal file
BIN
tests/content/parsable_mime/audio/wave/test.wav
Normal file
BIN
tests/content/parsable_mime/image/bmp/test.bmp
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
tests/content/parsable_mime/image/gif/test87a
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
tests/content/parsable_mime/image/gif/test89a.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
tests/content/parsable_mime/image/jpeg/test.jpg
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
tests/content/parsable_mime/image/png/test.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
tests/content/parsable_mime/image/webp/test.webp
Executable file
After Width: | Height: | Size: 14 B |
BIN
tests/content/parsable_mime/image/x-icon/test.ico
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
tests/content/parsable_mime/image/x-icon/test_cursor.ico
Normal file
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<A
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<a
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<A>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<a>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<B
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<b
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<B>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<b>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<BODY
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<body
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<BODY>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<body>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<BR
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<br
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<BR>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<br>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<!--
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<!--
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<!-->
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<!-->
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<DIV
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<div
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<DIV>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<div>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<!DOCTYPE HTML
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<!doctype html
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
|
||||
<!doctype html>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<FONT
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<font
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<FONT>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<font>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<H1
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<h1
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<H1>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<h1>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<HEAD
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<head
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<HEAD>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<head>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<IFRAME
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<iframe
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<IFRAME>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<iframe>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<P
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<p
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<P>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<p>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<HTML
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<html
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<HTML>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<html>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<SCRIPT
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<script
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<SCRIPT>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<script>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<STYLE
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<style
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<STYLE>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<style>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<TABLE
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<table
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<TABLE>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<table>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<TITLE
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<title
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<TITLE>
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<title>
|
BIN
tests/content/parsable_mime/text/plain/utf16bebom.txt
Normal file
BIN
tests/content/parsable_mime/text/plain/utf16lebom.txt
Normal file
1
tests/content/parsable_mime/text/plain/utf8bom.txt
Normal file
|
@ -0,0 +1 @@
|
|||
test_file
|
1
tests/content/parsable_mime/text/xml/feed.atom
Executable file
|
@ -0,0 +1 @@
|
|||
<feed>
|
151
tests/content/parsable_mime/text/xml/feed.rss
Normal file
|
@ -0,0 +1,151 @@
|
|||
<?xml version="1.0" encoding="windows-1252"?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>FeedForAll Sample Feed</title>
|
||||
<description>RSS is a fascinating technology. The uses for RSS are expanding daily. Take a closer look at how various industries are using the benefits of RSS in their businesses.</description>
|
||||
<link>http://www.feedforall.com/industry-solutions.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<copyright>Copyright 2004 NotePage, Inc.</copyright>
|
||||
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Tue, 19 Oct 2004 13:39:14 -0400</lastBuildDate>
|
||||
<managingEditor>marketing@feedforall.com</managingEditor>
|
||||
<pubDate>Tue, 19 Oct 2004 13:38:55 -0400</pubDate>
|
||||
<webMaster>webmaster@feedforall.com</webMaster>
|
||||
<generator>FeedForAll Beta1 (0.0.1.8)</generator>
|
||||
<image>
|
||||
<url>http://www.feedforall.com/ffalogo48x48.gif</url>
|
||||
<title>FeedForAll Sample Feed</title>
|
||||
<link>http://www.feedforall.com/industry-solutions.htm</link>
|
||||
<description>FeedForAll Sample Feed</description>
|
||||
<width>48</width>
|
||||
<height>48</height>
|
||||
</image>
|
||||
<item>
|
||||
<title>RSS Solutions for Restaurants</title>
|
||||
<description><b>FeedForAll </b>helps Restaurant's communicate with customers. Let your customers know the latest specials or events.<br>
|
||||
<br>
|
||||
RSS feed uses include:<br>
|
||||
<i><font color="#FF0000">Daily Specials <br>
|
||||
Entertainment <br>
|
||||
Calendar of Events </i></font></description>
|
||||
<link>http://www.feedforall.com/restaurant.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:09:11 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Schools and Colleges</title>
|
||||
<description>FeedForAll helps Educational Institutions communicate with students about school wide activities, events, and schedules.<br>
|
||||
<br>
|
||||
RSS feed uses include:<br>
|
||||
<i><font color="#0000FF">Homework Assignments <br>
|
||||
School Cancellations <br>
|
||||
Calendar of Events <br>
|
||||
Sports Scores <br>
|
||||
Clubs/Organization Meetings <br>
|
||||
Lunches Menus </i></font></description>
|
||||
<link>http://www.feedforall.com/schools.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:09:09 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Computer Service Companies</title>
|
||||
<description>FeedForAll helps Computer Service Companies communicate with clients about cyber security and related issues. <br>
|
||||
<br>
|
||||
Uses include:<br>
|
||||
<i><font color="#0000FF">Cyber Security Alerts <br>
|
||||
Specials<br>
|
||||
Job Postings </i></font></description>
|
||||
<link>http://www.feedforall.com/computer-service.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:09:07 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Governments</title>
|
||||
<description>FeedForAll helps Governments communicate with the general public about positions on various issues, and keep the community aware of changes in important legislative issues. <b><i><br>
|
||||
</b></i><br>
|
||||
RSS uses Include:<br>
|
||||
<i><font color="#00FF00">Legislative Calendar<br>
|
||||
Votes<br>
|
||||
Bulletins</i></font></description>
|
||||
<link>http://www.feedforall.com/government.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:09:05 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Politicians</title>
|
||||
<description>FeedForAll helps Politicians communicate with the general public about positions on various issues, and keep the community notified of their schedule. <br>
|
||||
<br>
|
||||
Uses Include:<br>
|
||||
<i><font color="#FF0000">Blogs<br>
|
||||
Speaking Engagements <br>
|
||||
Statements<br>
|
||||
</i></font></description>
|
||||
<link>http://www.feedforall.com/politics.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:09:03 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Meteorologists</title>
|
||||
<description>FeedForAll helps Meteorologists communicate with the general public about storm warnings and weather alerts, in specific regions. Using RSS meteorologists are able to quickly disseminate urgent and life threatening weather warnings. <br>
|
||||
<br>
|
||||
Uses Include:<br>
|
||||
<i><font color="#0000FF">Weather Alerts<br>
|
||||
Plotting Storms<br>
|
||||
School Cancellations </i></font></description>
|
||||
<link>http://www.feedforall.com/weather.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:09:01 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Realtors & Real Estate Firms</title>
|
||||
<description>FeedForAll helps Realtors and Real Estate companies communicate with clients informing them of newly available properties, and open house announcements. RSS helps to reach a targeted audience and spread the word in an inexpensive, professional manner. <font color="#0000FF"><br>
|
||||
</font><br>
|
||||
Feeds can be used for:<br>
|
||||
<i><font color="#FF0000">Open House Dates<br>
|
||||
New Properties For Sale<br>
|
||||
Mortgage Rates</i></font></description>
|
||||
<link>http://www.feedforall.com/real-estate.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:08:59 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Banks / Mortgage Companies</title>
|
||||
<description>FeedForAll helps <b>Banks, Credit Unions and Mortgage companies</b> communicate with the general public about rate changes in a prompt and professional manner. <br>
|
||||
<br>
|
||||
Uses include:<br>
|
||||
<i><font color="#0000FF">Mortgage Rates<br>
|
||||
Foreign Exchange Rates <br>
|
||||
Bank Rates<br>
|
||||
Specials</i></font></description>
|
||||
<link>http://www.feedforall.com/banks.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:08:57 -0400</pubDate>
|
||||
</item>
|
||||
<item>
|
||||
<title>RSS Solutions for Law Enforcement</title>
|
||||
<description><b>FeedForAll</b> helps Law Enforcement Professionals communicate with the general public and other agencies in a prompt and efficient manner. Using RSS police are able to quickly disseminate urgent and life threatening information. <br>
|
||||
<br>
|
||||
Uses include:<br>
|
||||
<i><font color="#0000FF">Amber Alerts<br>
|
||||
Sex Offender Community Notification <br>
|
||||
Weather Alerts <br>
|
||||
Scheduling <br>
|
||||
Security Alerts <br>
|
||||
Police Report <br>
|
||||
Meetings</i></font></description>
|
||||
<link>http://www.feedforall.com/law-enforcement.htm</link>
|
||||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category>
|
||||
<comments>http://www.feedforall.com/forum</comments>
|
||||
<pubDate>Tue, 19 Oct 2004 11:08:56 -0400</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
6
tests/content/parsable_mime/text/xml/test.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<foo>
|
||||
<bar>
|
||||
</bar>
|
||||
</foo>
|
1
tests/content/parsable_mime/unknown/open_type
Normal file
|
@ -0,0 +1 @@
|
|||
OTTO
|