[cups] "Bad" request ?
Dave Close
dave at compata.com
Fri May 12 21:42:21 PDT 2023
The CUPS response, "client-error-bad-request", unfortunately doesn't
provide any clue as to *what* is wrong with a request. Here's an example
as decoded by wireshark.
The request.
Internet Printing Protocol
[Response In: 32]
version: 2.0
operation-id: Validate-Job (0x0004)
request-id: 2
operation-attributes-tag
attributes-charset (charset): 'utf-8'
name: attributes-charset
charset value: 'utf-8'
attributes-natural-language (naturalLanguage): 'en'
name: attributes-natural-language
naturalLanguage value: 'en'
printer-uri (uri): 'ipp://pfa.local:631/ipp/'
name: printer-uri
uri value: 'ipp://pfa.local:631/ipp/'
requesting-user-name (nameWithoutLanguage): 'dave'
name: requesting-user-name
nameWithoutLanguage value: 'dave'
job-name (nameWithoutLanguage): 'testpage.pdf'
name: job-name
nameWithoutLanguage value: 'testpage.pdf'
document-format (mimeMediaType): 'application/pdf'
name: document-format
mimeMediaType value: 'application/pdf'
job-attributes-tag
document-name-supplied (nameWithoutLanguage): 'testpage.pdf'
name: document-name-supplied
nameWithoutLanguage value: 'testpage.pdf'
finishings (enum): none
name: finishings
finishings: none (3)
job-originating-host-name (nameWithoutLanguage): 'localhost'
name: job-originating-host-name
nameWithoutLanguage value: 'localhost'
job-uuid (uri): 'urn:uuid:a506d125-fe82-33ce-7b4b-d4feb3ebf216'
name: job-uuid
uri value: 'urn:uuid:a506d125-fe82-33ce-7b4b-d4feb3ebf216'
number-up (integer): 1
name: number-up
integer value: 1
end-of-attributes-tag
The response:
Internet Printing Protocol
[Request In: 15]
[Response Time: 0.066818000 seconds]
version: 2.0
status-code: Client Error (client-error-bad-request)
request-id: 2
operation-attributes-tag
attributes-charset (charset): 'utf-8'
name: attributes-charset
charset value: 'utf-8'
attributes-natural-language (naturalLanguage): 'en'
name: attributes-natural-language
naturalLanguage value: 'en'
end-of-attributes-tag
Someone please help me to understand where I can look to see what is
causing this error. The target printer is an HP M406, if that helps.
And, of course, if you can see the problem, can you tell me how to
fix it?
--
Dave Close, Compata, Irvine CA "Genius may have its limitations,
dave at compata.com, +1 714 434 7359 but stupidity is not thus
dhclose at alumni.caltech.edu handicapped." --Elbert Hubbard
More information about the cups
mailing list