redhat-support-tool is displaying HTTP header information when sending or receiving data from the Customer Portal

Solution Verified - Updated -

Issue

  • redhat-support-tool is displaying HTTP information whenever it interacts with the Customer Portal
  • Happens both with interative or non-interactive mode
Command (? for help): listattachments
Please provide the case number(or 'q' to exit): 01079464
send: 'GET /rs/cases/01079464/attachments HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: api.access.redhat.com\r\nContent-Type: application/xml\r\nAccept: application/xml\r\nAuthorization: Basic cmhuLXN1cHBvcnQtbWh1dGg6cmhuLXBhc3N3ZA==\r\nUser-Agent: redhat-support-tool-0.9.6\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Server: Apache-Coyote/1.1
header: Pragma: No-cache
header: Cache-Control: no-cache
header: Expires: Wed, 31 Dec 1969 19:00:00 EST
header: X-Trace: 1B57669F2739B2C28890E01247B6B313593F54CBEA256B2C1D5FD29F00
header: Access-Control-Allow-Headers: Content-Type, X-PINGOTHER, X-Omit, Authorization
header: Access-Control-Allow-Credentials: true
header: Access-Control-Max-Age: 1728000
header: Access-Control-Expose-Headers: Content-Length, Location, View-Uri, view_uri, Uri
header: Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
header: Content-Type: application/xml
header: Transfer-Encoding: chunked
header: Date: Thu, 24 Apr 2014 05:47:38 GMT

Type the number of the attachment to download or 'e' to return to the previous menu.
  1 hosts.gz                  701cc89f-dea6-3825-8520-d3b87d5cc61e      /etc/hosts
...

$ redhat-support-tool kb 12345
send: 'GET /rs/solutions/12345 HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: api.access.redhat.com\r\nContent-Type: application/xml\r\nAccept: application/xml\r\nAuthorization: Basic cmhuLXN1cHBvcnQtbWh1dGg6cmhuLXBhc3N3ZA==\r\nUser-Agent: redhat-support-tool-0.9.6\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Server: Apache-Coyote/1.1
header: Access-Control-Allow-Headers: Content-Type, X-PINGOTHER, X-Omit, Authorization
header: Strata-Message: The node you requested is  not a  kcs_solution.
header: Strata-Code: 404
header: Access-Control-Allow-Credentials: true
header: Access-Control-Max-Age: 1728000
header: Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
header: Content-Type: application/xml
header: Content-Length: 193
header: Date: Thu, 24 Apr 2014 05:51:25 GMT
send: 'GET /rs/articles/12345 HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: api.access.redhat.com\r\nContent-Type: application/xml\r\nAccept: application/xml\r\nAuthorization: Basic cmhuLXN1cHBvcnQtbWh1dGg6cmhuLXBhc3N3ZA==\r\nUser-Agent: redhat-support-tool-0.9.6\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Server: Apache-Coyote/1.1
header: Pragma: No-cache
header: Cache-Control: no-cache
header: Expires: Wed, 31 Dec 1969 19:00:00 EST
header: X-Trace: 1BEA91B795783601395295D75DF3726BDCFED9D357471D217BB1D9EAF8
header: Cache-Control: no-cache
header: Access-Control-Allow-Headers: Content-Type, X-PINGOTHER, X-Omit, Authorization
header: View-Uri: https://access.redhat.com/site/node/12345
header: Strata-Message: OK
header: Location: https://api.access.redhat.com/rs/articles/12345
header: Strata-Code: 200
header: Access-Control-Allow-Credentials: true
header: Access-Control-Max-Age: 1728000
header: Access-Control-Expose-Headers: Content-Length, Location, View-Uri, view_uri, Uri
header: Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
header: Content-Type: application/xml
header: Content-Length: 1309
header: Date: Thu, 24 Apr 2014 05:51:27 GMT

Title
===============================================================================
...

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • redhat-support-tool

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In