W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2011

Re: #327: Expect syntax

From: Willy Tarreau <w@1wt.eu>
Date: Sat, 17 Dec 2011 23:25:38 +0100
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Alex Rousskov <rousskov@measurement-factory.com>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20111217222538.GD21202@1wt.eu>
On Sat, Dec 17, 2011 at 11:01:14PM +0100, Julian Reschke wrote:
> >Well, it's possible that in a few years we see new implementations write
> >their Expect header as $expectation ";" $extension but by this time, server
> 
> Example?

I basically mean this (sorry for the poor naming above) :

  int make_header(char *out, const char *hdr, const char *name, const char *value)
  {
	return sprintf(out, "%s: %s; %s\r\n", hdr, name, value);
  }

and further in the code :

  if (post_request)
      req += make_header(req, "Expect", "100-continue", "");

Which will result exactly in this, which was not possible in 2616 :

  "Expect: 100-continue; \r\n"

That said, since Expect is only used with 100-continue, we could add
a line indicating that previous versions did not allow the trailing
semi-colon and that senders should avoid emitting it for the sake of
interoperability.

Regards,
Willy
Received on Saturday, 17 December 2011 22:26:22 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:26 UTC