./curl --version
curl 7.40.0 (x86_64-pc-win32) libcurl/7.40.0 WinSSL WinIDN
---
./curl --verbose -U : --proxy-ntlm -x http://proxy:3128 http://httpbin.org/get
* Trying 1.2.3.4...
* Connected to proxy (1.2.3.4) port 3128 (#0)
* Proxy auth using NTLM with user ''
> GET http://httpbin.org/get HTTP/1.1
> Proxy-Authorization: NTLM TlRMTVNTUAABAAAAB7IIogkACQAzAAAACwALACgAAAAGA4AlAAAAD1BDLUJPQ0NBUkRPVU5JTUFUSUNB
> User-Agent: curl/7.40.0
> Host: httpbin.org
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* HTTP 1.0, assume close after body
< HTTP/1.0 407 Proxy Authentication Required
< Server: squid/3.1.10
< Mime-Version: 1.0
< Date: Thu, 15 Jan 2015 12:29:05 GMT
< Content-Type: text/html
< Content-Length: 3405
< X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
< Vary: Accept-Language
< Content-Language: en
< Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAEgASADgAAAAFgomicjtfqsT8nkwAAAAAAAAAAIgAiABKAAAABgEAAAAAAA9VAE4ASQBNAEEAVABJAEMAQQACABIAVQBOAEkATQBBAFQASQBDAEEAAQAWAFAAUgBPAFgAWQBTAEUAUgBWAEUAUgAEABoAdQBuAGkAbQBhAHQAaQBjAGEALgBsAGEAbgADADIAcAByA
G8AeAB5AHMAZQByAHYAZQByAC4AdQBuAGkAbQBhAHQAaQBjAGEALgBsAGEAbgAAAAAA
< X-Cache: MISS from proxy
< X-Cache-Lookup: NONE from proxy:3128
< Via: 1.0 proxy (squid/3.1.10)
* HTTP/1.0 connection set to keep alive!
< Connection: keep-alive
<
* Ignoring the response-body
* Connection #0 to host proxy left intact
* Issue another request to this URL: 'http://httpbin.org/get'
* Found bundle for host httpbin.org: 0xc8e840
* Re-using existing connection! (#0) with host proxy
* Connected to proxy (1.2.3.4) port 3128 (#0)
* Proxy auth using NTLM with user ''
> GET http://httpbin.org/get HTTP/1.0
> Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAJIAAAAEAQQBqgAAABIAEgBYAAAAEgASAGoAAAAWABYAfAAAAAAAAACuAQAABYKIogYDgCUAAAAPB9GJy3n45/FlQeK0nSTakFUATgBJAE0AQQBUAEkAQwBBAGcAYgBvAGMAYwBhAHIAZABvAFAAQwAtAEIATwBDAEMAQQBSAEQATwAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAADtAH2kA9h8PVa7xXlctYiKAQEAAAAAAACiMTXavjDQAf+jcp+lLyWbAAAAAAIAEgBVAE4ASQBNAEEAVABJAEMAQQABABYAUABSAE8AWABZAFMARQBSAFYARQBSAAQAGgB1AG4AaQBtAGEAdABpAGMAYQAuAGwAYQBuAAMAMgBwAHIAbwB4AHkAcwBlAHIAdgBlAHIALgB1AG4AaQBtAGEAdABpAGMAYQAu
AGwAYQBuAAgAMAAwAAAAAAAAAAEAAAAAIAAA0CDJTi4CfLKnFZ2iBbSaBivbNmVGWQ4VZrVuwT8Ve68KABAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAA==
> User-Agent: curl/7.40.0
> Host: httpbin.org
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: gunicorn/18.0
< Date: Thu, 15 Jan 2015 12:29:05 GMT
< Content-Type: application/json
< Content-Length: 456
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< X-Cache: MISS from proxy
< X-Cache-Lookup: MISS from proxy:3128
< Via: 1.1 vegur, 1.0 proxy (squid/3.1.10)
* HTTP/1.0 connection set to keep alive!
< Connection: keep-alive
<
{
"args": {},
"headers": {
"Accept": "*/*",
"Cache-Control": "max-age=259200",
"Connect-Time": "2",
"Connection": "close",
"Host": "httpbin.org",
"Total-Route-Time": "0",
"User-Agent": "curl/7.40.0",
"Via": "1.0 proxy (squid/3.1.10), 1.1 vegur",
"X-Request-Id": "dd6ea92f-b45e-45bd-be51-23d778ea5762"
},
"origin": "10.143.90.15, 89.97.230.131",
"url": "http://httpbin.org/get"
}
* Connection #0 to host proxy left intact
---
./curl --verbose -U : --proxy-negotiate -x http://proxy:3128 http://httpbin.org/get
* Trying 1.2.3.4...
* Connected to proxy (1.2.3.4) port 3128 (#0)
> GET http://httpbin.org/get HTTP/1.1
> User-Agent: curl/7.40.0
> Host: httpbin.org
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* HTTP 1.0, assume close after body
< HTTP/1.0 407 Proxy Authentication Required
< Server: squid/3.1.10
< Mime-Version: 1.0
< Date: Thu, 15 Jan 2015 12:31:42 GMT
< Content-Type: text/html
< Content-Length: 3287
< X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
< Vary: Accept-Language
< Content-Language: en
< Proxy-Authenticate: NTLM
< X-Cache: MISS from proxy
< X-Cache-Lookup: NONE from proxy:3128
< Via: 1.0 proxy (squid/3.1.10)
< Connection: close
<
ERROR: Cache Access Denied
ERROR
Cache Access Denied.
The following error was encountered while trying to retrieve the URL: http://httpbin.org/get
Cache Access Denied.
Sorry, you are not currently allowed to request http://httpbin.org/get from this cache until you have authenticated yourself.
Please contact the cache administrator if you have difficulties authenticating yourself or change your default password.
* Closing connection 0