Template:Short description Template:Infobox file format

NZB is an XML-based file format for retrieving posts from NNTP (Usenet) servers.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> The format was conceived by the developers of the Newzbin.com Usenet Index.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> NZB is effective when used with search-capable websites.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> These websites create NZB files out of what is needed to be downloaded.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Using this concept, headers would not be downloaded hence the NZB method is quicker and more bandwidth-efficient than traditional methods.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Each Usenet message has a unique identifier called the "Message-ID".<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> When a large file is posted to a Usenet newsgroup, it is usually divided into multiple messages (called segments or parts) each having its own Message-ID.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> An NZB-capable Usenet client will read all needed Message-IDs from the NZB file, download them and decode the messages back into a binary file (usually using yEnc or Uuencode).<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

File format exampleEdit

The following is an example of an NZB 1.1 file.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

<syntaxhighlight lang="xml"> <?xml version="1.0" encoding="iso-8859-1" ?> <!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.1//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.1.dtd"> <nzb xmlns="http://www.newzbin.com/DTD/2003/nzb">

<head>
  <meta type="title">Your File!</meta>
  <meta type="tag">Example</meta>
</head>
<file poster="Joe Bloggs <[email protected]>;" date="1071674882" subject="Here's your file!  abc-mr2a.r01 (1/2)">
  <groups>
    <group>alt.binaries.newzbin</group>
    <group>alt.binaries.mojo</group>
  </groups>
  <segments>
    <segment bytes="102394" number="1">[email protected]</segment>
    <segment bytes="4501" number="2">[email protected]</segment>
  </segments>
</file>

</nzb> </syntaxhighlight>

See alsoEdit

Template:Portal

ReferencesEdit

Template:Reflist

External linksEdit

Template:Usenetnav


Template:Network-software-stub