Yes, first returns a 407 error and then connects again using credentials and the connection is successful, it's correct. Find below the log:
Sent 04/11/2024 12:05:27: CONNECT http://www.google.com:443 HTTP/1.0
Sent 04/11/2024 12:05:27:
Recv 04/11/2024 12:05:27: HTTP/1.0 407 Proxy Authentication Required
Proxy-Authenticate: Basic realm="proxy"
Connection: close
Content-type: text/html; charset=utf-8
<html><head><title>407 Proxy Authentication Required</title></head>
<body><h2>407 Proxy Authentication Required</h2><h3>Access to requested resource disallowed by administrator or you need valid username/password to use this resource</h3></body></html>
Stat Disconnected.
Sent 04/11/2024 12:05:28: CONNECT http://www.google.com:443 HTTP/1.0
Sent 04/11/2024 12:05:28: Proxy-Authorization: Basic NTJnY2E4Nms6b24yMzZxNXI=
Sent 04/11/2024 12:05:28:
Recv 04/11/2024 12:05:28: HTTP/1.0 200 Connection established
Stat Connected.
Sent 04/11/2024 12:05:30: PRI * HTTP/2.0
...................
Thanks for your reply.
i am trying it for
https://www.vfsglobal.com/en/individuals/index.html and what i recive in Logs :
Sent 04.11.2024 13:26:50: CONNECT
http://www.vfsglobal.com:443 HTTP/1.0
Sent 04.11.2024 13:26:50:
Recv 04.11.2024 13:26:50: HTTP/1.0 407 Proxy Authentication Required
Proxy-Authenticate: Basic realm="proxy"
Connection: close
Content-type: text/html; charset=utf-8
<html><head><title>407 Proxy Authentication Required</title></head>
<body><h2>407 Proxy Authentication Required</h2><h3>Access to requested resource disallowed by administrator or you need valid username/password to use this resource</h3></body></html>
Stat Disconnected.
Sent 04.11.2024 13:26:50: CONNECT
http://www.vfsglobal.com:443 HTTP/1.0
Sent 04.11.2024 13:26:50: Proxy-Authorization: Basic NTJnY2E4Nms6b24yMzZxNXI=
Sent 04.11.2024 13:26:50:
Recv 04.11.2024 13:26:52: HTTP/1.0 200 Connection established
Stat Disconnected.
Stat Disconnected.
Sent 04.11.2024 13:26:55: CONNECT
http://www.vfsglobal.com:443 HTTP/1.0
Sent 04.11.2024 13:26:55:
Recv 04.11.2024 13:26:55: HTTP/1.0 407 Proxy Authentication Required
Proxy-Authenticate: Basic realm="proxy"
Connection: close
Content-type: text/html; charset=utf-8
<html><head><title>407 Proxy Authentication Required</title></head>
<body><h2>407 Proxy Authentication Required</h2><h3>Access to requested resource disallowed by administrator or you need valid username/password to use this resource</h3></body></html>
Stat Disconnected.
Sent 04.11.2024 13:26:55: CONNECT
http://www.vfsglobal.com:443 HTTP/1.0
Sent 04.11.2024 13:26:55: Proxy-Authorization: Basic NTJnY2E4Nms6b24yMzZxNXI=
Sent 04.11.2024 13:26:55:
Recv 04.11.2024 13:26:55: HTTP/1.0 200 Connection established
Stat Disconnected.
Stat Disconnected.
Stat Disconnected.