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

 

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

Reply via email to