curl-users
Re: Getting curl to go all the way through proxy with digest authentication
Date: Mon, 20 Nov 2017 14:31:03 -0500
On 11/20/2017 9:13 AM, Jones, James wrote:
> This request, which seems to be correct ends up being aborted. How do
> I get it to complete the path to the server and returning the normal
> response?
> This returns a json format response when
> https://192.168.102.102/quarters/reports is pasted into Firefox with a
> security exception.
> I have run this curl command with digest, basic and no authentication
> and get the same results.
>
> C:\WINDOWS\system32>curl -k --digest -u admin -x
> https://192.168.102.102:443 https://192.168.102.102/quarters/reports -v
> Enter host password for user 'admin':
> * Trying 192.168.102.102...
> * Connected to 192.168.102.102 (192.168.102.102) port 443 (#0)
> * Establish HTTP proxy tunnel to 192.168.102.102:443
> <http://192.168.102.102:443>
> * Server auth using Digest with user 'admin'
> > CONNECT 192.168.102.102:443 <http://192.168.102.102:443> HTTP/1.1
> > Host: 192.168.102.102:443 <http://192.168.102.102:443>
> > User-Agent: curl/7.46.0
> > Proxy-Connection: Keep-Alive
> >
> * Proxy CONNECT aborted
> * Connection #0 to host 192.168.102.102 left intact
> curl: (56) Proxy CONNECT aborted
Run curl -V and give us your curl version information. You are trying to
use an https proxy (-x https://192.168.102.102:443) but support for that
was not added until curl 7.52 and only in certain builds. You are using
curl 7.46. Was it your intention to use an HTTPS proxy? Try the latest
curl https://curl.haxx.se/download.html for example the Win32/64 builds
made by Viktor Szakáts should have HTTPS proxy support.
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-20