[occi-wg] Content type and Accept
Ralf Nyren
ralf at nyren.net
Sun Mar 27 13:15:51 CDT 2011
Yes, they can indeed by different. You can for instance send your request
as text/occi and except the response in text/plain.
As the spec is written right now this is allowed and is in line with
RFC2616. Think about how a web-browser POSTs a web-form. The request
parameters are typically in "multipart/form-data" while the response is in
text/html as dictated by the Accept header.
The occi-py library (http://github.com/nyren/occi-py) supports this nicely.
regards, Ralf
On Sun, 27 Mar 2011 19:14:48 +0200, Gary Mazz <garymazzaferro at gmail.com>
wrote:
> Hi,
>
> I just realized that Content Type of a HTTP request and the response may
> be in different formats..
> Is this permissible, or should I rephrase, should we make this
> permissible or force them to be the same ?
>
> gary
> _______________________________________________
> occi-wg mailing list
> occi-wg at ogf.org
> http://www.ogf.org/mailman/listinfo/occi-wg
More information about the occi-wg
mailing list