httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Campbell, Scott" <Scott_Campb...@WrightExpress.com>
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
server:
========================================
POST /foo/bar.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://foo2/bar2"
Host: foofoo.barbar.com
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>
</head><body>
<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
</pre>
</p><p>Only the 100-continue expectation is supported.</p> <hr>
<address>Apache Server at foofoo.barbar.com 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.
Scott



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message