Red Hat Bugzilla – Bug 1000770
ncat displays debug message during normal use
Last modified: 2015-07-13 00:14:45 EDT
Description of problem:
When using ncat to connect through a HTTP proxy a debug message is displayed on screen. This breaks automated use of ncat.
$ /usr/bin/ncat --proxy-type http --proxy proxy.example.com:3128 www.example.com 443
NCAT DEBUG: Proxy returned status code 200.
Version-Release number of selected component (if applicable):
Use ncat to connect through a HTTP proxy.
Steps to Reproduce:
1. see above
Debug message displayed.
No message displayed unless verbose output has been requested.
Fedora 19 had same bug (ticket 994376). If you ask why I'm using "ncat" instead of "nc", that's because "nc" is even more broken for use of HTTP proxy:
$ nc -X connect -x www.example.com:3128 www.example.com 443
nc: Proxy error: "HTTP/1.1 200 Connection established"
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.