Re: CURLINFO_GNUTLS_SESSION (was Re: Patch: Support CURLINFO_CERTINFO with GnuTLS)

2013-10-15 Thread Dan Fandrich
On Tue, Oct 15, 2013 at 03:26:40PM +0200, Christian Grothoff wrote: Here's an improved patch that makes this (presumably) SSL-backend independent. I only tested it with GnuTLS though, and some SSL backends are not supported by the patch. The patch would need to be applied on top of the 2nd

Re: Disable Valgrind for Self Tests?

2013-10-13 Thread Dan Fandrich
On Sat, Oct 12, 2013 at 08:26:37PM -0400, Jeffrey Walton wrote: I'd like to disable Valgrind during self tests. Is there a switch to do so? The easiest way is to run them with make test TEST_Q='-a -s -n' Dan --- List admin:

Re: [PATCH] OAUTH 2.0 Bearer token support SMTP/IMAP (XOAUTH2)

2013-10-12 Thread Dan Fandrich
On Sat, Oct 12, 2013 at 01:53:49PM -0400, Kyle L. Huff wrote: I did however notice while I was poking around that the option '--bearer' might be slightly ambiguous in name. It doesn't create any conflict that I am aware of at the moment, however, OAUTH v2 is not the only authentication

Re: Hardening Guide?

2013-10-08 Thread Dan Fandrich
On Tue, Oct 08, 2013 at 03:38:26PM -0400, Jeffrey Walton wrote: Is there a hardening guide available for libcurl? I'm interested in two aspects: (1) how to configure and build the library in a secure manner; and (2) how to use the library in a safe and secure manner. There's a guide for

Re: How to display the results of `make check`?

2013-09-25 Thread Dan Fandrich
On Tue, Sep 24, 2013 at 11:09:10PM -0400, Jeffrey Walton wrote: How do I have `make check` display its output? test 001...OK (1 out of 835, remaining: 88:44) test 002...OK (2 out of 835, remaining: 55:24) test 003...OK (3 out of 835, remaining: 43:59) test 004...OK (4 out of 835,

Re: Help required on data option usage with DELETE - curl -X DELETE -d data='{name:test}'

2013-09-20 Thread Dan Fandrich
On Fri, Sep 20, 2013 at 11:45:07AM -0700, Prasanna Viswakumar wrote: Is it possible to get this ported to Java with the use of any of the Apache HTTP client libraries ? There is a libcurl binding for Java available at http://curl.haxx.se/libcurl/java/ Dan

Re: Get the directory of remote machine

2013-09-20 Thread Dan Fandrich
On Thu, Sep 19, 2013 at 12:54:47PM -0700, Igor Korot wrote: On Thu, Sep 19, 2013 at 12:24 PM, Dan Fandrich d...@coneharvesters.com wrote: CURLOPT_TIMECONDITION Actually, you'll want CURLOPT_TIMEVALUE as well. I googled a little and I guess this is what I will use as it is easier

Re: Get the directory of remote machine

2013-09-19 Thread Dan Fandrich
On Thu, Sep 19, 2013 at 12:10:51PM -0700, Igor Korot wrote: Is it possible to get the directory of the remote machine? For ftp, Yes. Just request a URL of the directory with a trailing backslash, or use the CURLOPT_DIRLISTONLY option. What I'm looking for is the procedure to check for an

Re: four tests fail on Solaris 10 : 16 165 1034 1035

2013-08-14 Thread Dan Fandrich
On Wed, Aug 14, 2013 at 02:02:55PM -0400, Dennis Clarke wrote: I have four tests fail on Solaris 10 SPARC .. where should I look given the results below ? All four tests have to do with 8-bit character handling. What locale are you running these tests under? I'm assuming it's not a UTF-8

Re: Libcurl and Android

2013-08-13 Thread Dan Fandrich
On Tue, Aug 13, 2013 at 04:35:33PM +0400, Egor Utsov wrote:  I have following errors: D/jcurl   ( 1393): 0: Rebuilt URL to: http://curl.haxx.se/ D/jcurl   ( 1393): 0: Curl_ipv4_resolve_r failed for curl.haxx.se D/jcurl   ( 1393): 0: Couldn't resolve host 'curl.haxx.se' D/jcurl   ( 1393): 0:

Re: Upload big file more than 50M

2013-08-12 Thread Dan Fandrich
On Mon, Aug 12, 2013 at 10:44:07AM +0800, qli...@gmail.com wrote: Hi, all. I use libcurl to upload a mail attachment. But it can not upload a file more than 50M. Did i miss sth? There's nothing in libcurl that limits uploads to such a size. But it's very common for mail servers to place a limit

Re: curl binary size with TLS

2013-08-12 Thread Dan Fandrich
On Mon, Aug 12, 2013 at 08:15:32PM +0530, Indtiny s wrote: Below are the configure switches, I cant use other SSL library , because I have added new chiper suite support to the openssl library .  Take a look at the INSTALL document; there's a section in there on reducing binary sizes. For

Re: How to get server certificate.

2013-08-07 Thread Dan Fandrich
On Wed, Aug 07, 2013 at 11:23:56AM +0530, Umesha M S wrote: I am using libcURL to communicate to server. In my application we are using HTTPS. Initially I got invalid certificate error. To solve this I have set CURLOPT_SSL_VERIFYPEER  and CURLOPT_SSL_VERIFYHOST  to true and CURLOPT_CAINFO to

Re: Problem with NTLM proxy auth

2013-08-06 Thread Dan Fandrich
the following log shows my problem with libcurl 2.27.0.0 (Windows) and NTLM proxy: The following log also shows your proxy username and password to the world. Dan --- List admin: http://cool.haxx.se/list/listinfo/curl-library

Re: [PATCH] A CURLINFO_XFER_STATE perhaps?

2013-08-06 Thread Dan Fandrich
On Tue, Aug 06, 2013 at 08:16:03PM +0200, Daniel Stenberg wrote: On Tue, 6 Aug 2013, Patrick Monnerat wrote: Good job. May be one more state for SSL handshake ?... Hm, that's not a bad idea. I also thought about exposing the sub-state of FTP or SFTP somehow. SSL can take a number of round

Re: [Bug-gnubg] compilation of gnubg-0.14.3 failed

2013-08-05 Thread Dan Fandrich
On Sun, Aug 04, 2013 at 11:55:42PM -0600, Michael Petch wrote: If you don't require such an old release I could suggest the latest official source tall bar here: http://files.gnubg.org/media/sources/gnubg-release-1.02.000-sources.tar.gz This version is about a week old, and much preferred

Re: [collectd] Java API for collectd

2013-08-02 Thread Dan Fandrich
On Fri, Aug 02, 2013 at 11:38:23PM +0100, Hasna SABAH wrote: I am working on plugins for collectd and I am particularily interested in coding in java. I installed collectd with the package manager (yum) which doesn't include java api by default. Is there a rpm package for that (fedora) ?  or

Re: Curl for https

2013-08-02 Thread Dan Fandrich
On Fri, Aug 02, 2013 at 12:40:00PM +, Bunse, Stephan (Stephan) wrote: It doesn’t really help, but thanks for your answer. I was aware of that feature. But I am looking for a solution which I can place in a C library. Naturally, I can initiate a system call from the C code, get the result

Re: Question about proxying using curl

2013-08-02 Thread Dan Fandrich
On Fri, Aug 02, 2013 at 04:29:01PM -0400, Howard wrote: I would like to use libcurl essentially to proxy an incoming connection. I have a process that is sending my process a series of buffers to be written and I want to use libcurl to write these buffers to a single file on the other side

Re: [collectd] some issues in collectd while configure postgresql plugin

2013-07-31 Thread Dan Fandrich
On Wed, Jul 31, 2013 at 05:01:03AM +, Summer Tong (chutong) wrote: Starting collectd: ERROR: lt_dlopen (/opt/collectd/lib/collectd/ postgresql.so) failed: file not found. The most common cause for this problem are missing dependencies. Use ldd(1) to check the dependencies of the plugin /

Re: Help required to understand CURL for read data

2013-07-31 Thread Dan Fandrich
On Wed, Jul 31, 2013 at 10:50:56AM +0530, Santhosh Kumar wrote: I am very new to curl. I am using ffmpeg custom IO Call backs for playing AV Streams, in those IO Callbacks, I need to fetch data based on ffmpeg request( Like size and memory will provide by ffmpeg). From examples and Apis of

Re: How to save response?

2013-07-31 Thread Dan Fandrich
On Wed, Jul 31, 2013 at 02:31:41PM -0500, conversi...@q2q.us wrote: I am executing curl.exe using windows Shell command. The request is successful based on the --trace-ascii response to a file. How can I save just the response to a file? With -o trace-ascii shows the following. Note that

Re: help

2013-07-26 Thread Dan Fandrich
On Fri, Jul 26, 2013 at 07:51:26AM +, Miran Stojnić wrote: I have a problem with installation of curl-7.31.0.tar.gz file. I use Windows. I need it for running a Matlab program that calls (with urlread) certain web page to download atmospheric soundings. Have you read the INSTALL

Re: Making sense of CURLINFO_*_TIME values

2013-07-24 Thread Dan Fandrich
On Wed, Jul 24, 2013 at 09:07:18AM -0400, Peter Schwartz wrote: I've also noticed that there's an inconsistency between the libcurl documentation and the curl CLI client documentation: From http://curl.haxx.se/docs/manpage.html: time_starttransfer The time, in seconds, it took from the start

Re: [collectd] [PATCH 2/5] sigrok: bare bones plugin

2013-07-22 Thread Dan Fandrich
On Mon, Jul 22, 2013 at 06:21:18PM +0200, Bert Vermeulen wrote: +static int plugin_config(const char *key, const char *value) +{ + + if (!strcmp(key, loglevel)) + loglevel = atoi(value); + else if (!strcmp(key, conn)) + conn = strdup(value); This will leak

Re: curl configure with openssl

2013-07-16 Thread Dan Fandrich
On Tue, Jul 16, 2013 at 12:47:35PM +0530, Indtiny s wrote: I need to cross compile curl for some target . first I cross complied openssl for that target . Then I tried the below script  export CC=$TARTGET_ROOT/arm-none-linux-gnueabi-gcc export LD=$TARTGET_ROOT/arm-none-linux-gnueabi-ld

[Bug-gnubg] [PATCH] No sound with Canberra

2013-07-12 Thread Dan Fandrich
I wasn't able to get any sound in gnubg 1.01.002 using canberra 0.30. For some reason, sound is disabled by default and doesn't play, and ca_context_play() returns CA_ERROR_DISABLED. The attached patch enables sound explicitly when the context is created, which solves the problem. Dan Index:

Re: strdup

2013-07-12 Thread Dan Fandrich
On Fri, Jul 12, 2013 at 07:57:04PM +0200, Yang Tse wrote: If memory serves me, long time ago Dan Fandrich also had some platforms without strdup. That does sound familiar, but I lost access to my mini-build farm of odd and obsolete platforms some time ago, and I don't recall which one

Re: New SSL backend GSKit, certinfo for everyone, etc.

2013-07-12 Thread Dan Fandrich
On Fri, Jul 12, 2013 at 05:33:26PM +0200, Patrick Monnerat wrote: Please find a big patch in attachment: 138KB. Yup. Any chance of splitting it into at least two parts, the OS400 stuff and everything else? It implements a new SSL backend: GSKit. It runs on OS400, but IBM supports it on other

Re: default path for CURLOPT_CAINFO changed from 7.30.0 to 7.31.0

2013-07-11 Thread Dan Fandrich
On Thu, Jul 11, 2013 at 01:34:10PM -0400, Dave Reisner wrote: On Thu, Jul 11, 2013 at 10:16:08AM -0700, Chris Ghormley wrote: I am using libcurl cross-compiled for PPC and ARM with axTLS. I have never had to specify CURLOPT_CAINFO before 7.31.0; it seemed to default to

Re: NFS/CIFS support in libcurl

2013-07-10 Thread Dan Fandrich
On Wed, Jul 10, 2013 at 03:58:21AM -0700, ankit_sin...@dell.com wrote: Are there any plans for supporting NFS/CIFS in libcurl? It's come up before, but noone has contributed any patches. I think CIFS would be handy to have, and there was even a draft RFC for a URL format. Dan

Re: openssh

2013-07-08 Thread Dan Fandrich
On Mon, Jul 08, 2013 at 06:37:32AM -0700, ch...@jcfxtrading.com wrote: libssh2 has a dependency on openssh Where can I get hold of the openssh source files? Are you sure you don't mean OpenSSL? libssh2 had nothing to do with OpenSSH last time I checked. Dan

Re: When will sftp disconnect using the same handler

2013-07-08 Thread Dan Fandrich
On Mon, Jul 08, 2013 at 11:19:51AM +1000, Yong Liaw wrote: I am using the same curl handler for sftp to fetch files from sftp server every minute. My understanding is that it will use the same connection to fetch files. Will the connection be disconnected due to no activity for 1 minute?  

Re: Multi cURL connect bug

2013-07-08 Thread Dan Fandrich
On Mon, Jul 08, 2013 at 02:14:05PM -0400, Keyur Govande wrote: I respectfully disagree. Asynchronous RPC without using a separate thread is not that uncommon and is definitely not wrong. In C land this would perfectly reasonable to do: open a non-blocking socket() connect() with timeout. If

Re: Multi cURL connect bug

2013-07-08 Thread Dan Fandrich
On Mon, Jul 08, 2013 at 06:06:25PM -0400, Keyur Govande wrote: Thanks Dan for the detailed response. I agree that if feasible, what you suggested would work well. But in most large pre-existing code bases, there is no way to keep calling cURL function when you get a few class hierarchies

Re: cURL error 59: failed setting cipher list

2013-07-01 Thread Dan Fandrich
On Sun, Jun 30, 2013 at 01:12:05PM -0700, Kristina Anderson wrote: cURL error 59: failed setting cipher list recieved on newly configured server with abysmally bad hosting support my curl_setopt looks like curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER,

Re: [PATCH ] Add new options negotiate-gssapi=service and proxy-negotiate-gssapi-service

2013-07-01 Thread Dan Fandrich
On Mon, Jul 01, 2013 at 07:38:23PM +0100, Markus Moeller wrote: This patch adds two new options to set the Kerberos service principal name for negotiate authentication. This is useful if you want to access a web server or proxy via a secondary interface. Could you please review and add to

Re: Asynchronous communication using libcurl

2013-07-01 Thread Dan Fandrich
On Tue, Jul 02, 2013 at 02:51:45AM +0530, Kowsik Tulabandula wrote: I am new to HTTP, HTTPS and libcurl. My requirement is as below: 1. A client program should handle communication with more than 3000 servers using XML/HTTPS. Only 3000? I've forgotten how to count that low :-)

Re: Downloading multiple files using libcurl sftp

2013-06-21 Thread Dan Fandrich
On Fri, Jun 21, 2013 at 12:06:11PM +1000, Yong Liaw wrote: Does libcurl support downloading multiple files one after another on a single sftp connection? Yes. My understanding is that for each curl_easy_perform(), it establishes a new connection for the file transfer. No, it keeps

Re: curl-library Digest, Vol 94, Issue 18

2013-06-16 Thread Dan Fandrich
On Sat, Jun 15, 2013 at 11:45:18PM -0700, Ana Torres wrote: STOP Are you trying to removing yourself from this mailing list? Then you need to read 11 lines further: --- On Thu, 6/13/13, curl-library-requ...@cool.haxx.se wrote: gt; From: curl-library-requ...@cool.haxx.se gt; Subject:

Re: CURLOPT_WRITEFUNCTION; Function not writing all data to disc file?

2013-06-14 Thread Dan Fandrich
On Thu, Jun 13, 2013 at 04:05:47PM +0100, Spencer Elliott wrote: I am very new to LibCurl, and am struggling with the CURLOPT_WRITEFUNCTION function. I have included my source code below, but essentially my issue is here: /* printf(\n);

Re: Content-Type: application/x-www-form-urlencoded; SendText=say+This+is+a+testSend=Send

2013-06-14 Thread Dan Fandrich
On Fri, Jun 14, 2013 at 07:42:02PM +0100, Spencer Elliott wrote: Would anyone be kind enough to post an updated function of the above, that would allow me to pass the function param “str” to the server page, where the data I would like to send is “SendText=say+This+is+a+testSend=Send”? I

Re: Make DNS requests follow the CURLOPT_INTERFACE if c-ares is in use

2013-06-04 Thread Dan Fandrich
On Tue, Jun 04, 2013 at 10:46:32AM -0400, Kim Vandry wrote: Are there any existing tests that depend on working Internet access? There shouldn't be. There are a few (marked with the non-existing host keyword) that depend on DNS not being insane (not necessarily resolving, but not returning bogus

Re: cURL SFTP upload speed only 50% compared to command line SFTP

2013-05-23 Thread Dan Fandrich
On Wed, 22 May 2013 21:14:55 +0100 Ben Thomas wrote: On Wed, May 22, 2013 at 6:49 PM, Daniel Stenberg daniel_at_haxx.se wrote: A) use really larger buffers, like several hundred KBs at least and B) use a sliding buffer technique instead of letting the existing buffer drain completely before

Re: BCC Compile failures -- but MinGW32 O.K.

2013-05-13 Thread Dan Fandrich
On Sun, May 12, 2013 at 06:06:38PM -0600, Mel Smith wrote: I've tried and can't make 'head nor tail' of git. I can easily download and install your Curl package, and I use 'svn' for all my other harbour language-related stuff. I have Git Bash (??) installed on my Win XP Pro machine,

Re: [PATCH 1/4] lib: remove some uses of malloc in favor of stack alloc

2013-05-06 Thread Dan Fandrich
On Mon, May 06, 2013 at 02:19:48PM -0400, Dave Reisner wrote: These are all cases where we're alloc'ing a fixed size buffer and not returning it to the caller, or explicitly avoiding large allocations on the stack. You hit the nail on the head--large allocations on the stack just aren't

Re: [PATCH 2/4] src/mkhelp: use stack allocation instead of heap for line buffer

2013-05-06 Thread Dan Fandrich
On Mon, May 06, 2013 at 02:19:49PM -0400, Dave Reisner wrote: void hugehelp(void) { - unsigned char* buf; + unsigned char buf[BUF_SIZE]; int status,headerlen; z_stream z; IIRC, this particular code used to allocate the buffer on the stack, and was changed to malloc when problems

Re: [PATCH 4/4] src/tool: allow timeouts to accept decimal values

2013-05-06 Thread Dan Fandrich
On Mon, May 06, 2013 at 02:19:51PM -0400, Dave Reisner wrote: Implement wrappers around strtod to convert the user argument to a double with sane error checking. Use this to allow --max-time and --connect-timeout to accept decimal values instead of strictly integers. curl attempts to avoid

Re: libcurl Reporting Different Version Between Commands

2013-04-30 Thread Dan Fandrich
On Tue, Apr 30, 2013 at 09:15:39AM +0100, Ben Thomas wrote: Doing: ls -lh /usr/lib/libcurl* Shows these files: /usr/lib/libcurl.a /usr/lib/libcurl.la /usr/lib/libcurl.so - libcurl.so.4.3.0 /usr/lib/libcurl.so.4 - libcurl.so.4.3.0 /usr/lib/libcurl.so.4.3.0 They're all dated at the

Re: libcurl Reporting Different Version Between Commands

2013-04-30 Thread Dan Fandrich
On Tue, Apr 30, 2013 at 09:55:45AM +0100, Ben Thomas wrote: I get: libcurl.so.4 = /usr/lib/i386-linux-gnu/libcurl.so.4 (0xb7674000) There's the problem. curl installs the library in /usr/lib but the system version is in another location, and obviously higher in the search path. You'll need to

Re: [PATCH] SFTP file listing suggestion

2013-04-24 Thread Dan Fandrich
On Wed, Apr 24, 2013 at 11:01:10PM +0200, Daniel Stenberg wrote: 4 - your change for CURLE_QUOTE_ERROR to become sftp_libssh2_error_to_CURLE() is not really related to the new callback and I would ask you to submit that as a separate patch (which we could merge at once) I'm not entirely sure

Re: Bug in vi + patch

2013-04-18 Thread Dan Fandrich
On Thu, Apr 18, 2013 at 09:36:41PM +0300, Dan Moinescu wrote: If busybox is configured with CONFIG_FEATURE_VI_REGEX_SEARCH=y, then all searches in vi are case-sensitive, even if :set ignorecase is in effect. The attached patch solves this problem (the code is based on the example on doing

Re: Test 1900 isn't working due to a Linux-specific call

2013-04-18 Thread Dan Fandrich
On Tue, Apr 16, 2013 at 09:30:04AM +0200, Linus Nielsen Feltzing wrote: Please try the attached patch. It uses poll() instead of epoll(). Note also that this file doesn't show up in the daily tarballs. It's probably missing from Makefile.am. Dan

Re: A CURL_CHECK_CA_BUNDLE bug?

2013-04-18 Thread Dan Fandrich
On Thu, Apr 18, 2013 at 10:42:49PM +0200, Daniel Stenberg wrote: I spotted a build fix for curl in buildroot[1], where they cross-compile curl and noticed they need to provide --with-ca-path or risk that configure actually checks for a local path to be present and then uses that path for the

Re: A CURL_CHECK_CA_BUNDLE bug?

2013-04-18 Thread Dan Fandrich
On Thu, Apr 18, 2013 at 11:40:35PM +0200, Daniel Stenberg wrote: Attached to this mail is my take on a fix. I don't have any cross-compile env setup right now myself, so if there's someone reading this who cross-compiles curl I'll appreciate a test run with this patch applied! I don't have a

Re: libcurl + c-ares on Android

2013-04-16 Thread Dan Fandrich
On Tue, Apr 16, 2013 at 06:34:55PM +, jonathan.p.richard...@nokia.com wrote: I'm using libcurl 7.29.0 on Android with c-ares 1.9.1. I've been noticing a bug on a Samsung Galaxy S3 Samsung Galaxy Note 2 (and possibly other devices too) when the bearer switches from wifi to 3G where I

Re: Dan F's first ten years in the project!

2013-04-11 Thread Dan Fandrich
On Thu, Apr 11, 2013 at 11:23:04AM +0200, Daniel Stenberg wrote: I just want to highlight the fact that Friday April 11th, 2003 was the first time Dan Fandrich was mentioned in the git log. 019c4088cfcca0 was the first patch in a very long series from him. Wow, looking at that commit brings

Re: Error codes from SFTP

2013-04-10 Thread Dan Fandrich
On Wed, Apr 10, 2013 at 08:08:59PM +0100, Sam Deane wrote: On the topic of SFTP, am I right in thinking that there's no way to retrieve the error code from an SFTP quote command that has failed? It seems that the error string returned by sftp_libssh2_strerror is output, but not the code

Re: [collectd] Variables in collectd.conf

2013-04-09 Thread Dan Fandrich
cb6f9bd1dfd50cfcc1a2759fdcedf3aee30ad4f8 Mon Sep 17 00:00:00 2001 From: Dan Fandrich d...@coneharvesters.com Date: Sat, 2 Mar 2013 13:08:01 +0100 Subject: [PATCH 1/2] collectd.conf: Fixed the installation directory paths These variables are designed to be used from within a makefile, so they must be substituted from a script called

Re: Make DNS requests follow the CURLOPT_INTERFACE if c-ares is in use

2013-04-08 Thread Dan Fandrich
On Sun, Apr 07, 2013 at 08:59:00PM -0700, Ben Greear wrote: On 04/07/2013 07:30 PM, Kim Vandry wrote: It's yet one more option option that you have to remember to set though, so in this case I think it would be a good idea if the c-ares interface would default to the same as the curl

Re: Test results for W32

2013-04-02 Thread Dan Fandrich
On Tue, Apr 02, 2013 at 05:29:10PM +0400, LRN wrote: 24 285 543 571 1309 fail due to \r\n vs \n difference (my guess is that data is sent over the network with correct EOLS, but curl client prints it in text mode). Is this an issue with how you unpacked the source code? IIRC, the test suite

Re: Problem using curl in a Apache module

2013-03-27 Thread Dan Fandrich
On Wed, Mar 27, 2013 at 05:12:10PM +, Gary Maxwell wrote: Additionally, I believe you are required to build libcurl as PIC in order to be Apache-loadable. This is accomplished with --with-pic in curl configure, but I have not confirmed if this is required. This is done automatically on

Re: Problem using curl in a Apache module

2013-03-26 Thread Dan Fandrich
On Tue, Mar 26, 2013 at 09:06:28AM +0100, Juanjo C wrote: I'm trying to do a Apache module in C and in this module I'm using curl. Then the curl-library mailing list is the right place to ask. With APXS, I can to deploy the module into Apache, but when I try to restart Apache, it shows me

Re: BUG: free statement in http_negotiate.c giving heap error

2013-03-26 Thread Dan Fandrich
On Tue, Mar 26, 2013 at 01:57:59PM +0530, Arunav Sanyal wrote: Ok line number 308 is the malloc call which occurs immediately after the free statement that i talked about. This malloc is never reached, since the free itself causes a breakpoint after which I cannot step forward What is the

Re: [collectd] Mysql plugin works very strange

2013-03-21 Thread Dan Fandrich
On Thu, Mar 21, 2013 at 02:48:35PM +, Benjamin Wang (gendwang) wrote: When I setup collectd and mysql, there are 5 rrd files generated for mysql_commands as following: mysql_commands-admin_commands.rrd mysql_commands-select.rrd mysql_commands-show_databases.rrd

[collectd] [PATCH] curl_xml plugin: Fixed typo in documentation

2013-03-21 Thread Dan Fandrich
--- src/collectd.conf.pod |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 4449351..6598580 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1092,7 +1092,7 @@ host name setting. Use IInstance as the

Re: android load libcurl specified version instead of generic version

2013-03-21 Thread Dan Fandrich
On Thu, Mar 21, 2013 at 03:12:08PM +0700, abc wrote: I've built successfully my android app using libcurl. But I could not load my program. The error message that I've received is: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library libcurl.so.5 needed by

Re: curl_easy_perform() fails with Problem with the SSL CA cert (path? access rights?) after first time calling this routine

2013-03-20 Thread Dan Fandrich
On Tue, Mar 19, 2013 at 08:52:32AM -0400, cnm marketing wrote: A hack could be to use libcurl without SSL use and setup stunnel as a last resort to avoid using SSL on your many layers. [cnm] What can exact libcurl or other routines/options be used, please give a bit more details if it is

[collectd] [PATCH] Get rid of a compiler warning with gcc 4.6.3

2013-03-18 Thread Dan Fandrich
...a futile warning that nevertheless kills the build thanks to -Werror: variable 'status' set but not used --- src/utils_rrdcreate.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c index 3b8f342..a34e0da 100644 ---

Re: Timeout; x out of -1 bytes received

2013-03-18 Thread Dan Fandrich
On Mon, Mar 18, 2013 at 10:40:06AM +0100, Daniel Walter wrote: i am using libcurl in my c/c++ projects for a while and I like it a lot. In my latest project I have at least 2 threads. 1 thread performs many multi actions. the other thread sometimes makes some normal easy calls. Each thread

Re: HTTP Headers in Response message.

2013-03-16 Thread Dan Fandrich
On Sat, Mar 16, 2013 at 01:10:08AM -0400, Anil J wrote: In the libcurl tutorial, under section Customizing Operations, it is mentioned about how to manipulate the Headers in the Request message we can send using curl API. But I did not understood how we can handle the HTTP headers in the

Re: To get correct Content Length in headers

2013-03-16 Thread Dan Fandrich
On Sat, Mar 16, 2013 at 06:04:57PM +0530, Ajay Tanpure wrote:      I am using libcurl to send http post request to http server. I get the data from another process, Its size is variable every time. I add that data in POSTFIELD of the request in curl_easy_setopt() function. My data contains

Re: curl_easy_perform() failed: Couldn't connect to server

2013-03-15 Thread Dan Fandrich
On Fri, Mar 15, 2013 at 12:07:44AM -0400, Anil J wrote: Just to test a new scenario, I changed the URL to a HTTP web server running on the same host, but still same error persist. I can fetch the web server from the firefox browser, but not from the curl program.  Looks like something

Re: [PATCH] Addition of trailer headers in HTTP requests generated by libcurl

2013-03-15 Thread Dan Fandrich
On Fri, Mar 15, 2013 at 02:07:47PM +0200, Chrysovaladis Datsios wrote: W/o looking at your code in details, why isn't this returning 'CURLE_OUT_OF_MEMORY'? --gv According to Dan Fandrich: --- And I'm not sure CURLE_OUT_OF_MEMORY is the best error

Re: Possible to send a FTP command without doing a directory listing?

2013-03-14 Thread Dan Fandrich
On Thu, Mar 14, 2013 at 01:49:14AM -0500, Paul Pearcy wrote: My issue is that I can’t figure out how to send a FTP control command without also doing a directory listing or a file operation. Is it possible to send a control command (eg, PWD) without also performing a directory listing on an

Re: Avoid write callbacks

2013-03-13 Thread Dan Fandrich
On Wed, Mar 13, 2013 at 01:01:35PM +0100, Florian Weimer wrote: Is there a way to avoid callbacks, while still supporting incremental retrieval of data? Unless you're writing to a FILE*, libcurl gives no other option for writing received data without using callbacks. But, you can certainly

Re: [PATCH] Addition of trailer headers in HTTP requests generated by libcurl

2013-03-13 Thread Dan Fandrich
On Mon, Mar 11, 2013 at 06:09:29PM +0200, Chrysovaladis Datsios wrote: --- a/lib/transfer.c +++ b/lib/transfer.c @@ -193,6 +193,71 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp) /* copy the prefix to the buffer, leaving out the NUL */

Re: Recent IMAP changes

2013-03-11 Thread Dan Fandrich
On Sun, Mar 10, 2013 at 12:11:27AM +0100, Daniel Stenberg wrote: Personally I've not found that to be much of a problem with the existing tests. As long as the info tag specify the protocol properly, runtests.pl can filter out specific tests/protocols (and so can grep). And for those who

Re: Curl_resolv_timeout

2013-03-08 Thread Dan Fandrich
On Fri, Mar 08, 2013 at 10:23:43PM +0100, Daniel Stenberg wrote: I can't think of any alternative to signals to abort the stock synchronous name resolver function. Can you? One of the proposals that was bandied about before the threaded resolver came into being was to fork() a new process to

Re: Problem with SMTP using libcurl

2013-03-07 Thread Dan Fandrich
On Thu, Mar 07, 2013 at 05:03:04PM +, Steve Holme wrote: Whilst I have thought about extending the supported commands to include RSET, NOOP and VRFY I have not made a business case for it at the moment. As such you have me totally stumped as to what could be sending that RSET :( Maybe a

Re: curl-7.29.0: 'curl' executable fails to link against custom-built OpenSSL

2013-03-04 Thread Dan Fandrich
On Mon, Mar 04, 2013 at 12:14:47PM -0500, Dennis Clarke wrote: The ca-cert path annoys me but I can live without it. --with-ca-path? Dan --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette:

[collectd] [PATCH] Fix automatic link flags with libgcrypt 1.5.0

2013-03-03 Thread Dan Fandrich
AM_PATH_LIBGCRYPT from libgcrypt 1.5.0 sets the variables LIBGCRYPT_CPPFLAGS and LIBGCRYPT_LIBS with their proper values, not GCRYPT_CPPFLAGS and GCRYPT_LIBS. --- configure.in |2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.in b/configure.in index 7c55827..dce572f 100644 ---

[collectd] [PATCH] src/filter_chain.c: Fixed typos in error messages

2013-03-03 Thread Dan Fandrich
--- src/filter_chain.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filter_chain.c b/src/filter_chain.c index ed2df61..7d8369b 100644 --- a/src/filter_chain.c +++ b/src/filter_chain.c @@ -92,7 +92,7 @@ static void fc_free_matches (fc_match_t *m) /* {{{ */

[collectd] Variables in collectd.conf

2013-03-03 Thread Dan Fandrich
the variable substitution manually for each desired variable, instead of using AC_CONFIG_FILES. The attached patch changes collectd to use the specified method of replacing the directory variables. Dan From cb6f9bd1dfd50cfcc1a2759fdcedf3aee30ad4f8 Mon Sep 17 00:00:00 2001 From: Dan Fandrich d

Re: header mysteries when not using curl_slist_append

2013-03-02 Thread Dan Fandrich
On Fri, Mar 01, 2013 at 07:05:33PM -0500, Dennis Clarke wrote: using the http-post.c example code as a basis. looked at that .. won't work as there are no fields on the end point such as name=foo etc. However .. I guess I could just shove the entire datastream to be sent into the

Re: nearly all tests failing for me with curl 7.29.0 on Mac OS 10.8

2013-03-01 Thread Dan Fandrich
On Thu, Feb 28, 2013 at 04:57:49PM -0700, Nick Zitzmann wrote: FWIW, I just did a clean rebuild and ran the test suite on the code in the trunk, with SSL and IPv6 and Metalink turned on, and they all passed. Paul, are you using a firewall by any chance? If so, you need to turn it off before

Re: header mysteries when not using curl_slist_append

2013-03-01 Thread Dan Fandrich
On Fri, Mar 01, 2013 at 06:02:17PM -0500, Dennis Clarke wrote: I need to post some xml data to a remote point and then wait and listen for a reply. This all seems to be going well except for the mystery of headers. I really don't know what headers are really being sent to the remote url

Re: [Mageia-dev] A question about BuildRequires and other RPM questions.

2013-02-28 Thread Dan Fandrich
On Thu, Feb 28, 2013 at 03:25:41PM +0100, Guillaume Rousse wrote: Build dependencies are usually specified in installation instructions. For humans, of course. You may also try to parse the outpout of ./configure (or equivalent) script. In both case, there is not garanty then every build

Re: [PATCH] Addition of trailer headers in HTTP requests generated by libcurl

2013-02-28 Thread Dan Fandrich
This is looking much cleaner than before! I've spotted a few issues left, though. On Thu, Feb 28, 2013 at 12:00:51PM +0200, Chrysovaladis Datsios wrote: @@ -193,8 +194,66 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp) /* copy the prefix to the buffer,

Re: nearly all tests failing for me with curl 7.29.0 on Mac OS 10.8

2013-02-28 Thread Dan Fandrich
On Thu, Feb 28, 2013 at 04:31:43PM -0500, Paul Heckbert wrote: Dan F: thanks. That make check command you suggested yields: TESTDONE: 607 tests out of 610 reported OK: 99% TESTFAIL: These test cases failed: 564 706 1316 I would expect that there wouldn't be any test failures. But, someone

Re: nearly all tests failing for me with curl 7.29.0 on Mac OS 10.8

2013-02-27 Thread Dan Fandrich
On Tue, Feb 26, 2013 at 03:22:46PM -0500, Paul Heckbert wrote: I'm getting about 0% of tests passing after building libcurl 7.29.0 on Mac OS 10.8. My ultimate question: how do I fix this? Would this be due to misconfiguration of other libraries? Any suggestions on the best approach to

Re: possible problem with curl-config

2013-02-25 Thread Dan Fandrich
On Mon, Feb 25, 2013 at 11:23:56AM -0500, Dennis Clarke wrote: sure enough I check curl-config: $ which curl-config /usr/local/bin/curl-config $ curl-config --cflags -I/usr/local/include $ curl-config --configure '--enable-shared' '--enable-static'

Re: Logging in from a POST method form

2013-02-25 Thread Dan Fandrich
On Mon, Feb 25, 2013 at 01:45:28PM -0500, Donnell Connally wrote: I'm having a bit of trouble with the curl post option as I'm trying to test login into my account on adf.ly. Simply setting CURLOPT_URL to http://adf.ly/login; and the rest of my options works fine and returns the code of the

Re: [Mageia-dev] About bug 6676

2013-02-21 Thread Dan Fandrich
On Thu, Feb 21, 2013 at 12:02:13PM +, Pierre-Malo Deniélou wrote: I would say that packages which autodownload non-free material should be in nonfree (like get-skype). For the same reason that free packages which Require a package in nonfree should be in nonfree. But what happens when free

Re: limits of independent curl connections

2013-02-18 Thread Dan Fandrich
On Mon, Feb 18, 2013 at 11:35:16AM -0600, Tom K. wrote: I have an app that sends via libcurl on a background thread. I run 200 of this app on a windows7 machine. They aren't all sending at once, though the producer thread is waking on frame intervals, so its possible that many try and do

Re: Installing libssh2 on HP-UX

2013-02-14 Thread Dan Fandrich
On Thu, Feb 14, 2013 at 10:42:29AM +, Wes Donze wrote: Thanks for your response - I think I've drawn the short straw here on this - got asked to install this The only output I get from the make is what I posted originally - It now looks like I need to install 'git' to get any diagnostics

Re: Curl not able to handle multiple double-quotes in 401 challenge

2013-02-12 Thread Dan Fandrich
On Tue, Feb 12, 2013 at 12:23:17PM +0530, sumit gambhir wrote: Thanks for the response.   But if i use Chunking with digest Auth. Curl ignore 401 response also (Ignoring the response-body). The body content is irrelevant to libcurl, so it ignores it. It's not ignoring the 401--you can see

Re: [bagder/curl] 611ec0: emacs files: remove from git and dist

2013-02-07 Thread Dan Fandrich
On Thu, Feb 07, 2013 at 11:28:59AM +0100, Yang Tse wrote: Pushing makefiles down into the packages subdirectories makes it an increased pain when we need to make changes that affect all build systems. In this case the risk of missing stuff in this specific file is even greater given it does

[collectd] [PATCH] curl_xml plugin: Allow XML element nodes to be selected for text

2013-02-06 Thread Dan Fandrich
This is a pretty basic use case, namely to select text within an XML element, instead of just attribute values. --- src/curl_xml.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/curl_xml.c b/src/curl_xml.c index 9573948..8a07881 100644 --- a/src/curl_xml.c +++

[collectd] [PATCH] curl_xml plugin: Added support for XML namespaces

2013-02-06 Thread Dan Fandrich
--- I didn't see any other way to use an XPath expression on a document using namespaces, although I don't pretend to be an expert on the matter. The cx_register_namespaces function is a slightly-modified version from an example program which is included with libxml2. src/collectd.conf.pod |

<    2   3   4   5   6   7   8   9   10   11   >