httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Campbell, Scott" <>
Subject [users@httpd] "Expect: 100-continue" bug in 2.2.14?
Date Fri, 06 Aug 2010 20:56:58 GMT
So we have a development team that writes web apps in .NET.  We use
Apache 2.2.14 on Linux for a reverse proxy to their app.  I am very
confused by the Apache response, and wonder if it's a bug in the apache
code or mod_proxy code.

The developers are posting the following to their app, through our proxy
POST /foo/bar.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://foo2/bar2"
Content-Length: 235
Expect: 100-continue
Connection: Keep-Alive

Apache responds back with:
HTTP/1.1 417 Expectation Failed
Date: Fri, 06 Aug 2010 20:30:23 GMT
Content-Length: 440
Keep-Alive: timeout=3, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head>
<title>417 Expectation Failed</title>
<h1>Expectation Failed</h1>
<p>The expectation given in the Expect request-header field could not be
met by this server.
The client sent<pre>
    Expect: 100-continue
</p><p>Only the 100-continue expectation is supported.</p> <hr>
<address>Apache Server at Port 80</address>
</body></html> ========================================

My confusion is that Apache is saying it only supports "100-continue",
and yet that is exactly what the client sent.  Can anyone clear this up?

Next, I tried to use mod_headers to "unset" the "Expect" RequestHeader
value.  It is successfully unsetting the value, but leaving it blank,
and then Apache complains about a blank "Expect" request.

Does anyone have any suggestions on how I can either fix, remove, or get
around this "Expect 100-continue" issue?  I can't have development
modify all of their code, and am pretty sure I can just nuke the
"Expect" value in the headers, if I could get that to work...

Thanks for any advice.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message