-----Original Message-----
From: Prakash GS [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 11:52 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [Sip-implementors] why do u need a parameter sub-field for media
-range in the accept field?
>
>hi all
> i hav 2 doubts related to accept and accept-encoding.
>
>(a) The sip grammar defines the accept field as :-
>
>
>Accept = "Accept" ":"
> #( media-range [ accept-params ] )
>
> media-range = ( "*/*"
> | ( type "/" "*" )
> | ( type "/" subtype )
> ) *( ";" parameter )
> accept-params = ";" "q" "=" qvalue *( accept-extension )
> accept-extension = ";" token [ "=" ( token | quoted-string ) ]
>
>can someone tell me what ecaxtly is the use of the parameter sub-field in
the media-range
>field .
>
The only defined parameter is a q value. It is for preferences. For example:
Accept: text/plain;q=0.8, text/html;q=0.6
This indicates that the UAC can receive either plain text or html, but
prefers to receive plain text (due to the higher priority value).
>
>(b) according to an example in the http rfc 2616 ,the accept-encoding
field may be left
>blank .Does this serve any purpose?
Yes. It indicates that the UAC does not support any encodings at all. This
is clearly stated in section 6.7 of bis:
Note: An empty Accept-Encoding header field is permissible, even though the
syntax in [H14.3] does not
provide for it. It is equivalent to Accept-Encoding: identity, i.e., only
the identity encoding, meaning no encoding,
is permissible.
-Jonathan R.
---
Jonathan D. Rosenberg 72 Eagle Rock Ave.
Chief Scientist First Floor
dynamicsoft East Hanover, NJ 07936
[EMAIL PROTECTED] FAX: (973) 952-5050
http://www.cs.columbia.edu/~jdrosen PHONE: (973) 952-5000
http://www.dynamicsoft.com
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors