18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
NTLM HTTPS proxy problem
Hi guys,
sahi works fine for me with HTTP resources, however I have a problem with HTTPS ones.
ext.https.proxy settings are defined ok, in proper file (userdata\config\userdata.properties), but HTTP CONNECT ends up in 407 Proxy Authentication Required even after NTLMSSP_NEGOTIATE.
I'm working in Windows XP SP3, FireFox 3.5.7, Sahi V3 Release 2010-06-11.
Here is what Wireshark shows me for the sahi--proxy conversation:
--sahi request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Java/1.6.0_20
Host: mydomain.biz
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:31:52 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:31:52 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="REALM STRING"
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: close
--sahi request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Java/1.6.0_20
Host: mydomain.biz
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Proxy-authorization: NTLM NTLMSSP_NEGOTIATE_STRING_FLAGS0xA208B207_WITH_CORRECT_DOMAIN_AND_NAME
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:31:52 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:31:52 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: Basic realm="REALM STRING"
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: close
as a reference, below is what Wireshark shows for ordinary FF--proxy conversation:
--ff request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)
Proxy-Connection: keep-alive
Host: mydomain.biz
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:35:23 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:35:23 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="REALM STRING"
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: close
--ff request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)
Proxy-Connection: keep-alive
Host: mydomain.biz
Proxy-Authorization: NTLM NTLMSSP_NEGOTIATE_STRING_FLAGS0xA2088207_NULL_DOMAIN_AND_NAME
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:35:23 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:35:23 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM NTLMSSP_CHALLENGE_STRING_FLAGS0xA2898205
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: keep-alive
--ff request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)
Proxy-Connection: keep-alive
Host: mydomain.biz
Proxy-Authorization: NTLM NTLMSSP_AUTH_STRING_FLAGS0xA2888205
--proxy reply--
HTTP/1.0 200 Connection established
Any ideas will be highly appreciated.
Thanks!
sahi works fine for me with HTTP resources, however I have a problem with HTTPS ones.
ext.https.proxy settings are defined ok, in proper file (userdata\config\userdata.properties), but HTTP CONNECT ends up in 407 Proxy Authentication Required even after NTLMSSP_NEGOTIATE.
I'm working in Windows XP SP3, FireFox 3.5.7, Sahi V3 Release 2010-06-11.
Here is what Wireshark shows me for the sahi--proxy conversation:
--sahi request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Java/1.6.0_20
Host: mydomain.biz
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:31:52 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:31:52 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="REALM STRING"
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: close
--sahi request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Java/1.6.0_20
Host: mydomain.biz
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Proxy-authorization: NTLM NTLMSSP_NEGOTIATE_STRING_FLAGS0xA208B207_WITH_CORRECT_DOMAIN_AND_NAME
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:31:52 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:31:52 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: Basic realm="REALM STRING"
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: close
as a reference, below is what Wireshark shows for ordinary FF--proxy conversation:
--ff request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)
Proxy-Connection: keep-alive
Host: mydomain.biz
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:35:23 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:35:23 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="REALM STRING"
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: close
--ff request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)
Proxy-Connection: keep-alive
Host: mydomain.biz
Proxy-Authorization: NTLM NTLMSSP_NEGOTIATE_STRING_FLAGS0xA2088207_NULL_DOMAIN_AND_NAME
--proxy reply--
HTTP/1.0 407 Proxy Authentication Required
Server: squid/2.6.STABLE21
Date: Mon, 25 Oct 2010 12:35:23 GMT
Content-Type: text/html
Content-Length: 1343
Expires: Mon, 25 Oct 2010 12:35:23 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM NTLMSSP_CHALLENGE_STRING_FLAGS0xA2898205
X-Cache: MISS from proxy.name.biz
X-Cache-Lookup: NONE from proxy.name.biz:3128
Via: 1.0 proxy.name.biz:3128 (squid/2.6.STABLE21)
Proxy-Connection: keep-alive
--ff request--
CONNECT mydomain.biz:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 ( .NET CLR 3.5.30729; .NET4.0E)
Proxy-Connection: keep-alive
Host: mydomain.biz
Proxy-Authorization: NTLM NTLMSSP_AUTH_STRING_FLAGS0xA2888205
--proxy reply--
HTTP/1.0 200 Connection established
Any ideas will be highly appreciated.
Thanks!
Comments
We are investigating this.
Regards,
Narayan