[Bug 712115] Re: Text of libexif Template “libexif-12” is incorrect

2011-02-02 Thread Dan Fandrich
knot is both a unit of speed and a unit of distance. Nautical miles may be slightly clearer here, but the context makes it obvious which meaning of knot is being used. Since the original text is what's used in the EXIF spec itself, I'm hesitant to change it. -- You received this bug notification

[PATCH] Let fbsplash display images even when a second buffer is active

2011-01-26 Thread Dan Fandrich
If a previous application uses double buffering and makes the second buffer visible, fbsplash's images (written to the first buffer) otherwise won't be visible. Signed-off-by: Dan Fandrich d...@coneharvesters.com --- miscutils/fbsplash.c |5 - 1 files changed, 4 insertions(+), 1

Re: how to post a huge size file

2011-01-26 Thread Dan Fandrich
On Wed, Jan 26, 2011 at 01:13:49PM -0500, Hwasoo Lee wrote: I'm trying to upload a huge file incresing as time goes, in other words the size is not determined, to a http server using POST request. My problem is since a file size is not determined and keeps growing, I have to post it to a

Re: Base64 encode and decode

2011-01-24 Thread Dan Fandrich
On Mon, Jan 24, 2011 at 06:49:30PM -0500, amit paliwal wrote: On Fri, Jan 21, 2011 at 2:16 PM, Daniel Stenberg dan...@haxx.se wrote: On Fri, 21 Jan 2011, amit paliwal wrote: On some earlier date, Dan Fandrich wrote this unattributed paragraph: libcurl base64-encodes

Re: Compiling curl for HP-UX 11.23 64bit

2011-01-21 Thread Dan Fandrich
On Fri, Jan 21, 2011 at 06:13:39PM +0100, Federico Cozzi wrote: I need to migrate an old libcurl-based program from HP-UX 11.11 32-bit to HP-UX 11.23 64-bit, both PA-RISC. The program was based on libcurl 7.16.2 which was compiled statically. I recompiled libcurl-7.16.2 from the old

Re: Maintaining the socket for the HTTP operation

2011-01-21 Thread Dan Fandrich
On Fri, Jan 21, 2011 at 02:15:03PM +0530, darshan.m...@wipro.com wrote: We have a application that needs to maintain the socket and perform HTTP operations. However using curl_easy_cleanup leads to closing the socket. We also tried to use curl_easy_reset however it is not working with the

Re: Base64 encode and decode

2011-01-20 Thread Dan Fandrich
On Thu, Jan 20, 2011 at 02:21:54PM -0500, amit paliwal wrote: As Curl provides many useful options to set with curl_easy_perform(), but I don't see any option that takes whether we want to apply Base64 encoding and decoding or not. There are API's available, which I can use from my

Re: Unit test architecture now added

2011-01-19 Thread Dan Fandrich
On Thu, Jan 20, 2011 at 01:47:57AM +0200, Amr Shahin wrote: so after using the framework, i think it would be cool to add a couple of stuff, mostly related to organizing/aggregating the tests, * maybe we should add the ability to run the unit tests without running the whole bunch of

Re: SMTP authentication

2011-01-14 Thread Dan Fandrich
On Fri, Jan 14, 2011 at 01:39:32PM +0100, Luca Matteis wrote: I am using an smtp server which requires authentication. The issue is that the username must be provided in the form of domain/user. I have this in my .muttrc: set smtp_url = smtp://domain/u...@somesmtpserver.com:587/

Re: Platforms with lengthy disconnection timeouts

2011-01-12 Thread Dan Fandrich
On Wed, Jan 12, 2011 at 09:19:45PM +, Philippe Lemoine wrote: We are using libssh2 1.2.4 with libCurl 7.18.2. What is the best approach to make libssh2 react very quickly upon a physical disconnection, in the case the platform on which we are running don`t detect those events immediately

Re: How to get compressed data?

2011-01-05 Thread Dan Fandrich
On Wed, Jan 05, 2011 at 06:59:33PM +0100, Felix E. Klee wrote: On Wed, Jan 5, 2011 at 6:52 PM, Felix E. Klee felix.k...@inka.de wrote: I'd like to instruct libcurl to *not* decompress compressed responses. Is this possible? Just a quick idea: * CURLOPT_ENCODING: NULL *

Re: [patch] Ignore specific IPs in connections

2011-01-05 Thread Dan Fandrich
On Wed, Jan 05, 2011 at 01:55:48PM +0100, Johan van Selst wrote: Curl already does automatic fail-over to another address if a connection is refused, but there is no way to connect to ignore a specific server in a DNS load-balanced setup when it is reachable. You can already provide this

Unit test setup failures

2011-01-05 Thread Dan Fandrich
There's a bit of an ambiguity in the way the unit test framework handles errors in unit_setup() and unit_stop()--there's no way to signal that a fatal error has occurred. The torture tests, for example, ensure that a curl_easy_init() call in unit_setup() will fail, so the first test that uses that

Re: TLS security in Curl

2011-01-04 Thread Dan Fandrich
On Tue, Jan 04, 2011 at 04:50:04PM -0700, Hu, Eric wrote: Also if I use above mentioned API's, and implement some custom protocol, will Curl take care of all HTTP protocol related issues, for e.g. HTTP redirect and handling of error codes??? I think the short answer here is also no, for

Re: curl unit testing

2011-01-02 Thread Dan Fandrich
On Sun, Jan 02, 2011 at 10:27:11AM +0100, Daniel Stenberg wrote: Right, it would certainly be an idea to have unit-tests link directly with the object file(s) of the functions we want to test. Or maybe just force the unit tests link against the static libcurl library. That should be enough to

Re: curl unit testing

2011-01-02 Thread Dan Fandrich
On Mon, Jan 03, 2011 at 12:32:47AM +0100, Pierre Joye wrote: I'd to say that tests should run on both static and dynamic versions of the library. Doing so will let us detect issues with one build or the other. That should not be too hard to do. Unfortunately, unit tests are impossible to run

Re: Windows CE

2010-12-28 Thread Dan Fandrich
On Tue, Dec 28, 2010 at 04:48:14PM +0100, Daniel Stenberg wrote: On Tue, 28 Dec 2010, Graeme Burton wrote: I want to test the library thoroughly to make sure it's working, and running ad hoc tests isn't really going to do an acceptable job. I can see that there are Perl scripts which perform

Re: http keep-alive when mongoose + libcurl

2010-12-24 Thread Dan Fandrich
On Fri, Dec 24, 2010 at 04:05:27PM +0800, Dannoy Lee wrote: Hi,    Dan,thank you for answer me so quickly.Here I try to make the things more specific.    First, I try persistant.c(I modified it a bit , see attachment) example with my modified mongoose http server without authentication and

Re: Automatic retry with server errors

2010-12-23 Thread Dan Fandrich
On Thu, Dec 23, 2010 at 03:49:48PM +0100, Johan van Selst wrote: How about an option such as CURLOPT_IGNORE_SERVER_IPS to pass a comma- separated list of addresses that should not be used for a connection? (Another option that already uses a comma-seperated list of server names is

Re: Gmail / SMTP +SSL

2010-12-23 Thread Dan Fandrich
On Fri, Dec 24, 2010 at 06:50:24AM +1100, Brad Hards wrote: On Friday, December 24, 2010 02:54:39 am Alona Rossen wrote: * FTP response reading failed * Closing connection #0 nothing left running. Isn't this supposed to be SMTP? Where is this FTP stuff coming from? This is an erroneous

Re: problems doing a HTTPS GET via an authenticating proxy when setting CURLOPT_MAX_RECV_SPEED_LARGE to 25k

2010-12-20 Thread Dan Fandrich
On Mon, Dec 20, 2010 at 03:26:42PM +, RODNEY ASHWORTH wrote: curl consistently hangs when trying to download a file from a server using https and an authenticating proxy. The file is some 200k and curl hangs when it has downloaded 32768 bytes. Has anyone else had problems in this

Re: Is it possible to connect to a https site without enabling an SSL implementation on top of libCurl?

2010-12-20 Thread Dan Fandrich
On Mon, Dec 20, 2010 at 07:02:21PM +, RHYS TWELVES wrote: I am trying to connect to an https:// secure site, but I have a protocol layer outside of libCurl which handles the SSL side of things. libcurl doesn't handle that kind of scenario. It takes care of the SSL protocol itself, using the

Re: http keep-alive when mongoose + libcurl

2010-12-20 Thread Dan Fandrich
On Tue, Dec 21, 2010 at 12:02:17PM +0800, Dannoy Lee wrote:     It seems mongoose handle keep-alive correctly.But when I use this feature to talk with libcurl(I use easy interface),libcurl will do select all the same after it receive response from server in the following funcion(transfer.c

Re: Libcurl 7.21.1 : EPSV message under Leopard and Snow Leopard

2010-12-13 Thread Dan Fandrich
On Mon, Dec 13, 2010 at 04:23:02PM +0100, Thomas Chavanis wrote: But the thing I don't understand is why a client under 10.5 and 10.6 have different behavior? It could be that the OS has different personal firewall settings between the two versions, or hand clients ports from different ranges.

Re: Newbie question

2010-12-09 Thread Dan Fandrich
On Thu, Dec 09, 2010 at 05:25:54PM -0300, Juan Carlos Franzoy wrote: Hello. Thanks for reading this message. I apologize if this is not the place for this question. We've been using libcurl for years in one of our libraries. It always worked as expected. But now we are facing a problem.

Re: Documentation Issue: WRITEFUNCTION, HEADERFUNCTION, et all vs man fwrite(3)

2010-12-09 Thread Dan Fandrich
On Thu, Dec 09, 2010 at 02:14:29PM -0800, John Utz wrote: So, based on the fwrite manpage, this function should be returning the value of nmemb, not size*nmemb as the curl manpages and sample code seem to suggest. It seems to me that both documents can not be correct. Am I misunderstanding

Re: Locking and multi on multiple connections.

2010-12-08 Thread Dan Fandrich
On Wed, Dec 08, 2010 at 08:43:40PM +0200, Michael Menegakis wrote: I notice an app I'm developing goes fine in terms of locking if requests are being done at least 0.5-1 sec apart. However, if 2 or 3 are done simultaneously there's high probability of a short lock. This is important in that

Re: Locking and multi on multiple connections.

2010-12-08 Thread Dan Fandrich
On Wed, Dec 08, 2010 at 11:03:23PM +0200, Michael Menegakis wrote: On Wed, Dec 8, 2010 at 10:20 PM, Dan Fandrich d...@coneharvesters.com wrote: What locks are you talking about here? libcurl doesn't use any locks by default (except when using NSS), and in a single-threaded application you

Re: Locking and multi on multiple connections.

2010-12-08 Thread Dan Fandrich
On Thu, Dec 09, 2010 at 12:46:43AM +0200, Michael Menegakis wrote: I said a lock, not a delay. The application is single threaded and on rapid simultaneous connections on the multi it may lock during the process. It also locks usually on the very first request. I suspect if I feed it a 'dummy'

Re: Locking and multi on multiple connections.

2010-12-08 Thread Dan Fandrich
On Thu, Dec 09, 2010 at 01:14:27AM +0200, Michael Menegakis wrote: On Thu, Dec 9, 2010 at 12:59 AM, Alan Wolfe alan.wo...@gmail.com wrote: Lock as in your computer freezes up and never comes back? Lock as in the multi documentation. The word lock does not appear in any of the curl_multi_*

Re: Can I rely absolutely on what happens when a process dies.

2010-12-07 Thread Dan Fandrich
On Tue, Dec 07, 2010 at 10:26:00AM +, David Collier wrote: I am struggling a bit with locating and sending signals to processes like udhcpc. I enabled the write your pid to this file option... but of course the file persists after the process dies... so if you look in the file for a

Re: axTLS support

2010-12-01 Thread Dan Fandrich
On Wed, Dec 01, 2010 at 03:31:36PM -0700, Hu, Eric wrote: I've read here on the archives that there exists a version of cURL that uses axTLS for SSL. Unfortunately, the last mention of it was in June 2009. The only other axTLS entries in the mailing list are from March 2009 and April 2008.

Re: CURLOPT_MAX_SEND/RECV_SPEED_LARGE rate limiting issue

2010-11-27 Thread Dan Fandrich
On Fri, Nov 26, 2010 at 02:34:05PM -0800, Sanaz Jahanbakhsh wrote: I have written an application that uploads content via HTTP and need to set the upload and download limit. I'm using libcurl 7.19.7 and compiling it on Ubuntu 1004 LTS, using gcc with default flags. In order to set the limit

Re: manipulating/testing file times.

2010-11-26 Thread Dan Fandrich
On Fri, Nov 26, 2010 at 12:29:27PM +0100, Denys Vlasenko wrote: On Fri, Nov 26, 2010 at 11:00 AM, David Collier Can anyone tell me if there is anything around as standard that might allow me to do the equivalent of touch /tmp/fred +3days plus3days=$(date '+%Y-%m-%d %H:%M:%S' -D '%s' -d

Re: udhcpd initial lease

2010-11-26 Thread Dan Fandrich
On Sat, Nov 27, 2010 at 07:48:44AM +1100, Grahame Jordan wrote: When using dhcpd on an embedded system after booting on some clients for example Windows7 it takes a long time to negotiate an ip address. In the case of Win7 it is insistent on using the previous IP address that it had at its

Re: udhcpd initial lease

2010-11-26 Thread Dan Fandrich
On Sat, Nov 27, 2010 at 08:48:09AM +1100, Grahame Jordan wrote: In this case only one client ever connects to the USB port. Otherwise what else can you do? Maybe accept the requested lease if it is not already taken? Yes, exactly. If the server is going to provide an address anyway

Re: Multiple multi-handles in multiple thread: what's the best practice

2010-11-25 Thread Dan Fandrich
On Thu, Nov 25, 2010 at 11:41:14PM +0800, Fei Yan wrote: We use multiple multi-handles by libcurl's multi-interface for HTTPS uploading on Solaris 10 server.Because of the performance costs on openssl's read/write (we need to transfer over 1000 files within 1 second, but the single threaded

Re: Problems with Windows Binaries

2010-11-25 Thread Dan Fandrich
On Thu, Nov 25, 2010 at 09:29:40PM +0100, Pierre Joye wrote: On Wed, Nov 24, 2010 at 9:04 PM, Dan Fandrich d...@coneharvesters.com wrote: On Wed, Nov 24, 2010 at 12:25:02PM +0100, Pierre Joye wrote: Yes, the CryptoAPI is crypto safe (in decent windows versions, xp sp1+ afair) and is also

Re: Applet for detecting the filesystem type.

2010-11-24 Thread Dan Fandrich
On Thu, Nov 25, 2010 at 08:08:54AM +0530, Sameer Naik wrote: The main reason why i need to detect the partition type before mounting is so that i can specify the iocharset mount option to the mount command. If i do not specify the charset, unicode characters do no work and iconv() calls in

Re: Need urgent help for HTTPS

2010-11-24 Thread Dan Fandrich
On Mon, Nov 22, 2010 at 05:37:06PM -0500, amit paliwal wrote: I am planning to use libcurl for my application. I am developing one proprietary protocol which will be communicating with server on top of HTTPS. Now I am not getting how can I make use of libcurl. If your proprietary protocol

Re: CURLOPT_WRITEFUNCTION blocking?

2010-11-24 Thread Dan Fandrich
On Mon, Nov 22, 2010 at 06:16:23PM -0600, Randy Schuster wrote: I'm forking a child that is using CURLOPT_WRITEFUNCTION. How do you block or wait until all of the data is written? I suspect the children processes are exiting before all the of data is received. If you're using the easy

Re: Example C++ code to read/pull an FTP file in small chunks

2010-11-24 Thread Dan Fandrich
On Mon, Nov 22, 2010 at 08:41:45PM -0500, Rich Chomiczewski wrote: I'm looking for some example C++ code to read an FTP file just like any other file i.e. read/pull the file in variable-length chunks.  Specifically, I need to implement an interface like this (without having to first download

Re: Need urgent help for HTTPS

2010-11-24 Thread Dan Fandrich
On Wed, Nov 24, 2010 at 11:01:56AM -0500, amit paliwal wrote: Step 3 and 4 can be achieved if we use server -sent events. These facilitates the server to send messages asynchronously. Now my question is how can I achieve it using libcurl, or can I achieve it or not. can it be done by

Re: Need urgent help for HTTPS

2010-11-24 Thread Dan Fandrich
On Wed, Nov 24, 2010 at 12:15:40PM -0500, amit paliwal wrote: Thanks Dan, so if I follow your words can my sequence of operations be like this: 1) DO HTTP GET by setting options and then doing curl_easy_perform(). This will send the initial message to server. This will not only send the

Re: LibCurl built with SSL says Unsupported Protocol

2010-11-24 Thread Dan Fandrich
On Wed, Nov 24, 2010 at 04:51:52AM -0500, Brett wrote: I have built LibCurl with openSSL 8 times over the last few days on Windows using the Makefiles and the MSVC project files. It has built correctly every time, but for some reason it is still not recognizing the HTTPS protocol in my

Re: Problems with Windows Binaries

2010-11-24 Thread Dan Fandrich
On Wed, Nov 24, 2010 at 12:25:02PM +0100, Pierre Joye wrote: Yes, the CryptoAPI is crypto safe (in decent windows versions, xp sp1+ afair) and is also used by openssl btw. See an example here: http://lxr.php.net/opengrok/xref/PHP_5_3/win32/winutil.c#52 If OpenSSL already uses this, then does

Re: Applet for detecting the filesystem type.

2010-11-23 Thread Dan Fandrich
On Tue, Nov 23, 2010 at 03:30:57PM +0530, Sameer Naik wrote: I am using busybox-1.15.2. I am writing a hotplug script for mdev to automount usb disk drives with ext2, ext3, vfat, ntfs-3g file systems. In my hotplug script i need to figure out the label of the disk partition as well as the

Re: App dies at curl_easy_perform (possibly related to connect.c)

2010-11-23 Thread Dan Fandrich
On Tue, Nov 23, 2010 at 09:13:51PM -0800, M D wrote: I'm using curl 7.2.1, zlib 1.2.5, and openssl 0.9.8o for this app. I hope that's a typo--version 7.2.1 dates from before the dawn of Man. On what platform is this? VERBOSE output merely gives a message similar to the following: * About

Re: Misterious URL behavior when using local variables to pass it

2010-11-23 Thread Dan Fandrich
On Tue, Nov 23, 2010 at 04:54:57PM -0500, Paulo Garcia wrote: I'm creating a C++ application (Windows 7 32 bits/VS 2010) and I'm having an interesting behavior. Basically I'm trying to grab files from depositfile.com directly. If I set my URL like this: char localUrl[MAX_FILEPATH];

Re: syslogd config

2010-11-22 Thread Dan Fandrich
On Sun, Nov 21, 2010 at 01:10:25PM +0300, Sergey Naumov wrote: I want to write a patch to implement restricted config support for busybox's syslogd, but as we keep size in mind, it is not good to keep several full file paths permanently (we need it because busybox's syslog reopens log file to

Re: name lookup timed out causes application to crash (possible regression)

2010-11-22 Thread Dan Fandrich
On Mon, Nov 22, 2010 at 05:09:21PM -0800, Adam Light wrote: Thanks for the information. I have changed my application to set CURLOPT_NOSIGNAL to 1 and I have used --enable-threaded-resolver when configuring on Mac OSX. Is there any documentation for --enable-threaded-resolver? I am not sure

[PATCH] Support set -o xtrace/noexec alternates for set -x/-n

2010-11-20 Thread Dan Fandrich
Signed-off-by: Dan Fandrich d...@coneharvesters.com --- shell/hush.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/shell/hush.c b/shell/hush.c index 36d73ce..d48e870 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -668,9 +668,19 @@ struct function

[PATCH] Fixed compile error with !CONFIG_HUSH_MODE_X

2010-11-20 Thread Dan Fandrich
Signed-off-by: Dan Fandrich d...@coneharvesters.com --- shell/hush.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/shell/hush.c b/shell/hush.c index d48e870..084e555 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -6494,7 +6494,7 @@ static int checkjobs_and_fg_shell

[PATCH] Document hush's command-line arguments

2010-11-20 Thread Dan Fandrich
Signed-off-by: Dan Fandrich d...@coneharvesters.com --- shell/hush.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/shell/hush.c b/shell/hush.c index 084e555..f55d1d2 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -245,9 +245,13 @@ //config:msh

Re: name lookup timed out causes application to crash (possible regression)

2010-11-20 Thread Dan Fandrich
On Sat, Nov 20, 2010 at 10:06:27AM -0800, Adam Light wrote: I am using the curl_easy interface. I am *not* setting CURLOPT_NOSIGNAL, and I am also *not* setting any timeout options (such as CURLOPT_TIMEOUT). My guess is that this crash is caused by a signal that is emitted. I suspect that I

Re: Timout in HTTP data transfer

2010-11-19 Thread Dan Fandrich
On Fri, Nov 19, 2010 at 06:25:02PM +0530, arnuld uttre wrote: On Fri, Nov 19, 2010 at 11:44 AM, Dan Fandrich It wouldn't surprise me if there's a bug in the app that closes the connection after 60 sec. instead of sending data, or perhaps Apache is closing the connection 60 seconds after

Re: behind the scenes of CURLOPT-commands?

2010-11-19 Thread Dan Fandrich
On Fri, Nov 19, 2010 at 01:31:43PM +0100, Bobo Wieland wrote: I need to do the equivalent of the following php-code using cURL directly: $ch = curl_init($posturl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,

Re: converting a VC++ code (that uses libcurl) into a dll to be used in windows mobile

2010-11-19 Thread Dan Fandrich
On Tue, Nov 16, 2010 at 01:16:42PM +0430, sheryl mathew wrote: I used libcurl for creating a client side in VC++ that would upload a file to a remote machine.The server side code is a php script. Well, the client side and server side is same as that described in this thread

Re: Timout in HTTP data transfer

2010-11-18 Thread Dan Fandrich
On Thu, Nov 18, 2010 at 01:13:30PM +0530, arnuld uttre wrote: I am using libcurl to receive some data from web server. I am using these options: curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl, CURLOPT_TIMEOUT, 100); I am already connected to the server hence do not

Re: Timout in HTTP data transfer

2010-11-18 Thread Dan Fandrich
On Fri, Nov 19, 2010 at 10:22:30AM +0530, arnuld uttre wrote: libcurl is waiting for the data from HTTP server, here is the output from CURLOPT_VERBOSE, Between Accept: */* and HTTP/1.1 200 OK its waits for 60 seconds only even when CURLOPT_TIMEOUT is set to 100L or 80L or 101L etc. But what

Re: Problems sending mail about smtp

2010-11-12 Thread Dan Fandrich
On Fri, Nov 12, 2010 at 09:23:29AM +0800, IJÁÖº£ wrote: Hello When I use smtp to send mail, there will be following the situation, before the use of no such situation, I think that not sending HELO to continue to the other¡£ This is the code I write, is there a mistake?

Re: multi-threads SFTP in libcurl

2010-11-12 Thread Dan Fandrich
On Fri, Nov 12, 2010 at 10:59:12AM +0800, SU Xing A wrote: It is not that libssh2 suddenly do wrong when go beyond 20 threads. It still happened but not often when less than 20 threads. This issue happened when we use libcurl/libssh2/openssl in multi-threads. It do not appear in

Re: application gets hanged in curl

2010-11-11 Thread Dan Fandrich
On Thu, Nov 11, 2010 at 07:27:01PM +0530, Manish Pohnekar wrote: We are using the curl library in c++ libraries our application is get hanged if the url is unable to load even after the timeout exceeds aproximake we are looking for setting such a way the even if the times to load url

Re: Patch: OpenSSL Server Name Indication value should match custom Host header

2010-11-06 Thread Dan Fandrich
On Fri, Nov 05, 2010 at 10:59:36PM +0100, Daniel Stenberg wrote: Okay, attached here is a first draft of what I had in mind. It seems to work to add entries. I tried with a command line like this: $ ./src/curl --resolve www.haxx.se:80:127.0.0.1 www.haxx.se -v What's the purpose of resolving

Re: is CURLOPT_FILE operation atomic?

2010-11-04 Thread Dan Fandrich
On Thu, Nov 04, 2010 at 01:29:39PM -0400, German Escallon wrote: My application continuously downloads several XML files through cURL FTP methods at a certain interval (say once every hour). Also, another process reads those files and performs operations on them (read, mv, cp, etc) at a

Re: Need to build libcurl(libcurl.so) with a different library name(libxxx_curl.so)

2010-11-02 Thread Dan Fandrich
On Tue, Nov 02, 2010 at 02:12:14PM +0530, Parthasarathi Ilangovan wrote:   We are trying to package the default libcurl.so library for our organization with a different name libxxx_curl.so(to avoid conflict) . There are no changes made to the source.  Renaming the default libcurl.so.4 into

Re: bunzip2 fails to decompress pbzip2-compressed files

2010-10-29 Thread Dan Fandrich
On Thu, Oct 28, 2010 at 11:10:35PM +0200, Denys Vlasenko wrote: On Friday 22 October 2010 20:07, Dan Fandrich wrote: pbzip2 is a parallel bzip2 compressor that uses multiple threads while compressing to linearly speed bzip2 compression by the number of cores available (see http

Re: AW: Fail to login with libshh2

2010-10-28 Thread Dan Fandrich
On Thu, Oct 28, 2010 at 03:28:07PM -0700, SIFE Abdelrazak wrote: I found the type of authentication is keyboard-interactive, Now I am in documentation and I see this protype function: #include libssh2.h int libssh2_userauth_keyboard_interactive_ex(LIBSSH2_SESSION *session, const char

Re: libcurl to download 0 size file

2010-10-28 Thread Dan Fandrich
On Thu, Oct 28, 2010 at 04:54:27PM +0800, CHEN Xiaolei A wrote: I am using libcurl to download 0 size file from a SFTP server ( file size 0 is OK ), but always failed for CURLE_TOO_MANY_REDIRECTS (libcurl error code 47). My environment: OS:Solaris 10    Tools:

Re: Problems with Windows Binaries

2010-10-28 Thread Dan Fandrich
On Thu, Oct 28, 2010 at 09:46:22PM +0200, David Graf wrote: The problem occurs actually during the initialization. OpenSsl insists on getting part of the RNG entropy using the desktop on Windows. This operation can be very slow, even worst if the user running this process has

libssh2 test failure

2010-10-25 Thread Dan Fandrich
The second of the two libssh2 self-tests is now failing for me. I've tried it on x86 Linux with both gcc 4.2.2 and OpenWatcom C 1.9, and with both OpenSSL 0.9.8e and GnuTLS 2.8.3, using OpenSSH 4.7p1 as the test server. git bisect points to commit c48840ba as the culprit: _libssh2_transport_send:

Re: curl gives 502 after 5 minutes; IE does not; and using IE first - then curl works... (downloading intranet report that is large)

2010-10-21 Thread Dan Fandrich
On Thu, Oct 21, 2010 at 02:24:38PM -0400, Ferraro, Drew(Citco) wrote: I can use my ?purl? script to download smaller reports ? but bigger ones will hang at the third bulletpoint, for 5 mintes, and then give a HTTP 502 once the counter hits? If the server is responding 502 to these

Re: How to close a connection to a server,

2010-10-21 Thread Dan Fandrich
On Thu, Oct 21, 2010 at 11:58:36PM +0530, Shivanand wrote: I want to open a new connection each time. I cant use easy_cleanup because I want to retain other options set on easy handle. IS there any way to close the connection with the server without calling clean up? Look at the

Re: example code for using CURLOPT_WILDCARDMATCH for listing files in a directory?

2010-10-20 Thread Dan Fandrich
On Wed, Oct 20, 2010 at 12:47:11PM -0700, John Utz wrote: ftp-wildcard.c seems to be about downloading files based on a wildcard match. i wish to simply *list* files in a directory so that i can figure out which one i should download. Based on my reading of the docs, CURLOPT_DIRLISTONLY

Re: Fixed the original, code still throwing exceptions.

2010-10-20 Thread Dan Fandrich
On Wed, Oct 20, 2010 at 06:57:56PM -0400, Alexander Tairbekov wrote: 1main.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function void __cdecl Func(void) (?Func@@YAXXZ) http://curl.haxx.se/docs/faq.html#Link_errors_when_building_libcur Dan

Re: Listing many many files in dir with pattern matching

2010-10-20 Thread Dan Fandrich
Mehmet Bozkurt wrote: Today I use CURLOPT_WILDCARDMATCH when I want to list files in a directory according to a given pattern, such as *.txt. CURLOPT_WILDCARDMATCH isn't used for that, only for downloading multiple files. John Utz asked the identical question today; please refer to that

Re: static linking problem

2010-10-19 Thread Dan Fandrich
On Tue, Oct 19, 2010 at 07:44:29AM +0100, may nothing wrote: Ok, my line now looks like: gcc -Wall -I/usr/include -I/usr/local/include -static sftptest.c -o sftptest -lssh2 -lssl -lcrypto -ldl -lz -lcrypto ... it just thows me one warning:

Re: can libcurl be told that i would like to perform an entire directory listing in one callback call?

2010-10-19 Thread Dan Fandrich
On Mon, Oct 18, 2010 at 06:54:37PM -0700, John Utz wrote: I have a few large directories to parse and i am noticing that on some of them my writecallback get's called multiple times. Is this something that i can force to not happen? Yes, i understand that this has the ability to block

Re: c++ curl copy source of webpage to txt code not working

2010-10-19 Thread Dan Fandrich
On Tue, Oct 19, 2010 at 09:00:39PM -0400, Alexander Tairbekov wrote: I am trying to write code that copies the source of a webpage to a txt file. The code is not working for me, it is in the attachment. It's not complete code; there are parts (like the definitions of translated and fp are

Re: static linking problem

2010-10-18 Thread Dan Fandrich
On Tue, Oct 19, 2010 at 12:08:51AM +0100, may nothing wrote: The order of arguments makes a difference. Try this order: gcc -Wall -I/usr/include -I/usr/local/include -static sftptest.c -o sftptest /usr/local/lib/libssh2.a and since you have already have -static there, this ought to

Re: Turning off DNS Caching of Failed Connections

2010-10-13 Thread Dan Fandrich
On Wed, Oct 13, 2010 at 01:29:44PM -0400, Matt Marken wrote:    I am running into an issue where failed name resolutions are being cached by curl even though I have DNS_CACHE_TIMEOUT set to not cache results. (and have tried all other permutations and all options that looked even vaguely

Re: Removing directory from ftp server

2010-10-12 Thread Dan Fandrich
On Sun, Oct 10, 2010 at 09:53:53PM +0530, bhuvanagiri wrote: RMD fails to delete the directory if it is not empty. I want to delete the directory, its sub-directories and contents inside. How can this be done through curl? I don't believe that recursive delete is specified in RFC959. There may

Re: Disabling compression by API?

2010-10-09 Thread Dan Fandrich
On Sat, Oct 09, 2010 at 12:54:54PM +0200, Tor Arntsen wrote: Shrink to half is normally only true for text. Almost all the data I transfer is some kind of binary data, and it doesn't compress nearly as well. The satellite data I transfer compresses somewhere between 0 % (SAR data) and 10-15%

Re: ctime support on SFTP subsystem

2010-10-05 Thread Dan Fandrich
On Tue, Oct 05, 2010 at 12:19:13PM -0300, Ezequiel Ruiz wrote: I'm wondering if it would be possible to add ctime support for the _LIBSSH2_SFTP_ATTRIBUTES file attributes. Is this unsupported for some reason? (I mean, only atime and mtime are listed in there). You can't change ctime to an

Re: [PATCH] Marked some more applets NOEXEC/NOFORK

2010-10-01 Thread Dan Fandrich
I marked unix2dos as NOEXEC but forgot about dos2unix. This patch adds that one, too. Dan From 6e4fd24e4ef025fae3a4f26ce976ee45d396875a Mon Sep 17 00:00:00 2001 From: Dan Fandrich d...@coneharvesters.com Date: Thu, 30 Sep 2010 14:31:12 -0700 Subject: [PATCH] Marked some more applets NOEXEC

Re: Is there a canonical callback implementation for 'remote thingy exists'?

2010-10-01 Thread Dan Fandrich
On Fri, Oct 01, 2010 at 02:34:33PM -0700, John Utz wrote: My limited understanding of libcurl leads me to conclude that to create a 'remote file or directory exists' function i want to create a 'do nothing' callback. The docs indicate that it should return a number different then what is

[PATCH] Marked some more applets NOEXEC/NOFORK

2010-09-30 Thread Dan Fandrich
Signed-off-by: Dan Fandrich d...@coneharvesters.com --- coreutils/cksum.c|2 ++ coreutils/dos2unix.c |2 ++ coreutils/fold.c |2 ++ coreutils/head.c |2 ++ coreutils/id.c |2 ++ coreutils/md5_sha1_sum.c |2 ++ coreutils/mkfifo.c

Re: two different error codes,

2010-09-29 Thread Dan Fandrich
On Wed, Sep 29, 2010 at 12:38:41PM +0530, Pavan Kumar Kakunoori wrote: Hello Team, When the application is into error state, where if the file is not found, we observed a vague behaviour. The cURL lib is returning two distinct error codes depending on if application is using ftp or sftp. for

Re: two different error codes,

2010-09-29 Thread Dan Fandrich
On Wed, Sep 29, 2010 at 01:34:59PM +0530, Pavan Kumar Kakunoori wrote: Thanks for the response.Lets suppose we removed a file intensionally and tried to test the same with ftp and sftp respectively. Ideally the same error code should be reported. But here it is not. I just tried it on this

Re: URL Encoding issues

2010-09-28 Thread Dan Fandrich
On Tue, Sep 28, 2010 at 02:50:44PM -0430, MigueL DíaZ wrote: Characters - _ . and ~ should not be encoded as specification says (http:// tools.ietf.org/html/rfc3986#section-2.3) By now I'm patching the result from curl_easy_escape by manually converting back the encoded version of those

Re: [PATCH] Fix error message display for rmmod

2010-09-27 Thread Dan Fandrich
On Sat, Sep 25, 2010 at 02:40:52PM +0200, Denys Vlasenko wrote: Is this a problem? Standard modprobe -r doesn't work at all with empty /lib/modules/`uname -r`/. This is simply is not a supported way of using modules. That may be a limitation of modprobe -r, but it's quite unexpected with

Re: insmod not working by module name in Linux 2.4.30 / MIPS

2010-09-27 Thread Dan Fandrich
On Mon, Sep 27, 2010 at 09:40:05PM +0100, RiCH Busybox wrote: modprobe works fine loading/unloading, using just the module name modinfo works fine just using module name rmmod works fine just using module name insmod doesn't work using the module name (however it does in busybox = 1.0.1)

Re: libcurl loop

2010-09-24 Thread Dan Fandrich
On Fri, Sep 24, 2010 at 02:38:13PM -0400, Tyler Brock wrote: Would it be alright to post the verbose curl output or attach it as a file? I can't make heads or tails of what is going on... Any help would be great. You can do that, but you're the one who knows what your app is supposed to send,

Re: Resume download with libcurl

2010-09-23 Thread Dan Fandrich
On Thu, Sep 23, 2010 at 04:09:08PM +0200, Thomas Chavanis wrote: I found an example of resume failed transfer for the upload part : http:// curl.haxx.se/libcurl/c/ftpuploadresume.html But, is it possible to resume a download failed transfer? If it is possible, how can we do that with

Re: libcurl loop

2010-09-23 Thread Dan Fandrich
On Thu, Sep 23, 2010 at 03:12:55PM -0400, Tyler Brock wrote: Still not working, used all of the provided advice in order to change the loop. Any more ideas? Most recent version below: The CURLOPT_COOKIESESSION parameter should be a long, not a string. But the CURLOPT_COOKIELIST option should

Re: libcurl loop

2010-09-23 Thread Dan Fandrich
On Thu, Sep 23, 2010 at 04:11:09PM -0400, Tyler Brock wrote: OK I'll try enabling verbose and working with that. However, for CURLOPT_COOKIESESSION why a long instead of unsigned int? doesn't it need to be a bool? RTFM: Pass a long set to 1 to mark this as a new cookie session. None of the

Re: libcurl loop

2010-09-22 Thread Dan Fandrich
On Tue, Sep 21, 2010 at 10:10:20PM -0400, Tyler Brock wrote: I'm trying to use curl to login and retrieve information from a couple of web pages in a loop using a two step process. The first curl logs in to the page. The second curl takes the same curl handle and gets another page which is

Re: libcurl loop

2010-09-22 Thread Dan Fandrich
On Wed, Sep 22, 2010 at 10:57:39AM -0400, Tyler Brock wrote: Dan, I think you are right and that this is the root of the issue. How do I ensure the cookies are new on each run and I'm not caching the old ones? You want CURLOPT_COOKIELIST (or CURLOPT_COOKIESESSION). Dan

Re: How to Download an attachment from the URL

2010-09-22 Thread Dan Fandrich
On Wed, Sep 22, 2010 at 10:15:38PM -0400, bharadwaj nagendra wrote: I am trying to download a .gz file from a website. I am using cURL for web scrapping. I am last step in my process to download the report. curl command-line questions should really be directed to the curl-users list. when I

Re: Accept-Ranges problem on 7.17.1

2010-09-20 Thread Dan Fandrich
On Mon, Sep 20, 2010 at 05:34:32PM +0800, Hou-xiang ZHU wrote: As you can see, the server indicate it Accept-Ranges:bytes now, but in reality it doesn't, when clients send the following message, it will generate 404 not found error, something like this. - Host:

<    7   8   9   10   11   12   13   14   15   >