cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Re: Cannot make -o download files with {} qualifier

From: Michael-O <1983-01-06_at_gmx.net>
Date: Wed, 13 Nov 2013 11:41:55 +0100 (CET)

> On Mon, 11 Nov 2013, Michael-O wrote:
>
> > this does not seem to add up. The man page for -o says:
>
> There was at least one or two globbing regressions present in 7.33.0 (from my
> code cleanups I did recently). Any chance you can build a recent daily
> snapshot and see if the problems remain?

Daniel,

I have now compiled snapshot 2013-11-13 and received following results:

1. The URL must be quoted otherwise the download goes to stdout. Please update the docs.
2. The request counter seems to be incorrect

[1/3]: http://curl.haxx.se/docs/manpage.html --> manpage.html
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 894 100 894 0 0 18357 0 --:--:-- --:--:-- --:--:-- 20790
100 133k 100 133k 0 0 671k 0 --:--:-- --:--:-- --:--:-- 39.4M

[2/3]: http://curl.haxx.se/docs/libs.html --> libs.html
100 8838 100 8838 0 0 141k 0 --:--:-- --:--:-- --:--:-- 141k

Where is 3 of 3? The first request results in 407, a second request with the SPNEGO ticket is issued. 200, fine.
The third request must read 3/3 to libs.html but it does read 2/3. A bug?

3. curl resends the same token again. This leads to several issues here:
  1. I have not requested curl to peform preemptive auth and it does not support that as far as I know.
  2. SPNEGO/Kerberos auth can be either legged to connection or request level, the server decides.
     In this case, resending the same ticket has no effect because our proxy is connection-legged but if a
     server is request-legged it might throw a "replay detected" because tickets cannot/should not be reused.

The main problem has been resolved by this snapshot, though.

Michael
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-13