Gnutella Protocol Development
Home :: Developer :: Press :: Research :: Servents
Appendix B : Known HTTP Download Headers
B - 1 Client headers
Header | Status | Usage | Example |
---|---|---|---|
User-Agent | Mandatory | The user agent (for the client only) | User-Agent: LimeWire 2.9.1 |
Host | Recommended | Address of the server, seen by the client | Host: 123,123,123,123:6346 |
Connection | Optional (HTTP/1.1) | Support of persistent connections | Connection: Keep-Alive |
Range | Mandatory | Requested range | Range: bytes=4932766-5066083 |
X-Gnutella-Alternate-Location | Recommended | known alternate locations for the file (HUGE) | see below |
B - 2 Server headers
Header | Status | Usage | Examples |
---|---|---|---|
Server | Mandatory | same as User-Agent (for the server) | Server: BearShare 2.9.0 |
Content-Type | Recommended | content-type of requested file | Content-type: application/binary |
Content-Length | Mandatory | length of requested file | Content-length: 133318 |
Content-Range | Recommended (partial GET) | range requested from file | Content-Range: bytes 4932766-5066083/5332732 |
Accept-Ranges | Optional | Support of ranges (this header is not required to request a partial GET) | Accept-Ranges: bytes |
Retry-After | Recommended | Time to wait before next attempt to get the file | |
X-Gnutella-Content-URN | Recommended | HUGE URN of the requested file | X-Gnutella-Content-URN: urn:sha1:PLST________YPFB |
X-Gnutella-Alternate-Location | Recommended | known alternate locations of the file (see HUGE for more information) | X-Gnutella-Alternate-Location: http://www.clip2.com/GnutellaProtocol04.pdf X-Gnutella-Alternate-Location: http://10.0.0.10:6346/get/2468/GnutellaProtocol04.pdf X-Gnutella-Alternate-Location: http://10.0.0.25:6346/uri-res/N2R?urn:sha1:PLSTUPAKUZWUGYQYPFB 2002-04-30T08:30Z |