mmlib/mmat: replace some variables by literal constants
[mmondor.git] / tests / bktr_httpd / README
1 $Id: README,v 1.4 2008/01/21 09:35:31 mmondor Exp $
2
3 The goal of this project is to create a simple HTTPd to serve
4 images which are comming in from bktr_multicast to HTTP clients.
5 This would allow a device to act as an HTTP camera.  It also would
6 allow to broadcast the stream over the internet, for which
7 multicast is not suited.
8
9 This does not consist of a general purpose web server.  It
10 requires HTTP 1.1 clients with support for keep-aliver, and does
11 not care much about the request sent by the client.  Although it
12 directly could be accessed from the internet, the usual setup will
13 be a general web server proxying requests for a certain URL
14 category to this HTTPd.
15
16 See http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html for
17 more details.
18
19 We send the image stream as follows:
20
21 -----------------------------------------------------------------
22 Client sends standard HTTP 1.1 query with Connection: keep-alive:
23
24 GET <url> HTTP/1.1
25 Host: <host>:<port>
26 User-Agent: <useragent>
27 Accept: <accept-list>
28 Keep-Alive: 300
29 Connection: keep-alive
30 Referer: <referer>
31
32 -----------------------------------------------------------------
33 Server replies with stream:
34
35 HTTP/1.0 200 OK
36 Content-type: multipart/x-mixed-replace; boundary=--myboundary
37
38 --myboundary
39 Content-length: 11737
40 Content-type: image/jpeg
41
42 <binary image follows>
43 --myboundary
44 Content-length: 11669
45 Content-type: image/jpeg
46
47 <binary image follows>
48 ...