Re: Moving some files?

2013-02-06 Thread Dan Fandrich
On Wed, Feb 06, 2013 at 11:17:21PM +0100, Daniel Stenberg wrote: Thanks, I took your advice on a few of those and I'll move off the MacOSX-Framework file too once Nick's patch is in. IIRC, the Android.mk in its new location should still be automatically picked up by the Android build system.

Re: libcurl: Problem when connect to a shared hosting server over ftp+ssl

2013-02-05 Thread Dan Fandrich
On Tue, Feb 05, 2013 at 02:16:01PM +0700, chu ngoc hung wrote: Here is my log (when disable host/peer): [...] * FTP 0x282dda0 state change from QUOTE to PASV * Connect data stream passively 229 Extended Passive mode OK (|||38012|) *   Trying 69.195.91.50... * Operation timed out *

Re: [collectd] [PATCH] Allow out-of-tree builds

2013-02-04 Thread Dan Fandrich
On Sun, Feb 03, 2013 at 01:17:24PM +0100, Florian Forster wrote: +AM_CPPFLAGS += -I$(top_builddir)/src/libcollectdclient/collectd Since binaries using the library need to get linked to it, and not all binaries are, I think I'd rather add this to the binary specific CPP flags, i.e.:

[collectd] [PATCH] Add protection from infinite redirect loops to curl-using plugins

2013-02-04 Thread Dan Fandrich
--- src/apache.c |1 + src/ascent.c |1 + src/bind.c |1 + src/curl.c |1 + src/nginx.c |1 + 5 files changed, 5 insertions(+) diff --git a/src/apache.c b/src/apache.c index 202b73c..e562138 100644 --- a/src/apache.c +++ b/src/apache.c @@ -426,6 +426,7 @@ static int

[collectd] [PATCH] curl* plugins: Added support for POST and arbitrary headers

2013-02-04 Thread Dan Fandrich
These plugins can now be used for things like SOAP or XML-RPC calls. --- src/collectd.conf.pod | 41 - src/curl.c| 29 + src/curl_json.c | 28 src/curl_xml.c| 28

[collectd] A couple of collectd crashes

2013-02-04 Thread Dan Fandrich
a NULL pointer. Dan From 43ed73d243635a86e5e72da434092f578d593269 Mon Sep 17 00:00:00 2001 From: Dan Fandrich d...@coneharvesters.com Date: Mon, 4 Feb 2013 23:59:41 +0100 Subject: [PATCH] Fix a NULL pointer dereference during shutdown --- src/plugin.c |6 -- 1 file changed, 4 insertions

Re: [collectd] [PATCH] curl* plugins: Added support for POST and arbitrary headers

2013-02-04 Thread Dan Fandrich
From 70367b8a715d6e865066c5b0d8ca0ef23a9c46ff Mon Sep 17 00:00:00 2001 From: Dan Fandrich d...@coneharvesters.com Date: Sat, 2 Feb 2013 23:50:13 +0100 Subject: [PATCH] curl* plugins: Added support for POST and arbitrary headers These plugins can now be used for things like SOAP or XML-RPC calls

Re: [collectd] A couple of collectd crashes

2013-02-04 Thread Dan Fandrich
On Tue, Feb 05, 2013 at 12:02:17AM +0100, Dan Fandrich wrote: I managed to get collectd to segfault in a couple of places while playing with it a bit. The first is in the curl_xml module when the XPATH expression doesn't quite match the input. I've spotted some other questionable code around

[collectd] [PATCH] curl's numeric options are always at minimum long, never int

2013-02-01 Thread Dan Fandrich
This can affect portability to some architectures. --- src/apache.c | 12 ++-- src/ascent.c | 12 ++-- src/bind.c |4 ++-- src/curl.c |8 src/curl_json.c |6 +++--- src/curl_xml.c |2 +- src/nginx.c | 12 ++--

[collectd] [PATCH] Allow out-of-tree builds

2013-02-01 Thread Dan Fandrich
The generated header file lcc_features.h and collectd.h cause problems otherwise. --- src/Makefile.am |1 + src/libcollectdclient/Makefile.am |2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index f31c176..bd00029

Re: [Mageia-dev] Cleaning up init

2013-01-31 Thread Dan Fandrich
On Thu, Jan 31, 2013 at 10:00:36AM +, Colin Guthrie wrote: While I'm pretty sure no such init script exists and would break in other ways, it's still a valid point. I've changed it to {} now. True, but if we haven't told our users what their symbolic links should look like, we can't be

Re: [Mageia-dev] Cleaning up init

2013-01-30 Thread Dan Fandrich
On Tue, Jan 29, 2013 at 10:19:46AM +, Colin Guthrie wrote: find /etc/rc.d/rc{0,1,2,3,4,5,6,7}.d -type l -exec sh -c 'if [ ! -e {} ]; then rm -f {}; fi' \; This does much the same job, but find is already used in multiple places so probably a better solution even if the command is more

Re: nfs mount succeeds but apps don't find the files

2013-01-26 Thread Dan Fandrich
On Sat, Jan 26, 2013 at 06:41:02PM +0100, Tsjoecha wrote: The mount succeeds perfectly, if I go in the terminal to /sdcard/Pictures and execute the ls command, I can see all my pics from my nas-device. Though, when starting apps, like EZ File Explorer, the folder seems to be empty. Other

Re: libcurl failed to create/upload file with digest authentication when header If-None-Match: * is added

2013-01-26 Thread Dan Fandrich
On Fri, Jan 25, 2013 at 06:38:49PM +, Yingping Lu wrote: We’d like to make sure we don’t overwrite an existing object when we upload a file to a server, so we put a header If-None-Match: *, however, the upload operation always failed with digest authentication. I tracked the code a bit and

Re: Simple HTTP PUT - response content printed to screen

2013-01-26 Thread Dan Fandrich
On Fri, Jan 25, 2013 at 05:37:11PM -0500, Joe Lorenz wrote: I'm having this problem when using libcurl in my own (Linux) app, but I can demonstrate the same problem using the curl tool. If a simple HTTP file upload (presumably a 'PUT'), and the file gets created at the destination, the

Re: Simple HTTP PUT - response content printed to screen

2013-01-26 Thread Dan Fandrich
On Sat, Jan 26, 2013 at 06:54:25AM -0500, Joe Lorenz wrote: Oh. I hadn't considered that since a 201 or a 200 response doesn't get printed and nothing prints out for a GET or file transfers with other protocols. libcurl prints whatever is sent for (most) status codes; after all, that's

Re: LibCurl Time out Issue

2013-01-25 Thread Dan Fandrich
On Fri, Jan 25, 2013 at 05:39:16PM +0530, Venkatesh Prabu Narayanan wrote: I am new to this forum. I am using libcurl to download files from the server to the client. I am using the following options in my curl connection in client side, curl_easy_setopt(curlPtr, CURLOPT_LOW_SPEED_LIMIT,

Re: anonymous ftp

2013-01-21 Thread Dan Fandrich
On Mon, Jan 21, 2013 at 10:06:09AM -0500, Ashby, Nick wrote: I am using cURL on Linux and trying to both upload and download to different machines. I want to use the anonymous FTP. I have had success with using the command line curl –O ftp://anonymous@ipaddress/remotepath to receive files but

Re: Can I post my open source library?

2013-01-17 Thread Dan Fandrich
On Thu, Jan 17, 2013 at 09:05:54PM +0800, John Kenedy wrote: Before I post I want to make sure admin is okay with it. So its like this, I have extend microsoft .NET's WebClient class and build a syntax parser that is specially for web scraping functions. Can I post my open source library

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

2013-01-17 Thread Dan Fandrich
On Thu, Jan 17, 2013 at 02:35:12PM +0200, Chrysovaladis Datsios wrote: The feature is implemented as another in curl_easy_setopt() function. This new option is named CURLOPT_HTTPTRAILERHEADER and adds the trailer headers appended on a curl_slist. Example code snippet using the new feature:

Re: Compiling libcurl with ssh2 library for Borland 5.5

2013-01-14 Thread Dan Fandrich
On Mon, Jan 14, 2013 at 11:27:06AM -0500, Khaled El Manawhly wrote: I apologize for repeating my email, but I still didn't get a reply. I have still been unable to compile with Borland, and the access violation while compiling with MSVC is still there. Has anyone run into something similar?

Re: Prevent curl to trigger progressbar on 302 redirections

2013-01-11 Thread Dan Fandrich
On Fri, Jan 11, 2013 at 09:38:13AM +0100, Alexandre Filgueira wrote: Sorry, I have an error on my writting: to now trigger I ment to say to not trigger 2013/1/11 Alexandre Filgueira alexfilgue...@cinnarch.com Content-Length: 369 My guess this is the difference. The one

Re: CURL custom request

2013-01-08 Thread Dan Fandrich
On Tue, Jan 08, 2013 at 11:12:14PM +0700, Dung Nguyen wrote: hi! I have server with i need to call the request like this GET /test  HTTP/1.1 I'm assuming that this is the URL-decoded version of GET /test%0a%0a and not some other unprintable characters. Not that it really matters, because

Re: [Mageia-dev] df lying?

2013-01-07 Thread Dan Fandrich
On Mon, Jan 07, 2013 at 01:46:37PM -0500, Felix Miata wrote: So the OP questions remain: 1-how can the free block count be identical before and after adding 37,925,705K bytes in 7 files to that journal-free, 0 reserved for root filesystem? Are you absolutely positive that this is the right

Re: [bagder/curl] 13606b: build: make use of 93 lib/*.c renamed files

2013-01-05 Thread Dan Fandrich
On Sat, Jan 05, 2013 at 02:29:19PM +0100, Gisle Vanem wrote: Steve Holme steve_ho...@hotmail.com wrote: I'm still more in favour of going back to the old names and reverting the change. Me too. I am as well. Dan --- List

Re: getinmemory.c problems

2012-12-28 Thread Dan Fandrich
On Thu, Dec 27, 2012 at 07:36:00PM -0600, Derek Martin wrote: 1. It calls realloc() every time through the callback. This is terribly inefficient, though it appears to be somewhat required by libcurl, since (as I found out in my testing) it does not necessarily make the

Re: getinmemory.c problems

2012-12-28 Thread Dan Fandrich
On Fri, Dec 28, 2012 at 10:54:14AM -0600, Derek Martin wrote: Fair enough... though it's still not clear to me why the example program retrieves no data. Other than memory allocation scheme, it does not appear to be substantively different from mine. getinmemory works fine for me when

Re: http 403 fobidden from YouTube

2012-12-27 Thread Dan Fandrich
On Thu, Dec 27, 2012 at 05:37:54PM +0800, 黎小辉 wrote: My mediaplay use curl for http stream download. When I play the video , often return the 403 fobidden error recently. I don't know whether I can get the 403 substatus error code using the libcurl. How to do it? Thanks! Are you looking

Re: CURLE_COULDNT_RESOLVE_HOST using libcurl easy interface

2012-12-21 Thread Dan Fandrich
On Fri, Dec 21, 2012 at 08:41:44AM -0500, Dave Galloway wrote: Another piece of the puzzle. One of our other programmers has a CentOS box with our development environment. He built my test program on it and it runs fine on the CentOS system. It segfaults on the old RH system and says the

Re: CURLE_COULDNT_RESOLVE_HOST using libcurl easy interface

2012-12-19 Thread Dan Fandrich
On Wed, Dec 19, 2012 at 04:10:46PM -0500, Dave Galloway wrote: I must be losing it because I can't seem to see the problem. I have cut down my test program to a bare minimum. I have tried a newer version of libcurl, 7.21.4 instead of 7.19.6, that I had locally. If I call

Re: Not able to cross-compile curl for ARM uClinux

2012-12-14 Thread Dan Fandrich
On Fri, Dec 14, 2012 at 07:10:54PM +0100, Bernard Evensrud wrote: Thanks for your input. Coming from the microcontroller world, I must admit this is over my head. I do not understand these error messages. There might be a possible fault in the toolchain? That's what it looks like. It matches

Re: Not able to cross-compile curl for ARM uClinux

2012-12-13 Thread Dan Fandrich
On Thu, Dec 13, 2012 at 02:43:06PM +0100, Bernard Evensrud wrote: I am using a Ubuntu 12.10 64-bit computer, trying to compile libcurl.a for use in a project with embedded uClinux. However, I only get an error message when running .configure with arm-elf-gcc. Compiling a native version using

Re: [Mageia-dev] python-curl build fail in cauldron

2012-12-12 Thread Dan Fandrich
can someone have a look at python-curl build fail in cauldron ? Looks like a missing a -lcrypto in the link line, likely due to that being an implied dependency through libcurl. Without looking at the source, it might be as easy to fix as setting env LIBS=-lcrypto on the compile line. Dan

Re: [Mageia-dev] python-curl build fail in cauldron

2012-12-12 Thread Dan Fandrich
On Wed, Dec 12, 2012 at 04:31:54PM +, Colin Guthrie wrote: Of course if that is the problem, then a proper patch to it's build system (autotools, cmake or whatever is used) and submitting the fix upstream is the correct course of action :) True, but the latest upstream release is 4 years

Re: Potential Fix to libcurl 7.28.1 HPUX11.11 rw_lock.h compiler error developed

2012-12-12 Thread Dan Fandrich
On Wed, Dec 12, 2012 at 01:59:33AM -0500, Frank Chang wrote: Yang Tse and Dan Fandrich, Thank you for your help .I just developed a potential fix to the nasty rw_lock.h problem.on HPUX 11.11. curl 7.28.1 compiles and links successfully if you use the following fix. For example if you go

Re: Potential Fix to curl 7.28.1 for HPUX 11.11 CC compiler /usr/include/sys/rw_lock.h compiler error

2012-12-12 Thread Dan Fandrich
On Wed, Dec 12, 2012 at 05:22:10AM -0500, Frank Chang wrote: Dan Fandrich, Thank you for you reply. Here is the /usr/include/sys/ rw_lock..file for HPUX 11.11 for your potential review if you have the time. The offending lines are around line 169. You may contact me at frank_chan

Re: 2. Re: Potential Fix to libcurl 7.28.1 HPUX11.11 rw_lock.h compiler developed(Daniel Stenberg)

2012-12-12 Thread Dan Fandrich
On Wed, Dec 12, 2012 at 06:26:13AM -0500, Frank Chang wrote: Daniel Stenberg and Dan Fandrich, There are actually more libcurl 7.28.1 files that require the same change as Daniel Stenberg just made for gopher.c. They are 1) ./lib/tftp.c 2) ./lib/easy.c 3)./lib

Re: Potential Fix to libcurl 7.28.1 HPUX11.11 rw_lock.h compiler error developed

2012-12-12 Thread Dan Fandrich
On Wed, Dec 12, 2012 at 04:21:51PM +0100, Yang Tse wrote: Compilation was failing on line that reads as This is probably not a good thing. In order to make this happen _KERNEL must have been defined somewhere. In any case, I've just pushed

Re: Potential Fix to libcurl 7.28.1 HPUX11.11 rw_lock.h compiler error developed

2012-12-12 Thread Dan Fandrich
On Wed, Dec 12, 2012 at 06:10:39PM +0100, Yang Tse wrote: Probably true. But given recent record history of OP not providing complete details, commit f254c59dc7 might be best workaround we can provide. Unless OP actually digs into the problem and provides a better fix than what was previously

Re: Potential Fix to libcurl 7.28.1 HPUX11.11 rw_lock.h

2012-12-12 Thread Dan Fandrich
On Wed, Dec 12, 2012 at 12:32:30PM -0500, Frank Chang wrote: Yang Tse and Dan Fandrich, I have plenty of detailed information on this problem and other questions I have emailed to the curl-library-developers list. However, many times when I try to submit error log information or other large

Re: Possible Curl-7.28.1 compiler error message on aCC compiler

2012-12-11 Thread Dan Fandrich
On Tue, Dec 11, 2012 at 12:56:38PM -0500, Frank Chang wrote: Daniel Stenberg, On HPUX B.11.11 using the aCC compiler, we obtain the following compile error shown below, Error 20: /usr/include/sys/rw_lock.h, line 169 # ';' expected before 'probably'. This is probably not a good thing

Re: [PATCH] configure: fix cross pkg-lconfig detection

2012-12-09 Thread Dan Fandrich
On Sun, Dec 09, 2012 at 02:20:17PM -0500, Frank Chang wrote: Daniel Stenberg, I just tested the latest libcurl-7.28.1.tar.gz download on Solaris UNIX. We ran the following sequence: 1) gunzip libcurl-7.28.1.tar.gz 2) tar -zvf libcurl-7.28.1tar 3) ./configure 4) make and we observe lots

Re: Problems with SMTP connection re-using (SSL read: error:00000000:lib(0):func(0):reason(0))

2012-12-07 Thread Dan Fandrich
On Fri, Dec 07, 2012 at 11:28:14AM +0100, Volker Schmid wrote: I'm just having this problem. I successfully sent an email with libcurl and the connection stays open (first line). Then I try to send another one: ... 2012-12-06 15:33:49 : CURL: Connection #0 to host smtp.xx.com left

Re: [Mageia-dev] failure to install a src.rpm in a user build directory

2012-12-06 Thread Dan Fandrich
On Wed, Dec 05, 2012 at 11:50:05PM +0100, sardine wrote: I've installed cauldron in a vmware vm, and wanting to rebuild a rpm as a user in my /home I've setup the build environment as usual (I've done that a lot of times in the past and even a few weeks ago). For me everything is OK but a

Re: RedHat Linux libcurl 7.28.1 gcc compiler error log file

2012-12-05 Thread Dan Fandrich
On Wed, Dec 05, 2012 at 07:04:50AM -0500, Frank Chang wrote: Daniel Stenberg and Libcurl 7.28.1 Developers, Per Daniel Stenberg's request, we are posting the first several hundred lines of the compile errors from Red Hat Enterprise Linux 4 for libcurl 7.28.1. Is there a potential workaround so

Re: RedHat Linux libcurl 7.28.1 compiler errors

2012-12-04 Thread Dan Fandrich
On Tue, Dec 04, 2012 at 02:22:50PM -0500, Frank Chang wrote: Daniel Stenberg, This morning, our Project Director and I tested the libcurl 7.28.1 ./configure file on RedHatLinux. There were over 50+ compiler errors. The RedHat Linux OS and GNU compiler information are shown below.[xyz@build01

Re: HTTPS CURL get slow when calling at first time

2012-11-27 Thread Dan Fandrich
On Tue, Nov 27, 2012 at 08:42:41PM +0100, Oscar Koeroo wrote: Have you Wiresharked an empty SSL handshake? It is interesting to see how fast your TCP/IP is handhaking and the latency from SSL/TLS Client Hello and Server Hello to a complete session. IMHO guessing is inefficient, measuring is

Re: HTTPS CURL get slow when calling at first time

2012-11-27 Thread Dan Fandrich
On Tue, Nov 27, 2012 at 11:59:51PM +0200, gokhansen...@gmail.com wrote: According to the logs, client resolves the ip and connects to 443 port w/o delay. it is the start of ssl handshake failing to kick of for a long time. Is this a Windows platform? What SSL back-end is libcurl compiled to

Re: PATCH: curl-config --static-libs should output nothing when compiled with --disable-static

2012-11-22 Thread Dan Fandrich
On Wed, Nov 21, 2012 at 05:17:39PM +0100, Wouter Van Rooy wrote: When configuring curl with --disable-static and then running curl-config --static-libs it still outputs the non-present libraries. Attached is a patch to fix this. The patch removes the non-present libraries, but outputting

Re: testing for connectivity to the SMTP server using libcurl APIs

2012-11-22 Thread Dan Fandrich
On Thu, Nov 22, 2012 at 11:52:39AM +, Chandran, Naveen wrote: Please let me know if there is a way to test for proper SMTP server connectivity using libcurl ‘without actually sending an email’. Although this could otherwise be done with a simple telnet EHLO (or HELO), I would like to know

Re: Does libcurl supports LDAP connections over SOCKS proxy?

2012-11-20 Thread Dan Fandrich
On Thu, Nov 15, 2012 at 02:47:58PM +0400, Anton Malov wrote: Tried to set custom socket for LDAP connection using LDAP_OPT_DESC option http://msdn.microsoft.com/en-us/library/aa367019(VS.85).aspx This is not working because operation returns 0x35 which stands for LDAP_UNWILLING_TO_PERFORM

Re: Sleep and wakeup on http request AND communication socket number

2012-10-25 Thread Dan Fandrich
On Thu, Oct 25, 2012 at 07:28:28PM +0800, JALINDAR wrote: Then how to get at least opened socket for handle by libcurl.as i have to send this port number to the server This is obviously not for one of the standard protocols that libcurl supports, then. There is a way to get the

Re: Sleep and wakeup on http request AND communication socket number

2012-10-23 Thread Dan Fandrich
On Tue, Oct 23, 2012 at 08:55:50PM +0800, JALINDAR wrote: In my application I want to sleep() and want to wake up on the http connection request on already open socket using libcurl handle? You can use the multi interface to get total control over when network data is processed. Rather than

Re: libcurl: resolver with HAVE_ALARM not thread safe?!

2012-10-22 Thread Dan Fandrich
On Mon, Oct 22, 2012 at 02:24:01AM +0200, Thorben Thuermer wrote: on http://curl.haxx.se/libcurl/features.html we find: libcurl is designed and implemented entirely thread safe. libcurl uses certain system calls to obtain information. Some of the most crucial ones are the name resoluition

Re: [PATCH] Add compiler and configure info to mutt -v output (closes #3537)

2012-10-18 Thread Dan Fandrich
On Thu, Oct 18, 2012 at 03:12:21PM -0500, David Champion wrote: Thanks for the reviews! Changes: * Uses a C txt2c instead of Python - no new build prereqs But it's going to break when cross-compiling, whereas the Python version doesn't. Dan

Re: fflush()ing libcurl's FILE* for the file:// protocol...

2012-10-07 Thread Dan Fandrich
On Sun, Oct 07, 2012 at 01:06:15AM +0200, Sebastian Rasmussen wrote: If it's truly needed, then sync() could always be called in the application's write callback that occurs immediately after the file write. Now I'm not following your reasoning. What write callback? Sorry, I meant the

Re: fflush()ing libcurl's FILE* for the file:// protocol...

2012-10-06 Thread Dan Fandrich
On Fri, Oct 05, 2012 at 07:03:47PM +0200, Sebastian Rasmussen wrote: Alright, how about something along the lines of the attached? Basically I'm adding a CURLOPT_UNBUFFERED_WRITES which causes libcurl to call setbuf() with NULL, and also to call fsync() to make sure that the written file

Re: fflush()ing libcurl's FILE* for the file:// protocol...

2012-10-04 Thread Dan Fandrich
On Wed, Oct 03, 2012 at 02:46:18PM +0200, Sebastian Rasmussen wrote: So therefore I propose that a new return value for READFUNCTION is added which instructs libcurl to call fflush() on the FILE*, thereby forcing the data to the file system. Does anyone have any opinion on this? Also does this

Re: [PATCH]: curl-config CPPFLAG_CURL_STATICLIB

2012-09-30 Thread Dan Fandrich
On Sat, Sep 29, 2012 at 09:22:35PM -0600, Kelly Anderson wrote: curl-config is not quite right, here's a patch. Thanks for the patch, but it's already been fixed in git. Dan --- List admin:

Re: curl to try the SSL connection with previous connection session ID

2012-09-27 Thread Dan Fandrich
On Thu, Sep 27, 2012 at 12:52:28PM -0400, bala suru wrote: Since I am newbie to the curl , can you provide some more information on how to re use the handle ..? You mean to say perform only the below step with the new request  again..!!   /* Perform the request, res will get the return

Re: How to delete file from sftp server by libcurl

2012-09-25 Thread Dan Fandrich
On Thu, Sep 20, 2012 at 11:29:00AM +0800, 黄心怡 wrote: I am trying to delete a file from sftp server. Here is my code: CString cmd = delete 2.key; CURL *curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_PASSWORD); curl_easy_setopt(curl,

Re: utmp fix for mips64 uClibc systems

2012-09-24 Thread Dan Fandrich
On Mon, Sep 24, 2012 at 09:12:01PM +0200, Waldemar Brodkorb wrote: +if (access(filename, R_OK | W_OK) == -1) { +c=open(filename, O_WRONLY | O_CREAT, 0664); +if (c 0) { 0 is a perfectly valid file descriptor. This should be c = 0, or just use xopen().

Re: Wrong behavior when activate the LOW_SPEED_LIMIT and LOW_SPEED_TIME

2012-09-23 Thread Dan Fandrich
On Mon, Sep 24, 2012 at 11:31:07AM +0800, Jie He wrote: curl_easy_setopt(handle_curl, CURLOPT_MAX_RECV_SPEED_LARGE, 1024); curl_easy_setopt(handle_curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(handle_curl, CURLOPT_LOW_SPEED_LIMIT, 1); curl_easy_setopt(handle_curl,

Re: Patch to add CURLOPT_SSLENGINE_WITH_OPT for curl_easy_setopt

2012-09-22 Thread Dan Fandrich
On Thu, Sep 20, 2012 at 02:31:08PM -0400, Andrew Prout wrote: The attached patch adds a new option for curl_easy_setopt: CURLOPT_SSLENGINE_WITH_OPT. It's be nice if this feature could be merged into libcurl. It's an variation of CURLOPT_SSLENGINE that lets you set the pre and post engine init

Re: use libcurl with polarssl, linking issue.

2012-09-20 Thread Dan Fandrich
On Wed, Sep 19, 2012 at 02:54:56PM -0700, Emanuel Patern wrote: I tried to build curl with polarssl instead of openssl. Here what I did : Libcurl version : 7.27.0 Polar ssl version : 1.1.4 To build polar ssl I did : make CC=gcc APPS= make DESTDIR=/c/pssl install To build curl I did

Re: cURL on devices with unstable internet connection

2012-09-16 Thread Dan Fandrich
On Sat, Sep 15, 2012 at 04:19:34PM +0300, Alexander Shashkevych wrote:   I'm engineer which is porting webkit browser for car head unit and we are using curl as http(s) backend in our project. We have following use case: internet access established via mobile phone and it's unstable. In some

Re: Help needed with CURLOPT_HEADERDATA and friends

2012-09-10 Thread Dan Fandrich
On Mon, Sep 10, 2012 at 06:43:03PM +0100, John Doe wrote: I'm afraid I can't make head or tail of the sparse documentation, probably because I haven't been programming in C/C++ long enough to be used to such sparseness. But I digress. Have you looked at http://curl.haxx.se/libcurl/? You may

Re: Possible patch about http custom header is used for proxy connection

2012-09-06 Thread Dan Fandrich
On Thu, Sep 06, 2012 at 04:37:05PM +0200, Daniel Stenberg wrote: I would like to introduce a complement to CURLOPT_HTTPHEADER that is used only for CONNECT requests. Called CURLOPT_PROXYHEADER or CURLOPT_CONNECTHEADER perhaps. The headers provided to CURLOPT_HTTPHEADER would then not be used

Re: Port from URI is not taken

2012-08-30 Thread Dan Fandrich
On Thu, Aug 30, 2012 at 06:30:03PM +, Sidde Gowda wrote: I have a port 8080 in the URI from where I am trying to fetch and store a file. But I see port 80 is taken from the logs. Do I need to use port option to specify? You can use the CURLOPT_PORT option, but the one in the URL should

Re: One or more libs available at link-time are not available run-time

2012-08-17 Thread Dan Fandrich
On Fri, Aug 17, 2012 at 11:59:45AM +0100, Jeremy Hughes wrote: Does 7.27.0 require additional libraries that aren't needed by earlier versions? Yes, it has optional features that can require new dependencies. You should still be able to disable those features in the configure script to return

Re: Wrong http request size calculation when uploading /proc/cpuinfo

2012-08-09 Thread Dan Fandrich
On Thu, Aug 09, 2012 at 11:13:13PM +0200, Florian Pritz wrote: So far I have only seen this happen for files read from some pseudo file system like /proc and those tend to be small. The same thing would happen, for example, on block devices, pipes or special character devices. I think you

Re: [Mageia-dev] What to use instead of /dev/usb/lp*

2012-07-25 Thread Dan Fandrich
On Wed, Jul 25, 2012 at 10:26:13AM -0700, Jeff Robins wrote: I'll give that a try. Is there a better/newer way to access the device? I'd like to update and fix the program if possible. Using cups would be the best. If the program is currently opening the lp device directly, then it might be

Re: [Mageia-dev] What to use instead of /dev/usb/lp*

2012-07-25 Thread Dan Fandrich
On Wed, Jul 25, 2012 at 03:27:52PM -0700, Jeff Robins wrote: I'm not sure if that will work. CUPS doesn't have a driver for the device and it's not really a printer. It just uses the USB printer class. It's used to cut shapes into or out of paper. This includes moving the blade up and

Re: HTTP Pipelining Contributions

2012-07-25 Thread Dan Fandrich
On Tue, Jul 24, 2012 at 03:01:26PM +, George Rizkalla wrote: The proposed algorithm involves balancing HTTP requests over multiple TCP sockets, while avoiding use of HTTP pipelining in instances where we believe errors are likely to occur, or where it is likely that there would be a

Re: Unable to send email with libcurl (cross compiled for arm) application

2012-07-24 Thread Dan Fandrich
On Mon, Jul 23, 2012 at 11:52:31PM -0700, usama yaseen wrote: yes previously ssl support was not enabled and https was not included in the protocols supported, i installed SSL from source and now my configure option is like this: ./configure --host=arm-none-linux-gnueabi --build=i686-linux

Re: Using libcurl in win32 DLL in MVSC 2010

2012-07-24 Thread Dan Fandrich
On Tue, Jul 24, 2012 at 09:51:09AM +0200, Bej Glee wrote: - Configuration properties-Linker-Input-Additional Dependencies: C:\cURL\ lib\Release\curllib.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib; comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;

Re: Using libcurl in win32 DLL in MVSC 2010

2012-07-23 Thread Dan Fandrich
On Mon, Jul 23, 2012 at 11:00:48AM +0200, Bej Glee wrote: I want to create a win32 DLL what use libcurl. My goal is: read a HTML page and get back as string. An external program (not C++) call this DLL, and get the HTML page in string. I want to create ONE dll which contains the necessary

Re: Unable to send email with libcurl (cross compiled for arm) application

2012-07-21 Thread Dan Fandrich
On Wed, Jul 18, 2012 at 06:38:25AM -0700, usama yaseen wrote: I am using libcurl for am-1808 running linux[i need to send emails with my c-program], i have compiled the libcurl successfully for arm and the sample application gets compiled successfully, but when i run this application on

Re: Library version.

2012-07-21 Thread Dan Fandrich
On Wed, Jul 18, 2012 at 12:45:13PM +0300, Slav wrote: Hello. I downloaded libcurl from http://curl.haxx.se/download/ curl-7.26.0.tar.gz, built it with c-ares using both approaches (with symlink to ares sources and using already built ares) but curl_version_info( CURLVERSION_NOW )-version =

Re: Porting libcurl on Android with SSL Support

2012-07-21 Thread Dan Fandrich
On Tue, Jul 17, 2012 at 11:39:00AM +0200, Tancho . wrote: On Tue, Jul 17, 2012 at 3:34 AM, Guenter li...@gknw.net wrote: there might be cases where you need such a makefile - different folks have different needs; unless Dan agrees it should be removed I think we keep it; and

Re: Library version.

2012-07-21 Thread Dan Fandrich
On Sat, Jul 21, 2012 at 11:24:01PM +0300, Slav wrote: Hmm, that's really so. I was ascerting that new (1.26) curl is successfully installed by removing all curl.so files from filesystem and after installation new curl.so appeared and compilation command is `g++ ./main.cpp -L/usr/local/ lib

Re: [Mageia-dev] [changelog] [RPM] cauldron core/release libsoup-2.39.4.1-1.mga3

2012-07-20 Thread Dan Fandrich
On Thu, Jul 19, 2012 at 11:36:02PM +0200, Nicolas Lécureuil wrote: in the devel ? i think a libsoup-l10n ( noarch package ) would be a better idea. This has been split into a -common package before, such as libexif12-common. Dan

Re: Unit tests with several responses

2012-07-20 Thread Dan Fandrich
On Fri, Jul 20, 2012 at 02:15:46AM +, Joe Mason wrote: dataNUM Send back this contents instead of the data one. The num is set by: A) The test number in the request line is 1 and this is the remainder of [test case number]%1. So I have sections data1, data2, data3, and in the

Re: [Mageia-dev] [changelog] [RPM] cauldron core/release libsoup-2.39.4.1-1.mga3

2012-07-19 Thread Dan Fandrich
On Thu, Jul 19, 2012 at 05:28:41PM -0400, Charles A Edwards wrote: On Thu, 19 Jul 2012 23:12:34 +0200 Olav Vitters wrote: file /usr/share/locale/be/LC_MESSAGES/libsoup.mo from install of lib64soup2.4_1-2.39.4.1-1.mga3.x86_64 conflicts with file fr om package

Re: configure: disable OpenSSL check

2012-07-16 Thread Dan Fandrich
On Mon, Jul 16, 2012 at 08:37:11PM +0200, pcworld wrote: I already successfully cross-compiled libcurl for a system running ARM. Now I'd like to add OpenSSL support by passing --with-ssl to configure, though there are some checks in the configure script that fail. Is there any way to disable

libexif project security advisory July 12, 2012

2012-07-16 Thread Dan Fandrich
e5990860e9ec5a6aedde0552507a583afa989ca2 libexif-0.6.21.zip ACKNOWLEDGEMENTS Mateusz Jurczyk of Google Security Team reported the issues CVE-2012-2812, CVE-2012-2813 and CVE-2012-2814. Yunho Kim reported the issues CVE-2012-2836 and CVE-2012-2837. Dan Fandrich discovered the issues CVE-2012-2840, CVE-2012

Re: how to force sslv3 using libcurl

2012-07-11 Thread Dan Fandrich
On Wed, Jul 11, 2012 at 05:26:19PM -0400, Anu Shrestha wrote: just doesn’t work for me. How do you force SSL version? Any order it needs to be in? It doesn’t matter what I set to I get the handshake error(below is the code) and it only tries connecting to SSLv3. It’s been 5 days trying to fix

Re: libcurl: Windows vs Mac

2012-07-11 Thread Dan Fandrich
On Wed, Jul 11, 2012 at 12:38:04PM -0700, Igor Korot wrote: Running on Mac/Cocoa this executes fine. When ran on Windows however, I am getting CURLE_WRITE_ERROR and the errorMsg contains: Failed writing body(1416 != 1460). This error occurs when the write callback returns an error. Are you

Re: Porting libcurl on Android with SSL Support

2012-07-05 Thread Dan Fandrich
On Thu, Jul 05, 2012 at 07:17:01PM +0200, Guenter wrote: Am 05.07.2012 15:37, schrieb Tancho .: 2. the script I'm using is actually just setting the environment and then calling the curl config script, it's based on the explanations in the Android.mk file comments by the dev team you mean the

Re: Session still remains even connection get closed

2012-07-04 Thread Dan Fandrich
On Wed, Jul 04, 2012 at 06:28:34PM +0530, Swamy Mudhbasalar wrote: I tried with CURLOPT_FORBID_REUSE option, the connection is getting close but session is still there. I can see the session active in vSphere Client UI I don't know what vSphere Client UI is, nor what you mean by session in

Re: Session still remains even connection get closed

2012-07-03 Thread Dan Fandrich
On Tue, Jul 03, 2012 at 11:19:36AM +0530, Swamy Mudhbasalar wrote: I am downloading many files from the server. I used persistent connection and reusing the session. After getting all the files closing the connection using curl_easy_cleanup. Problem is still am seeing a session active on

Re: using libcurl for HTTP PUT - but curl_easy_perform always returns CURLE_OK

2012-07-03 Thread Dan Fandrich
On Tue, Jul 03, 2012 at 05:35:33PM +0200, Pit Müller wrote: What is the official way for error handling here? Should i generally ignore the return value and always check only CURLINFO_RESPONSE_CODE? There are two levels of possible errors here: at the network level and at the HTTP level. The

Re: Chunked Transfer read callback pause

2012-06-30 Thread Dan Fandrich
On Sat, Jun 30, 2012 at 06:47:38PM +0500, Usman Raza wrote: Hello all, im using curl for chunked transfer in a separate thread, by reading from a buffer, could anyone tell me how could i pause it, so i could maybe switch to another thread (which will write to the buffer) and then switch back

Re: FTP response timeout

2012-06-28 Thread Dan Fandrich
On Thu, Jun 28, 2012 at 09:33:44AM -0700, Jeff McKay wrote: How would I find out if CURLOPT_TCP_KEEPALIVE is supported on my platform (Windows)? If you enable logging, you should see a message Failed to set SO_KEEPALIVE on fd X if setting keepalive failed on a recent libcurl. So, there would

Re: FTP response timeout

2012-06-27 Thread Dan Fandrich
On Wed, Jun 27, 2012 at 02:16:14PM -0700, Jeff McKay wrote: I have seen an earlier response to the question of what error #28 in ftp means but didn't quite understand it. Looking at the log of my ftp session, it appears that libcurl uploads the entire file (about 350 megs) based on the data

Re: [PATCH] blkid: recognize nilfs2

2012-06-26 Thread Dan Fandrich
On Tue, Jun 26, 2012 at 08:32:05AM -0700, Sven-Göran Bergh wrote: Adds support for nilfs2 to blkid. Enabled with CONFIG_FEATURE_VOLUMEID_NILFS. Since this is nilfs2, not nilfs1, most (all?) of the references to nilfs should probably say nilfs2 instead. + // The scondary superblock is not

Re: [Patch] Test for IPv6 cookies

2012-06-19 Thread Dan Fandrich
On Tue, Jun 19, 2012 at 12:08:30PM +, Ghennadi Procopciuc wrote: I've made a test case for problem signaled by Andrei Cipu (my supervisor)[0]. Can you take a look ? It does seem like a big oversight that there aren't any cookie tests over IPv6--this looks like a good addition. It looks to

Re: CURL_DISABLE_COOKIES and CURLOPT_VERBOSE

2012-06-19 Thread Dan Fandrich
On Tue, Jun 19, 2012 at 08:35:21AM -0700, Tom Bishop, Wenlin Institute wrote: As a relatively new user of libcurl, I made the silly mistake of trying to use cookies when CURL_DISABLE_COOKIES was defined. It took me a while to figure out what the problem was. To help others avoid the same

Re: Source code analysis of curl v7.26.0

2012-06-06 Thread Dan Fandrich
On Wed, Jun 06, 2012 at 01:11:04PM -0700, William Betts wrote: That was nice of you :). I'm guessing you'd want to send Daniel Stenberg an email off the list. I believe his email address is dan...@haxx.se. There's also the curl-security at haxx.se address, which goes to a small group of

Re: DELELE occurence error later

2012-06-01 Thread Dan Fandrich
On Fri, Jun 01, 2012 at 04:02:09PM +0200, M. Shinkaze wrote: Sorry for the late reply, I change the way to proceed but got an error CURLE_QUOTE_ERROR on the file FILE.txt to delete in the directory dir : firstly, I connect directly the the directory which contains the file to suppress :

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