[cups.bugs] [LOW] STR #1407: Cups does not accept data send with Expect: 100-continue header

Wolfgang Baer WBaer at gmx.de
Thu Jan 26 17:30:04 PST 2006


[STR New]

Hi,

I use a (self written) java library to submit print jobs to cups. 

Sending the print job http post request with "Expect 100-continue" 
in the header it does not return response code 100 but finishes 
connection with: SendError: 6 code=400 (Bad Request).

Sending the same post request without the Expect 100-continue header
works flawless. As far as I know Expect 100-continue should be 
supported for HTTP 1.1 servers.

Debugging output from cups server:

d [26/Jan/2006:21:32:39 +0100] AcceptClient(lis=0x8089398) 0 NumClients =
0
D [26/Jan/2006:21:32:39 +0100] AcceptClient: 6 from localhost:631.
d [26/Jan/2006:21:32:39 +0100] AcceptClient: Adding fd 6 to InputSet...
d [26/Jan/2006:21:32:39 +0100] ReadClient: 6, used=0, file=-1
D [26/Jan/2006:21:32:39 +0100] ReadClient: 6 POST / HTTP/1.1
d [26/Jan/2006:21:32:39 +0100] decode_auth(0xb7850008): Authorization
string = ""
d [26/Jan/2006:21:32:39 +0100] decode_auth: 6 username=""
d [26/Jan/2006:21:32:39 +0100] IsAuthorized: con->uri = "/"
d [26/Jan/2006:21:32:39 +0100] FindBest: uri = "/"...
d [26/Jan/2006:21:32:39 +0100] FindBest: Location / Limit 7f
d [26/Jan/2006:21:32:39 +0100] FindBest: Location /jobs Limit 7f
d [26/Jan/2006:21:32:39 +0100] FindBest: Location /admin Limit 7f
d [26/Jan/2006:21:32:39 +0100] FindBest: best = "/"
d [26/Jan/2006:21:32:39 +0100] IsAuthorized: auth = 0, satisfy=0...
d [26/Jan/2006:21:32:39 +0100] POST /
d [26/Jan/2006:21:32:39 +0100] CONTENT_TYPE = application/ipp
d [26/Jan/2006:21:32:39 +0100] ReadClient: 6 con->data_encoding = length,
con->data_remaining = 72, con->file = -1
E [26/Jan/2006:21:32:40 +0100] ReadClient: 6 IPP Read Error!
D [26/Jan/2006:21:32:40 +0100] SendError: 6 code=400 (Bad Request)
D [26/Jan/2006:21:32:40 +0100] CloseClient: 6
d [26/Jan/2006:21:32:40 +0100] CloseClient: Removing fd 6 from InputSet
and OutputSet...

Regards,
Wolfgang

Cups server is running on Debian unstable
Linux localhost 2.6.14 #1 PREEMPT i686 GNU/Linux
Debian version: cupsys 1.1.23-15

Link: http://www.cups.org/str.php?L1407
Version: 1.1.23





More information about the cups-devel mailing list