HTTP Teapot

Status
Not open for further replies.

litewarez

Active Member
1,367
2008
1
0
Who would of thought programmers have a funny side.

http://www.ietf.org/rfc/rfc2324.txt

:P

Code:
2.2.2.1 The Accept-Additions header field

   In HTTP, the "Accept" request-header field is used to specify media
   types which are acceptable for the response. However, in HTCPCP, the
   response may result in additional actions on the part of the
   automated pot. For this reason, HTCPCP adds a new header field,
   "Accept-Additions":


       Accept-Additions = "Accept-Additions" ":"
                          #( addition-range [ accept-params ] )

        addition-type   = ( "*"
                          | milk-type
                          | syrup-type
                          | sweetener-type
                          | spice-type
                          | alcohol-type
                          ) *( ";" parameter )
        milk-type       = ( "Cream" | "Half-and-half" | "Whole-milk"
                          | "Part-Skim" | "Skim" | "Non-Dairy" )
        syrup-type      = ( "Vanilla" | "Almond" | "Raspberry"
                          | "Chocolate" )
        alcohol-type    = ( "Whisky" | "Rum" | "Kahlua" | "Aquavit" )
 
3 comments
lool :P

Look at all those things :P

addition-type = ( "*"
| milk-type
| syrup-type
| sweetener-type
| spice-type
| alcohol-type
) *( ";" parameter )
milk-type = ( "Cream" | "Half-and-half" | "Whole-milk"
| "Part-Skim" | "Skim" | "Non-Dairy" )
syrup-type = ( "Vanilla" | "Almond" | "Raspberry"
| "Chocolate" )
alcohol-type = ( "Whisky" | "Rum" | "Kahlua" | "Aquavit" )
 
HAHA - love it :)

8. Acknowledgements

Many thanks to the many contributors to this standard, including Roy
Fielding, Mark Day, Keith Moore, Carl Uno-Manros, Michael Slavitch,
and Martin Duerst. The inspiration of the Prancing Pony, the CMU
Coke Machine, the Cambridge Coffee Pot, the Internet Toaster, and
other computer controlled remote devices have led to this valuable
creation.
 
Status
Not open for further replies.
Back
Top