genotrance / px

An HTTP proxy server to automatically authenticate through an NTLM proxy
MIT License
950 stars 98 forks source link

NTLM proxy authentication failing #221

Open navneet-mittal opened 4 months ago

navneet-mittal commented 4 months ago

I am using your latest docker image and running it on ubuntu 22.04 command docker run genotrance/px --username=myusername --password=mypassword --pac=http://mycompany.com/mycompany.pac --noproxy=127.0.0.,10...,192.168.. --hostonly --test --debug

I get this error

GNOME_KEYRING_CONTROL=/root/.cache/keyring-EKRJP2 SSH_AUTH_SOCK=/root/.cache/keyring-EKRJP2/ssh MainProcess: MainThread: 1718725895: /main/parse_config/dprint: Host-only mode - overriding 'listen' and binding to all interfaces MainProcess: MainThread: 1718725895: /main/parse_config/dprint: Px will automatically restrict access to host interfaces MainProcess: MainThread: 1718725895: /main/parse_config/dprint: Removing default 'allow' everyone rule MainProcess: MainThread: 1718725895: /init/parse_noproxy/dprint: set() MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: libcurl/8.5.0 OpenSSL/3.1.4 zlib/1.3.1 brotli/1.1.0 c-ares/1.24.0 libidn2/2.3.4 nghttp2/1.58.0 MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_SSL: True MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_SSPI: False MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_SPNEGO: False MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_GSSAPI: False MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_GSSNEGOTIATE: False MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_KERBEROS5: False MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_NTLM: True MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: CURL_VERSION_NTLM_WB: False MainProcess: MainThread: 1718725895: /init/print_curl_version/dprint: Host: x86_64-alpine-linux-musl Serving at :3128 proc MainProcess MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:server = MainProcess: Thread-1 (queryall): 1718725895: /query/init/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: New curl instance MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:pac = http://mycompany.com/mycompany.pac MainProcess: Thread-1 (queryall): 1718725895: /init/_setup/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: GET http://httpbin.org/get using HTTP/1.1 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:pac_encoding = utf-8 MainProcess: Thread-1 (queryall): 1718725895: /query/set_curl_auth/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Skipping proxy authentication MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:port = 3128 MainProcess: Thread-1 (queryall): 1718725895: /query/buffer/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Setting up buffers for bridge MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:listen = MainProcess: Thread-1 (queryall): 1718725895: /buffer/bridge/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Setting up bridge MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:gateway = 0 MainProcess: Thread-1 (queryall): 1718725895: /query/set_useragent/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Setting user agent to mcurl v0.9.1 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:hostonly = 1 MainProcess: Thread-1 (queryall): 1718725895: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Curl info: Trying 127.0.0.1:3128... MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:allow = MainProcess: Thread-1 (queryall): 1718725895: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Curl info: Connected to 127.0.0.1 (127.0.0.1) port 3128 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:noproxy = 127.0.0.,10...,192.168.. MainProcess: Thread-1 (queryall): 1718725895: /_debug_callback/save_upstream/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Upstream server = 127.0.0.1 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:useragent = MainProcess: Thread-1 (queryall): 1718725895: /_debug_callback/save_upstream/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Upstream server is proxy MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:username = domain\myusername MainProcess: Thread-1 (queryall): 1718725895: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Sent header => GET http://httpbin.org/get HTTP/1.1 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: proxy:auth = MainProcess: Thread-1 (queryall): 1718725895: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Sent header => Host: httpbin.org MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: settings:workers = 1 MainProcess: Thread-1 (queryall): 1718725895: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Sent header => User-Agent: mcurl v0.9.1 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: settings:threads = 32 MainProcess: Thread-1 (queryall): 1718725895: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Sent header => Accept: / MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: settings:idle = 30 MainProcess: Thread-1 (queryall): 1718725895: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Sent header => Proxy-Connection: Keep-Alive MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: settings:socktimeout = 20.0 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: settings:proxyreload = 60 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: settings:foreground = 0 MainProcess: MainThread: 1718725895: /run_pool/print_banner/dprint: settings:log = 1 MainProcess: MainThread: 1718725895: /_handle_request_noblock/verify_request/dprint: Client address: 127.0.0.1 MainProcess: MainThread: 1718725895: /_handle_request_noblock/verify_request/dprint: Host-only IP allowed MainProcess: MainThread: 1718725895: /_handle_request_noblock/verify_request/dprint: Client address: 127.0.0.1 MainProcess: MainThread: 1718725895: /_handle_request_noblock/verify_request/dprint: Host-only IP allowed MainProcess: Thread_0: 1718725895: /do_curl/do_client_auth/dprint: No client authentication required MainProcess: Thread_0: 1718725895: /do_curl/init/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: New curl instance MainProcess: Thread_0: 1718725895: /init/_setup/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: GET http://httpbin.org/get using HTTP/1.1 MainProcess: Thread_0: 1718725895: /do_GET/do_curl/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Path = http://httpbin.org/get MainProcess: Thread_0: 1718725895: /find_proxy_for_url/get_netloc/dprint: netloc = ('httpbin.org', 80), path = /get MainProcess: Thread_0: 1718725895: /find_proxy_for_url/check_noproxy_for_netloc/dprint: Couldn't resolve host MainProcess: Thread_0: 1718725895: /find_proxy_for_url/init/dprint: Loading PAC utils MainProcess: Thread_0: 1718725895: /find_proxy_for_url/load_url/dprint: Loading PAC url: http://mycompany.com/mycompany.pac MainProcess: Thread_0: 1718725895: /load_url/init/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: New curl instance MainProcess: Thread_0: 1718725895: /init/_setup/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: GET http://mycompany.com/mycompany.pac using HTTP/1.1 MainProcess: Thread_0: 1718725895: /load_url/buffer/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Setting up buffers for bridge MainProcess: Thread_0: 1718725895: /buffer/bridge/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Setting up bridge MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Curl info: Host mycompany.com:80 was resolved. MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Curl info: IPv6: (none) MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Curl info: IPv4: xx.xx.xx.xx MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Curl info: Trying xx.xx.xx.xx:80... MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Curl info: Connected to mycompany.com (xx.xx.xx.xx) port 80 MainProcess: Thread_0: 1718725895: /_debug_callback/save_upstream/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Upstream server = mycompany.com MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Sent header => GET /mycompany.pac HTTP/1.1 MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Sent header => Host: mycompany.com MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Sent header => Accept: / MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= HTTP/1.1 200 OK MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= Cache-Control: no-cache MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= Content-Type: application/x-ns-proxy-autoconfig MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= Last-Modified: Thu, 13 Jun 2024 05:56:01 GMT MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= Accept-Ranges: bytes MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= ETag: "45dbe55e56bdda1:0" MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= X-Powered-By: ASP.NET MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= Date: Tue, 18 Jun 2024 15:51:35 GMT MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= Connection: close MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Received header <= Content-Length: 4663 MainProcess: Thread_0: 1718725895: /perform/_header_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Done sending headers MainProcess: Thread_0: 1718725895: /perform/_debug_callback/dprint: 3469669fecf6660d832a54e546d52b1fb1e51a82: Curl info: Closing connection MainProcess: Thread_0: 1718725895: /find_proxy_for_url/find_proxy_for_url/dprint: Finding proxy for http://httpbin.org/get MainProcess: Thread_0: 1718725895: /do_curl/get_destination/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Proxy = [('maycompany', 8080), ('mycompany', 8080), ('DIRECT', 80)] MainProcess: Thread_0: 1718725895: /do_GET/do_curl/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Configuring proxy settings MainProcess: Thread_0: 1718725895: /set_curl_auth/set_auth/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Blank password for user MainProcess: Thread_0: 1718725895: /set_curl_auth/set_auth/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Setting proxy auth mechanism to ANY MainProcess: Thread_0: 1718725895: /do_curl/bridge/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Setting up bridge MainProcess: Thread_0: 1718725895: /do_curl/set_headers/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Adding header => Host: httpbin.org MainProcess: Thread_0: 1718725895: /set_headers/set_useragent/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Setting user agent to mcurl v0.9.1 MainProcess: Thread_0: 1718725895: /do_curl/set_headers/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Adding header => Accept: / MainProcess: Thread_0: 1718725895: /do_curl/set_headers/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Skipping header =!> Proxy-Connection: Keep-Alive MainProcess: Thread_0: 1718725895: /do_curl/set_headers/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Setting headers MainProcess: Thread_0: 1718725895: /do/add/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Handles = 1 MainProcess: Thread_0: 1718725895: /add/_add_handle/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Add handle MainProcess: Thread_0: 1718725895: /add/_add_handle/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Added handle MainProcess: Thread_0: 1718725895: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Host maycompany:8080 was resolved. MainProcess: Thread_0: 1718725895: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: IPv6: (none) MainProcess: Thread_0: 1718725895: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: IPv4: xx.xx.xx.xx MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Trying xx.xx.xx.xx:8080... MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Connected to maycompany (xx.xx.xx.xx) port 8080 MainProcess: Thread_0: 1718725896: /_debug_callback/save_upstream/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Upstream server = maycompany MainProcess: Thread_0: 1718725896: /_debug_callback/save_upstream/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Upstream server is proxy MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => GET http://httpbin.org/get HTTP/1.1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Host: httpbin.org MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => User-Agent: mcurl v0.9.1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Proxy-Connection: Keep-Alive MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Accept: / MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= HTTP/1.1 407 Proxy Authentication Required MainProcess: Thread_0: 1718725896: /_socket_action/_header_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Suppressing headers MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Set-Cookie: BCSI-CS-a003faa8487e5ffa=2; Path=/ MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Proxy-Authenticate: NEGOTIATE MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Proxy-Authenticate: NTLM MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Cache-Control: no-cache MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= X-XSS-Protection: 1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Connection: close MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Content-Type: text/html; charset=utf-8 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Content-Length: 2954 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Pragma: no-cache MainProcess: Thread_0: 1718725896: /_socket_action/_header_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Resuming headers MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Closing connection MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Issue another request to this URL: 'http://httpbin.org/get' MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Hostname maycompany was found in DNS cache MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Trying xx.xx.xx.xx:8080... MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Connected to maycompany (xx.xx.xx.xx) port 8080 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Proxy auth using NTLM sanitized len(25) MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => GET http://httpbin.org/get HTTP/1.1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Host: httpbin.org MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Proxy-Authorization: NTLM sanitized len(45) MainProcess: Thread_0: 1718725896: /_debug_callback/save_auth/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Caching proxy auth mechanism for maycompany as NTLM MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => User-Agent: mcurl v0.9.1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Proxy-Connection: Keep-Alive MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Accept: / MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= HTTP/1.1 407 Proxy Authentication Required MainProcess: Thread_0: 1718725896: /_socket_action/_header_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Suppressing headers MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Set-Cookie: BCSI-CS-a003faa8487e5ffa=2; Path=/ MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Proxy-Authenticate: NTLM sanitized len(277) MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Cache-Control: no-cache MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= X-XSS-Protection: 1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Connection: Keep-Alive MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Content-Type: text/html; charset=utf-8 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Content-Length: 2971 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Pragma: no-cache MainProcess: Thread_0: 1718725896: /_socket_action/_header_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Resuming headers MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Ignoring the response-body MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Connection #1 to host maycompany left intact MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Issue another request to this URL: 'http://httpbin.org/get' MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Found bundle for host: 0x7faec3dc6560 [serially] MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Re-using existing connection with proxy maycompany MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Proxy auth using NTLM sanitized len(25) MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => GET http://httpbin.org/get HTTP/1.1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Host: httpbin.org MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Proxy-Authorization: NTLM sanitized len(409) MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => User-Agent: mcurl v0.9.1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Proxy-Connection: Keep-Alive MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Sent header => Accept: / MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= HTTP/1.1 407 Proxy Authentication Required MainProcess: Thread_0: 1718725896: /_socket_action/_header_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Suppressing headers MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Set-Cookie: BCSI-CS-a003faa8487e5ffa=2; Path=/ MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: NTLM handshake rejected MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Authentication problem. Ignoring this. MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Proxy-Authenticate: NTLM MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Cache-Control: no-cache MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= X-XSS-Protection: 1 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Connection: close MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Content-Type: text/html; charset=utf-8 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Content-Length: 3004 MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Received header <= Pragma: no-cache MainProcess: Thread_0: 1718725896: /_socket_action/_header_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Resuming headers MainProcess: Thread_0: 1718725896: /_socket_action/_write_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Skipped 3004 bytes MainProcess: Thread_0: 1718725896: /_socket_action/_debug_callback/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Curl info: Closing connection MainProcess: Thread_0: 1718725896: /do_GET/do_curl/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Connection failed: Proxy authentication failed: check user/password or try different auth mechanism; MainProcess: Thread_0: 1718725896: /log_error/log_message/dprint: code 401, message Proxy authentication failed: check user/password or try different auth mechanism; MainProcess: Thread_0: 1718725896: /log_request/log_message/dprint: "GET http://httpbin.org/get HTTP/1.1" 401 - MainProcess: Thread_0: 1718725896: /remove/_remove_handle/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Remove handle: Proxy authentication failed: check user/password or try different auth mechanism; MainProcess: Thread-1 (queryall): 1718725896: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Received header <= HTTP/1.1 401 Proxy authentication failed: check user/password or try different auth mechanism; MainProcess: Thread-1 (queryall): 1718725896: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Received header <= Server: BaseHTTP/0.6 Python/3.12.2 MainProcess: Thread-1 (queryall): 1718725896: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Received header <= Date: Tue, 18 Jun 2024 15:51:36 GMT MainProcess: Thread-1 (queryall): 1718725896: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Received header <= Connection: close MainProcess: Thread-1 (queryall): 1718725896: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Received header <= Content-Type: text/html;charset=utf-8 MainProcess: Thread-1 (queryall): 1718725896: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Received header <= Content-Length: 416 MainProcess: Thread-1 (queryall): 1718725896: /perform/_header_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Done sending headers MainProcess: Thread-1 (queryall): 1718725896: /perform/_debug_callback/dprint: 2d6f4964282a79b8d619fa6715474cf422cd9275: Curl info: Closing connection

Testing GET http://httpbin.org/get

HTTP/1.1 401 Proxy authentication failed: check user/password or try different auth mechanism; Server: BaseHTTP/0.6 Python/3.12.2 Date: Tue, 18 Jun 2024 15:51:36 GMT Connection: close Content-Type: text/html;charset=utf-8 Content-Length: 416

Response length: 416 Failed: response does not contain http://httpbin.org/get: <!DOCTYPE HTML>

Error response

Error response

Error code: 401

Message: Proxy authentication failed: check user/password or try different auth mechanism; .

Error code explanation: 401 - No permission -- see authorization schemes.

genotrance commented 1 month ago

You cannot use --password this way - please see the documentation.

MainProcess: Thread_0: 1718725895: /set_curl_auth/set_auth/dprint: fe7cd3f85cfddc12a60e67f872e63ab114e250c8: Blank password for user

You need to set the password with --password without value - password will be prompted and saved to keyring. Less secure alternative is to use PX_PASSWORD environment variable.