curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Fwd: Question on CURLE_RECV_ERROR (56)

From: ghanashyam satpathy via curl-users <curl-users_at_cool.haxx.se>
Date: Sun, 14 Jan 2018 18:14:23 +0530

@Daniel

Here is the verbose output using fiddler proxy(basic-auth) with invalid
credentials.

>curl -v -x http://127.0.0.1:8888 --proxy-user foo:bar --proxy-basic http://
google.com"
* Rebuilt URL to: http://google.com/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8888 (#0)
* Proxy auth using Basic with user 'foo'
> GET http://google.com/ HTTP/1.1
> Host: google.com
> Proxy-Authorization: Basic Zm9vOmJhcg==
> User-Agent: curl/7.56.1
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 407 Proxy Auth Required
< Connection: close
* Authentication problem. Ignoring this.
< Proxy-Authenticate: Basic realm="FiddlerProxy (user: 1, pass: 1)"
< Content-Type: text/html
<
<html><body>[Fiddler] Proxy Authentication Required.<BR>

                                </body></html>* Closing connection 0

>

On Sun, Jan 14, 2018 at 1:22 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Wed, 10 Jan 2018, ghanashyam satpathy via curl-users wrote:
>
> Following are the library version I am using.
>>
>> libcurl - 7.50.3
>> openssl - 1.1.0 b
>> McAfee WebGateway 7.7.2.6.0
>>
>> Very much reproducible using Fiddler as a proxy that requires
>> authentication(basic), just supply invalid credential to libcurl. The
>> curl_easy_perform() will return CURLE_RECV_ERROR (56)
>>
>
> So since we're on the curl-users list:
>
> Can you show us the full verbose output curl and your proxy says and
> returns when you use the wrong credentials?
>
> "curl -v -x http://name --proxy-user foo:bar --proxy-ntlm
> http://example.com"
>
> replace 'name' with the host name or IP address if your actual proxy.
>
> --
>
> / daniel.haxx.se
>

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-01-14