Hi, @gsaikumar,
The 407 error means your LG is connecting to AUT via a proxy, and the Proxy server is asking for Authentication.
The solution is use web_set_user() to specify a login string for the proxy server.
To analyze the issue, you can turn the extended log on, a typical 407 messages looks like:
Action.c(8): HTTP/1.1 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfi
Action.c(8): ll the request. Access to the Web Proxy filter is denied. )\r\n
Action.c(8): Via: 1.1 MYD-VM06241\r\n
Action.c(8): Proxy-Authenticate: Negotiate\r\n
Action.c(8): Proxy-Authenticate: Kerberos\r\n
Action.c(8): Proxy-Authenticate: NTLM\r\n
Action.c(8): Connection: Keep-Alive\r\n
Action.c(8): Proxy-Connection: Keep-Alive\r\n
Action.c(8): Pragma: no-cache\r\n
Action.c(8): Cache-Control: no-cache\r\n
Action.c(8): Content-Type: text/html\r\n
Action.c(8): Content-Length: 4139 \r\n
Action.c(8): \r\n
Action.c(8): HTTP Status-Code=407 (Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )) for "http://kalimanjaro/cgi-bin/print_via_as_link.asp" [MsgId: MMSG-26624]
Action.c(8): Attempting retry due to the above HTTP Status-Code of 407 for "http://kalimanjaro/cgi-bin/print_via_as_link.asp" [MsgId: MMSG-26678]
Action.c(8): t=1193ms: reporting user data point RETRY_407 [MsgId: MMSG-26000]
Action.c(8): t=1194ms: Already connected [0] to myd-vm06241.hpswlabs.adapps.hp.com:81 [MsgId: MMSG-26000]
Action.c(8): t=1387ms: 2481-byte request headers for "http://kalimanjaro/cgi-bin/print_via_as_link.asp" (RelFrameId=1, Internal ID=1)
Action.c(8): GET http://kalimanjaro/cgi-bin/print_via_as_link.asp HTTP/1.1\r\n
Action.c(8): User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; Win64; x64; Trident/7.0; .N
Action.c(8): ET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)\r\n
Action.c(8): Accept-Encoding: gzip, deflate\r\n
Action.c(8): Accept-Language: en-US\r\n
Action.c(8): Accept: */*\r\n
Action.c(8): Proxy-Connection: Keep-Alive\r\n
Action.c(8): Host: kalimanjaro\r\n
Action.c(8): Proxy-Authorization: Negotiate YIIGHwYGKwYBBQUCoIIGEzCCBg+gDTALBgkqhkiG9xIBAgKiggX8BIIF+GC
logs in yellow shows: the Proxy server returns 407 error to indicate that it requires authentication, and the supported authentication method is listed(Negotiate/ Kerberos / NTLM)
logs in green shows: LR retry the connection using one of the supported authentication method.
web_set_sockets_option("PROXY_INITIAL_BASIC_AUTH","1"); won’t help here. It just told LR to use an authorization method directly to reduce the “retry” steps.
Hope you can find the failure reason based on logs.
Anyway, you can post the extended log on LG here for further analyze if not sure.