New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ncat proxy server on Win7 rejects connections with HTTP/400 #1443

Open
nnposter opened this Issue Jan 25, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@nnposter
Copy link

nnposter commented Jan 25, 2019

When in proxy server mode on Win7, ncat immediately responds to a new connection with HTTP/1.0 400 Bad Request. This HTTP response happens before the client submits any data.

C:\>ncat -vvv -l --proxy-type http
Ncat: Version 7.70 ( https://nmap.org/ncat )
NCAT DEBUG: Initialized fdlist with 2 maxfds
Ncat: Listening on :::3128
NCAT DEBUG: Added fd 96 to list, nfds 1, maxfd 96
Ncat: Listening on 0.0.0.0:3128
NCAT DEBUG: Added fd 92 to list, nfds 2, maxfd 96
NCAT DEBUG: selecting, fdmax 96
NCAT DEBUG: select returned 1 fds ready
NCAT DEBUG: forking handler for 92
NCAT DEBUG: selecting, fdmax 96
NCAT DEBUG: Error reading Request-Line.

The same behavior is not observed on Linux.

@nnposter nnposter added bug Ncat labels Jan 25, 2019

@nnposter nnposter added the Windows label Feb 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment