documentation update

2014-11-18 Thread bch
Inspired by one of Daniels recent podcasts. Note that I did *NOT* patch the .html, because it looks like it's generated by a roff-tool of Daniels. Regards, -bch Index: src/vendor/curl/docs/libcurl/opts/CURLOPT_POSTFIE

Re: documentation update

2014-11-18 Thread bch
On 11/18/14, Dan Fandrich wrote: > On Tue, Nov 18, 2014 at 10:57:57AM -0800, bch wrote: >> Inspired by one of Daniels recent podcasts. Note that I did *NOT* > > Thanks for sending in a patch! > >> patch the .html, because it looks like it's generated by a roff-tool &g

Re: documentation update

2014-11-18 Thread bch
On 11/18/14, Dan Fandrich wrote: > On Tue, Nov 18, 2014 at 12:00:51PM -0800, bch wrote: >> On 11/18/14, Dan Fandrich wrote: >> > I'm not sure I agree with this change. Adding "By default" implies that >> > there >> > are some conditions

Re: documentation update

2014-11-19 Thread bch
Does this look more sane?: Index: src/vendor/curl/docs/libcurl/opts/CURLOPT_POSTFIELDS.3 == --- src/vendor/curl/docs/libcurl/opts/CURLOPT_POSTFIELDS.3 +++ src/vendor/curl/docs/libcurl/opts/CURLOPT_POSTFIELDS.3 @@ -33,10 +33,12 @@ se

Re: Need suggestion o how to handle subsequent authorization challenge.

2014-11-25 Thread bch
I wonder if you could duplicate the handle and that would a) inherit the authentication b) be usable in a different thread I've got *guesses*, but I'll leave commentary for somebody with specific experience or firsthand knowledge. On Nov 25, 2014 3:11 AM, "Arif Ali" wrote: > Hello, > > I

Re: List available curl options

2014-12-10 Thread bch
I maintain analogous MYCURLOPT_OPTION making those options as index to char *optname[] {}; array of strings representing supported options. What are you trying to bind to? On Dec 10, 2014 10:57 PM, "Jeroen Ooms" wrote: > I'm writing some bindings to libcurl for a scripting language. I was > wond

retrieving negotiated ssl/tls version

2015-02-24 Thread bch
Outside of CURLOPT_VERBOSE, is there something I can do to retrieve the negotiated ssl/tls version for a connection ? Regards, -bch --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail

Re: retrieving negotiated ssl/tls version

2015-02-25 Thread bch
I'll see what I can come up with. Thx Daniel On Feb 25, 2015 3:04 AM, "Daniel Stenberg" wrote: > On Tue, 24 Feb 2015, bch wrote: > > Outside of CURLOPT_VERBOSE, is there something I can do to retrieve the >> negotiated ssl/tls version for a connection ? >&

prerequisites for auto-generated docs ?

2015-02-25 Thread bch
Hi. I'm trying to add CURLINFO_NEGOTIATED_SSL (string) and my test builds are failing on doc generation -- I've added the symbol and version to ./curl/docs/libcurl/symbols-in-versions ... I suspect I'm missing some other similar piece of house-keeping. Can anybody give me a clue ? [...] perl ./m

Re: prerequisites for auto-generated docs ?

2015-02-25 Thread bch
On 2/25/15, Daniel Stenberg wrote: > On Wed, 25 Feb 2015, bch wrote: > >> perl ./mksymbolsmanpage.pl < > libcurl-symbols.3 >> sh: Syntax error: redirection unexpected > > That looks wrong. Yes. > If I remove libcurl-symbols.3 locally and run make it does &

Re: retrieving negotiated ssl/tls version (was prerequisites for auto-generated docs ?)

2015-02-25 Thread bch
Those are good thoughts, thanks for sharing. I like your (eg) CURL_SSLVERSION_TLSv1 idea for example, and will look closer at it. Thanks! -bch On 2/25/15, Steve Holme wrote: > On Wed, 25 Feb 2015, bch wrote: > >> I'm trying to add CURLINFO_NEGOTIATED_SSL (string) and >

Re: prerequisites for auto-generated docs ?

2015-02-26 Thread bch
Daniel (or anybody) -- is my build the only one that fails w/ the above patch applied to the latest release ? -bch On 2/25/15, bch wrote: > On 2/25/15, Daniel Stenberg wrote: >> On Wed, 25 Feb 2015, bch wrote: >> >>> perl ./mksymbolsmanpage.pl < > libcurl-

Re: prerequisites for auto-generated docs ?

2015-03-01 Thread bch
It *does* help w/ your additional patch. Now -- to be clear -- the problem for me was only w/ my prev. little patch (read back in thread) -- you applied that patch of mine, and had no problems (apologies for repeating self - I'm not sure we're on the same page)? Thx, cheers, -bch

Re: prerequisites for auto-generated docs ?

2015-03-01 Thread bch
On Mar 1, 2015 4:36 PM, "bch" wrote: > > It *does* help w/ your additional patch. Update: does _not_ fix my problem... But I worked around it another way. It fails on "make install" > Now -- to be clear -- the problem for me was only w/ my prev. little > pa

Re: prerequisites for auto-generated docs ?

2015-03-02 Thread bch
I'll post a condensed transcription shortly. On Mar 2, 2015 12:18 AM, "Daniel Stenberg" wrote: > On Sun, 1 Mar 2015, bch wrote: > > It *does* help w/ your additional patch. >>> >> >> Update: does _not_ fix my problem... But I worked around

Re: retrieving negotiated ssl/tls version

2015-03-03 Thread bch
so, I've got a proof-of-concept (OpenSSL only, atm) ready for review. What's the best way to proceed from here -- is prefered to mail a patch, or issue a pull request on github, or ??? Cheers, -bch On 2/25/15, bch wrote: > I'll see what I can come up with. > > Thx Da

Re: retrieving negotiated ssl/tls version

2015-03-04 Thread bch
This is against curl 1.41.0 release. Index: src/vendor/curl/docs/libcurl/symbols-in-versions == --- /home/bch/work/tcurl/src/vendor/curl/docs/libcurl/symbols-in-versions~0 2015-03-04 11:24:44.0 -0800 +++ /home/bch/work

Re: retrieving negotiated ssl/tls version

2015-03-04 Thread bch
> This is against curl 1.41.0 release. Of course, I meant 7.41.0 release. -bch --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: retrieving negotiated ssl/tls version

2015-03-06 Thread bch
ping. Is the inline patch I posted above acceptable, or should it be re-submitted as a collection of patches or something different ? -bch On 3/4/15, bch wrote: >> This is against curl 1.41.0 release. > > Of course, I meant 7.41.0 relea

Re: retrieving negotiated ssl/tls version

2015-03-08 Thread bch
On 3/8/15, Steve Holme wrote: > On Fri, 6 Mar 2015, bch wrote: > >> Is the inline patch I posted above acceptable, or should it be >> re-submitted as a collection of patches or something different ? > > I'm personally a Windows man so I would like attachments if po

Re: retrieving negotiated ssl/tls version

2015-03-09 Thread bch
OpenSSL and DarwinSSL w/ suggestions from Steve re: style. Comments welcome. -bch << patch attached >> On 3/8/15, bch wrote: > On 3/8/15, Steve Holme wrote: >> On Fri, 6 Mar 2015, bch wrote: >> >>> Is the inline patch I posted above acceptable, o

Re: freeze!

2015-03-25 Thread bch
Have you had a chance to review my "detect ssl version" patch ? I haven't comments from you on it, nor integration, unless I missed something -- would like to get it in though... ref: http://curl.haxx.se/mail/lib-2015-03/0050.html -bch On 3/25/15, Daniel Stenberg wrote: >

Re: freeze!

2015-03-25 Thread bch
thx -- if you have any questions, I'll try to keep my mail at the top of my "stack" and reply ASAP. Cheers, -bch On 3/25/15, Daniel Stenberg wrote: > On Wed, 25 Mar 2015, bch wrote: > >> Have you had a chance to review my "detect ssl version" patch ? I ha

Re: retrieving negotiated ssl/tls version

2015-03-25 Thread bch
work in -- so thanks for the note; I'll review. -bch On 3/25/15, Daniel Stenberg wrote: > On Mon, 9 Mar 2015, bch wrote: > >> OpenSSL and DarwinSSL w/ suggestions from Steve re: style. >> >> Comments welcome. > > Thanks a lot and sorry again for my slowness

SSL "host endpoint"

2015-06-26 Thread bch
er , but I'd like to force something that should work, rather than ignoring errors wholesale. Ideas ? -bch --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: SSL "host endpoint"

2015-06-26 Thread bch
This is excellent, and I think it'll work for me. Thanks. -bch On 6/26/15, Ray Satiro via curl-library wrote: > On 6/26/2015 3:38 PM, bch wrote: >> Hi. I want to know if there's something I can do to get this effect: >> >> curleasy_set

Re: Introducing CURL_HAS() ?

2015-09-03 Thread bch
What does this offer over #ifdef CURL_SOCKOPT_ERROR , or how is it different ? -bch On 9/3/15, Patrick Monnerat wrote: > > Daniel Stenberg wrote: > >> I'm interested in your feedback and thoughts on this suggestion. See > attached patch. > > I've r

Re: API to include cacert using a C string

2016-01-09 Thread bch
I feel like re-purposing CAINFO or CAPATH has a smell about it. Something like CURLOPT_CARAW or CURLOPT_CAEMBEDDED sounds more reasonable to me. -bch On 1/8/16, Thomas Glanzmann wrote: > Hello Daniel, > >> I will gladly accept patches that introduce it. Have you considered >&

[no subject]

2016-02-26 Thread bch
After 15 year downtime... http://metatalk.metafilter.com/24019/Direct-your-gopher-client-to-gopher-gophermetafiltercom?utm_content=bufferaa556&utm_medium=social&utm_source=facebook.com&utm_campaign=buffer --- List admin: https://cool.

Gopher [Was ""]

2016-02-26 Thread bch
...and I'm seeing what appears to be poor gopher URI handling: $ curl gopher://gopher.metafilter.com/Music/Auld-Lang-Syne.html 3'/usic/Auld-Lang-Syne.html' does not exist (no handler found) error.host 1 or am I misinterpetting what the URI really ought to be? -bch

Re: Gopher [Was ""]

2016-02-26 Thread bch
statement of fact), is that part of the URI, or sort of the protocol? If I'm passing something to libcurl or cURL, currently I'm expected to put in a "garbage" character to be stripped. That behaviour seems out of place. Comments ? -bch On 2/26/16, bch wrote: > ...and I&#

Re: Gopher [Was ""]

2016-02-26 Thread bch
der) or anybody else... I may start hacking this for fun (not profit). Cheers :) On 2/26/16, Daniel Stenberg wrote: > On Fri, 26 Feb 2016, bch wrote: > >> ...and I'm seeing what appears to be poor gopher URI handling: > > It just shows how many people are actual

Re: Gopher [Was ""]

2016-02-26 Thread bch
ath; -newp+=2; - -/* ... then turn ? into TAB for search servers, Veronica, etc. ... */ -j = strlen(newp); -for(i=0; i wrote: > On Fri, 26 Feb 2016, bch wrote: > >> You're probably right, re: "the number of people using gopher with >> (lib)curl" --I

Re: Gopher [Was ""]

2016-03-08 Thread bch
in "1)". I'll look for gopher tests and see about finding space to test what we're talking about here. Thanks for your comments Daniel. Regards, -bch On Mar 8, 2016 6:27 AM, "Daniel Stenberg" wrote: > On Fri, 26 Feb 2016, bch wrote: > > What I suspect tha

Re: http:/// and other slash amounts

2016-05-10 Thread bch
I wasn't really kidding when I posted https://twitter.com/bcharder/status/728341342447800320 I was thinking of support that is adjunct and switchable (on/off). A facility for "/-condensing" that has heuristics for /// -> // after the transport, and perhaps //... -> / in t

Re: http:/// and other slash amounts

2016-05-10 Thread bch
On May 10, 2016 3:38 PM, "Daniel Stenberg" wrote: > > On Tue, 10 May 2016, bch wrote: > >> I wasn't really kidding when I posted https://twitter.com/bcharder/status/728341342447800320 >> >> I was thinking of support that is adjunct and switchable (on/of

getting SessionHandle values

2016-05-19 Thread bch
rror-prone accounting on ones own. Cheers, -bch --- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html

Re: getting SessionHandle values

2016-05-19 Thread bch
...and now I'm seeing that CURLINFO_COOKIELIST is an slist-returning curl_easy_getinfo() value... This might be adaptable to the apparently missing CONNECT_TO, etc options via getinfo_slist()... Pardon me for "thinking out-loud" on the list :/ -bch On 5/19/16, bch wrote: >

Re: getting SessionHandle values

2016-05-19 Thread bch
nce to the list anyway. That sounds like a good description, and is illuminating. Thanks. -bch > Regards, > Michael > --- > List admin: https://cool.haxx.se/list/listinfo/curl-library > E

Re: OPTIONS * requests

2016-08-25 Thread bch
Reference on OPTIONS method (sec 9.2) fit those like me who were jarred by the conversation trying to discover context. https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html On Aug 25, 2016 2:24 PM, "Nicholas Shanks" wrote: > On Thursday, 25 August 2016, Daniel Stenberg wrote: > >> On Thu, 25

Re: Save the date: November 19-20

2016-09-21 Thread bch
On Sep 20, 2016 11:43 PM, "Daniel Stenberg" wrote: > > Hi all, > > We're in the final stages of confirming everything for our first ever curl meeting/conference/hack in the real word. > > It is meant to take place in Nuremberg Germany over the weekend November 19-20. This email is just to inform y

Re: Flag to bail out if not enough entropy?

2016-09-27 Thread bch
On Sep 27, 2016 10:33 AM, "Florian Weimer" wrote: > > * Daniel Stenberg: > > > On Tue, 27 Sep 2016, Florian Weimer wrote: > > > >>> I'm not sure this particular loop is as stupid as the comment > >>> implies. RAND_bytes() is supposed to give crypto safe random and > >>> according to https://wiki.o

Re: Flag to bail out if not enough entropy?

2016-09-27 Thread bch
On Sep 27, 2016 11:09 AM, "Florian Weimer" wrote: > > * bch: > > > Being devil's advocate, I think the level of responsibility, detail, cost > > of errors for getting into random-management and cryptography may be so > > high that it really should be lef

RE: CURL and CULM data structure

2016-10-28 Thread bch
alue), you will have problems. You can find out what you need by reading up on pointers, memory allocation (malloc() and free()), structures, and pointer arithmetic. Note to - my example was of the top of my head, and curl has a tremendous amount of introspective accessor functions purpose-built to re

Re: [SECURITY ADVISORY] curl invalid URL parsing with '#'

2016-11-04 Thread bch
or me: > > On current master (9ea3a6e150dfc822ba1565f649b634848597d2d9): > $ src/curl file://config.log > curl: (37) Couldn't open file /config.log > > On master with 3bb273db7e40ebc284cff45f3ce3f0475c8339c2 reverted: > $ src/curl file://config.log > [contents of config.log

Re: [SECURITY ADVISORY] curl invalid URL parsing with '#'

2016-11-04 Thread bch
On Nov 4, 2016 8:18 AM, "Mike Crowe" wrote: > > On Friday 04 November 2016 at 08:04:34 -0700, bch wrote: > > On Nov 4, 2016 8:01 AM, "Mike Crowe" wrote: > > > The fix for this in 3bb273db7e40ebc284cff45f3ce3f0475c8339c2 appears to > > > have cha

Re: "URLs are dangerous things"

2018-02-06 Thread bch
On Tue, Feb 6, 2018 at 4:52 AM Daniel Stenberg wrote: > On Tue, 6 Feb 2018, Christian Schmitz wrote: > > > Can we disallow login & password in URLs? e.g. get an option to make > perform > > fail with error, if there is a @ in the URL before domain? > > That seems like it should be a pretty straig

Re: "URLs are dangerous things"

2018-02-08 Thread bch
On Thu, Feb 8, 2018 at 8:58 AM Daniel Stenberg wrote: > On Thu, 8 Feb 2018, Dennis Clarke wrote: > > > There is nothing wrong with RFC-3986 nor the more specific RFC-8089. > > RFC 3986 is for generic URIs. RFC 8089 is for the specific subset file: > URIs. > They're different beasts. > > The "wron

Re: 1700(!) contributors

2018-03-04 Thread bch
On Sun, Mar 4, 2018 at 4:36 PM Dennis Clarke wrote: > On 04/03/18 05:43 PM, Daniel Stenberg wrote: > > Hey, > > > > I just wanted to highlight that when I just now recounted the total > > number of contributors to our merry project, the number ended up at > > exactly 1700! > > > > See the full li

Re: a URL API ?

2018-08-01 Thread bch
com/nodejs/http-parser in a similar capacity in the past. It’s been a while since I’ve used it, and I haven’t done a comparison between your proposal and it, but figured “before i forget... I’d better send this”. Obviously not fully integrated w cURL, but if there’s good reference material..

Re: Deprecate falling back to http:// ?

2018-09-19 Thread bch via curl-library
url/pull/3018) > > Thoughts? > Could this be a perpetually deprecated feature, and brought to light with a setopt NODEPRECATED=1 style tuneable? -bch > -- > > / daniel.haxx.se > -

Re: Idea: voluntary restricting curl (use)

2019-01-10 Thread bch via curl-library
sspelled > restrictions will be silently ignored. > > Restrictions should be named to identify what is *inhibited* by it. > I’m only parking this all quickly, but: Consider 1) having a diagnostic-requesting env var that perhaps dumps state of what cURL was trying to do 2) whiteli

Re: Idea: voluntary restricting curl (use)

2019-01-10 Thread bch via curl-library
On Thu, Jan 10, 2019 at 2:56 PM bch wrote: > > > On Thu, Jan 10, 2019 at 2:30 PM Daniel Stenberg via curl-library < > curl-library@cool.haxx.se> wrote: > >> Hey, >> >> I want to test an idea on you all before I proceed and do anything else >> wit

Re: Stoppable curl_easy_perform ?

2019-10-08 Thread bch via curl-library
sense, but even that maybe not... is there not a case for (at least my) idiomatic: if(CURLE_OK!=curl_easy_abort(...)) { ... } this is just a pass/fail of the “abort” verb, no? I guess it’s not that new codes cost much, but does it buy anything? -bch > -- > > /

Re: [RELEASE] curl 7.71.1

2020-07-12 Thread bch via curl-library
On Sun, Jul 12, 2020 at 14:30 Dennis Clarke via curl-library < curl-library@cool.haxx.se> wrote: > On 7/12/20 8:43 PM, Daniel Stenberg wrote: > > On Sun, 12 Jul 2020, Dennis Clarke via curl-library wrote: > > > >> TESTFAIL: These test cases failed: 1167 > > > > This test runs tests/badsymbols.pl w

Re: curl websockets

2021-07-02 Thread bch via curl-library
at it can select() on it, but I have a feeling that's a > little > too raw here. We might need to provide a function for this purpose. > curl_ws_poll() maybe. It needs some further thinking. Why is that too raw (honest question)? When I’ve used libcurl connect-only (to do my TLS ne

Re: relative performance

2021-08-25 Thread bch via curl-library
gs like memory allocations) would be the way to go, rather than running this over some unreliable environment and measuring wall-time… but I’m not entirely sure what this virtualized env would be. -bch > > If we run "sprinter" using say 10 different libcurl versions on the same &g

Re: relative performance

2021-08-25 Thread bch via curl-library
On Wed, Aug 25, 2021 at 12:33 bch wrote: > > > On Wed, Aug 25, 2021 at 00:35 Daniel Stenberg via curl-library < > curl-library@cool.haxx.se> wrote: > >> On Tue, 24 Aug 2021, Ben Greear via curl-library wrote: >> >> > What is your network-under-test in