hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Adams" <st...@drifthost.com>
Subject RE: HTTP/1.1 417 Expectation Failed during HttpPost
Date Thu, 10 Apr 2008 23:12:59 GMT
I figured this out late last night.

Thanks for your help

:)

-----Original Message-----
From: Oleg Kalnichevski [mailto:olegk@apache.org] 
Sent: Thursday, 10 April 2008 11:02 PM
To: HttpClient User Discussion
Subject: Re: HTTP/1.1 417 Expectation Failed during HttpPost


On Thu, 2008-04-10 at 09:38 +1000, Steven Adams wrote:
> Hi,
> 
>  
> 
> I'm using HttpClient 4.0-alpha. I'm trying to post some data to a PHP
script
> but I keep getting the error "HTTP/1.1 417 Expectation Failed" back from
the
> server (I  think).
> 
>  
> 
> Does anyone know what this means? I've tried to search around on Google
but
> I can't find a clear explanation.
> 
>  
> 
> The log is below.
> 
>  
> 
> Thanks
> 
> Steve
> 

Steve,

Apparently lighttpd/1.4.18 does not support the 'Expect: 100-Continue'
handshake

Oleg


>  
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.DefaultClientRequestDirector  - Attempt 1 to
> execute request
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.ClientParamsStack  - 'http.protocol.version':
> HTTP/1.1
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "POST /login.php HTTP/1.1[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "Content-Length: 44[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "Content-Type:
> application/x-www-form-urlencoded[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "Host: www.somesite.org[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "Connection: Keep-Alive[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "Expect: 100-Continue[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "Cookie:
> PHPSESSID=kuhnsqd65qaeqbtmvp0m6ak656[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - >> "[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.ClientParamsStack  - 'http.protocol.version':
> HTTP/1.1
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - >> POST /login.php HTTP/1.1
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - >> Content-Length: 44
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - >> Content-Type:
> application/x-www-form-urlencoded
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - >> Host: www.somesite.org
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - >> Connection: Keep-Alive
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - >> Expect: 100-Continue
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - >> Cookie: PHPSESSID=kuhnsqd65qaeqbtmvp0m6ak656
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.ClientParamsStack  - 'http.protocol.version':
> HTTP/1.1
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.ClientParamsStack  -
> 'http.protocol.wait-for-continue': null
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - << "HTTP/1.1 417 Expectation Failed[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - << "Connection: close[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - << "Content-Length: 0[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - << "Date: Wed, 09 Apr 2008 23:35:00 GMT[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.wire  - << "Server: lighttpd/1.4.18[EOL]"
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - << HTTP/1.1 417 Expectation Failed
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - << Connection: close
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - << Content-Length: 0
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - << Date: Wed, 09 Apr 2008 23:35:00 GMT
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.headers  - << Server: lighttpd/1.4.18
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.ClientParamsStack  - 'http.protocol.version':
> HTTP/1.1
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.ClientParamsStack  -
> 'http.protocol.handle-redirects': null
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.client.ClientParamsStack  -
> 'http.protocol.handle-authentication': null
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager  - Released
> connection open but not marked reusable.
> 
> DEBUG 10 Apr 2008 09:34:56 [FtpConn thread 21 from 127.0.0.1
drftpd/drftpd]
> org.apache.http.impl.conn.DefaultClientConnection  - Connection shut down
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message