Re: SMTP with TLS error handling

2015-06-04 Thread Adam
er/testing/smtp/ http://fm4dd.com/openssl/sslconnect.htm On Thu, Jun 4, 2015 at 3:32 PM, Adam wrote: > How can we know if it's a problem with your code if you don't post it? > Instead of writing paragraphs describing your code - just paste your code. > > I've just suc

Re: SMTP with TLS error handling

2015-06-04 Thread Adam
How can we know if it's a problem with your code if you don't post it? Instead of writing paragraphs describing your code - just paste your code. I've just successfully got a "Login Denied" ASCI string error message by connecting to smtp://smtp.office365.com:587 by calling curl_easy_strerror(res).

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Adam
url, CURLOPT_URL, "EXAMINE OUTBOX"); res = curl_easy_perform(curl); /* Check for errors */ if(res != CURLE_OK) printf("fuck\n"); /* Always cleanup */ curl_easy_cleanup(curl); } return (int)res; } On Wed, May 27, 2015 at 3:33 AM, Ray Satiro via curl-

Question regarding multiple IMAP operations

2015-05-26 Thread Adam
I have a very basic question. What is the proper way to send multiple IMAP commands? For example, first I'd like to get a listing of all the folder names, then I want to list the unread files in the folder names. I've tried using the same CURL* curl handle, sometimes it crashes on curl_easy_clean

Re: Erasing Memory Before Freeing

2015-05-22 Thread Adam
They can already ReadProcessMemory() and get the password. If you XOR the data, encrypt it, memset() it, whatever, etc, then they will hook curl_easy_setopt() (or the relevant function for whatever feature you're using), get the plain text credentials, and your extra code will be 100% useless. In

Re: DL curl 7.35 mingw32

2015-05-09 Thread Adam
Indeed Ray, the problem was my fault, I was using the wrong .dll's. Copy/paste 7.40 .dll's into the directory fixed it : ) Thanks! On Sat, May 9, 2015 at 5:08 AM, Michael Osipov <1983-01...@gmx.net> wrote: > Am 2015-05-08 um 14:46 schrieb Adam: > >> Disagree or not,

Re: DL curl 7.35 mingw32

2015-05-08 Thread Adam
Fri, May 8, 2015 at 9:22 AM, Daniel Stenberg wrote: > On Fri, 8 May 2015, Adam wrote: > > I need exactly curl-7.35.0-devel-mingw32. On 7.40, 7.33, amungst others - >> IMAP is NOT working, as has been well documented on these lists and >> stackoverflow. >> > > Sor

Re: DL curl 7.35 mingw32

2015-05-08 Thread Adam
link you sent. I need only 7.35. Thanks. On Fri, May 8, 2015 at 2:31 AM, Ray Satiro via curl-library < curl-library@cool.haxx.se> wrote: > On 5/7/2015 8:29 PM, Adam wrote: > >> Can someone please give me a download link to curl-7.35.0-devel-mingw32 >> (or any other versio

DL curl 7.35 mingw32

2015-05-07 Thread Adam
Can someone please give me a download link to curl-7.35.0-devel-mingw32 (or any other version with confirmed IMAP working) ? I would be most appreciative. Thanks you very much. --- List admin: http://cool.haxx.se/list/listinfo/curl-li

Re: 15 years

2013-04-07 Thread Adam Baxter
> Some 10,000 hours later, I still spend an average of more than one hour per > day working on curl... It's said you must spend 10 000 hours on a task to become a master ;) --- List admin: http://cool.haxx.se/list/listinfo/curl-librar

Equivalent of -U :

2013-01-03 Thread Adam Baxter
Hi, Is there a CURLOPT equivalent of setting -U to :? This is so I can use the Windows credentials when authenticating to an NTLM proxy - i.e. smartcard auth. Thanks, Adam --- List admin: http://cool.haxx.se/list/listinfo/curl

Problem in sending data to http server - threading related?

2012-09-01 Thread adam galarneau
rRequest.m_pMsg->m_strText.c_str()); filterRequest.m_nRunningHandles = 0; break; }; break; default: // doc says thats impossible ServerInstance->Logs->Log("DREAMWORLD", DEFAULT, "Something impossible happenned! (%d)", (int)pMessage->msg); break; }; pMessage = curl_multi_

Multipart form upload question

2012-07-29 Thread Adam Taylor
Hi, first time poster to this list. My company's utilizing libcurl to do some communication with web services. Specifically, we're trying to use the OS400 package. I realize that with the platform as relatively unknown as it is, I'm probably not going to find much specific help, but that's sort of

re: libcurl 7.25 / multi / win32

2012-05-23 Thread adam smith
ERBOSE, 1L); curl_easy_setopt(eh, CURLOPT_WRITEFUNCTION, adam_write_callback); curl_easy_setopt(eh, CURLOPT_DEBUGFUNCTION, adam_debug_callback); curl_easy_setopt(eh, CURLOPT_DEBUGDATA, 0L) Is this the correct way to get verbose output? Tha

libcurl 7.25 / multi / win32

2012-05-20 Thread adam smith
oment is : libcurl 7.25 (static library built from project file) win32 msvc10 Thanks in advance, Adam // // multi curl test // void adamTest() { curl_global_init(CURL_GLOBAL_ALL); CURLM *mh=curl_multi_init();

Re: questions regarding libcurl's multi interface

2011-10-20 Thread Adam Glick
tiple TCP packets, will the simultaneous requests/replies reassemble properly? Your advice is greatly appreciated. -- Adam -Original Message- On Wed, 19 Oct 2011, Jonathon wrote: Your top-posting makes it very hard to follow what you're talking about. I've unfolded some of t

Re: gss_init_sec_context() failed:: No credentials cache found

2011-08-23 Thread Adam Young
On 08/23/2011 06:01 AM, amitna...@gmail.com wrote: Hi, I am trying to collect windows event logs using libcurl from my linux box. I am using Negotiate authentication. But when i try to connect i am getting an error "gss_init_sec_context() failed: : No credentials cache found* Authentication

Re: Add command line option for Negotiate-Delegate

2011-08-12 Thread Adam Young
On 08/12/2011 05:09 PM, Daniel Stenberg wrote: On Fri, 12 Aug 2011, Adam Young wrote: Can you send me the patch? I tried applying from the web page, but I think it messes up the formatting. Even better, I've just pushed it as commit 5538904d775161d1a0fa. See https://github.com/bagder

Re: Add command line option for Negotiate-Delegate

2011-08-12 Thread Adam Young
On 08/12/2011 04:37 PM, Daniel Stenberg wrote: On Fri, 12 Aug 2011, Adam Young wrote: Now that libcurl once again has an option for delegating credentials in the GSSAPI, it is possible to re-enable this ability in the command line as well. Just as it the caller must now explicitly set the

Add command line option for Negotiate-Delegate

2011-08-12 Thread Adam Young
Now that libcurl once again has an option for delegating credentials in the GSSAPI, it is possible to re-enable this ability in the command line as well. Just as it the caller must now explicitly set the option CURLOPT_GSSAPI_DELEGATION in the call to Curl_gss_init_sec_context, it needs to be

[PATCH] A new option CURLOPT_GSSAPI_DELEGATION

2011-07-20 Thread Adam Tkac
alled CURLOPT_GSSAPI_DELEGATION. Comments are welcomed. Regards, Adam >From 639becd177d0bc3f81eb4b7afb69c55e5031d898 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Tue, 19 Jul 2011 19:10:43 +0200 Subject: [PATCH] Add new CURLOPT_GSSAPI_DELEGATION option. Curl_gss_init_sec_context got new parameter - Sessi

Re: use libcurl source files directly rather than link with library

2011-05-17 Thread Adam Light
e Macintosh but the Libcurl library will fail to compile on Windows. 10. Check in IgorSource/LibcurlSrc to make sure that you didn't accidentally copy any non-source code files such as Makefiles, .in files, Perl scripts (.pl), or shell scripts (.sh) into the Igor working copy. --

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

2010-11-23 Thread Adam Light
's exactly what I needed to know. Thanks again for your help. Adam --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

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

2010-11-22 Thread Adam Light
On Sat, Nov 20, 2010 at 11:45 AM, Dan Fandrich wrote: > On Sat, Nov 20, 2010 at 10:06:27AM -0800, Adam Light wrote: >> However my application is not setting any timeout options. I'm not >> sure if I'm "using" the timeout options though. So it's not cle

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

2010-11-20 Thread Adam Light
ot clear to me whether I should need to set CURLOPT_NOSIGNAL if I'm not setting any of the timeout options. Thanks for any help Adam --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Makefile.vc6 needs to be updated

2010-11-12 Thread Adam Light
It seems that there was a semi-recent addition of the xattr.c and xattr.h files in src. The Makefile.vc6 file was modified, but incorrectly. The attached patch fixes the problem on my system. Adam vc_makefile.patch Description: Binary data

Re: libcurl - simple.c

2010-10-27 Thread Adam Kellas
On 10/27/2010 2:58 AM, Pradeep Thomas wrote: Hi, //I tried to compile simple source code using libcurl using visual studio 2008, which is giving the following errors.// // // //Please provide some suggestions. I am also attaching am error log. // // // //>> [Linker error] undefined reference

Re: Want to contribute SMTP AUTH configuration

2010-10-15 Thread Adam Kellas
On 10/15/2010 8:14 AM, Michael Wood wrote: The only time I tried using OpenSSL on an embedded device, OpenSSL took up about 2MB of the 4MB flash! But of course embedded does not necessarily mean small. And "small" is also a relative term. I don't work in embedded environments and I haven't us

Re: SFTP download of > 2GB

2010-10-02 Thread Adam Kellas
On 10/2/2010 8:55 AM, Daniel Stenberg wrote: It seems that on _some_ servers we fail to download a file over SFTP if the file size is larger than 2GB but smaller than 4GB. The size then gets intepreted as negative and libcurl used to crash and now it bails out. But the question is: why does it cl

Re: Link error building curl.exe on Windows using VC9

2010-09-02 Thread Adam Light
On Wed, Sep 1, 2010 at 7:39 PM, Guenter wrote: > ok, just moved to end of setup.h where sys/stat.h should already be > included. > > Please verify! Yes, that works now for both 32 and 64 bit builds using VC9. Adam --

Re: Autobuilds and testcurl.pl on Windows

2010-09-01 Thread Adam Light
On Wed, Sep 1, 2010 at 3:30 PM, Guenter wrote: > Adam, > Am 31.08.2010 19:20, schrieb Adam Light: >> >> I copied config-win32.h to curl_config-win32.h and that fixed the >> original problem. > > that should no longer be needed since I changed testcurl.pl t

Re: Link error building curl.exe on Windows using VC9

2010-09-01 Thread Adam Light
the definition in config-win32.h doesn't actually fix the problem. I think that's because config-win32.h is included before sys/stat.h is included, and the S_IFREG and S_IFMT macros, which are used in the definition of S_ISREG, have not yet been defined. Adam -

Re: Autobuilds and testcurl.pl on Windows

2010-09-01 Thread Adam Light
On Tue, Aug 31, 2010 at 10:20 AM, Adam Light wrote: > [I described problems with using testcurl.pl with VC9 as the compiler] > So I tried doing the following: >  curl\test\testcurl.pl --target=vc9 > > This printed: >  "generate lib/Makefile.vc9" >  "generate s

Link error building curl.exe on Windows using VC9

2010-09-01 Thread Adam Light
(fileinfo.st_mode)) On Windows, the sys/stat.h header file does not define S_ISREG. However, it does define S_IFREG and S_IFMT. I've attached a simple patch which fixes the error on Windows. Adam define_S_ISREG_VisualStudio.patch Description: Binary

Re: Autobuilds and testcurl.pl on Windows

2010-08-31 Thread Adam Light
On Thu, Aug 19, 2010 at 4:27 PM, Guenter wrote: > Am 19.08.2010 21:03, schrieb Adam Light: >> >> But from what I can tell testcurl.pl has a bug in it that prevents it >> from working correctly on Windows. >> >> testcurl.pl started to run and then after prin

Re: VC9 libcurl compiler warnings (64 bit only)

2010-08-30 Thread Adam Light
ning C4244: '=' : conversion from 'curl_socket_t' to 'long', possible loss of data.]: On Fri, Jul 30, 2010 at 2:27 PM, Daniel Stenberg wrote: > On Sat, 24 Jul 2010, Adam Light wrote: > >> So SOCKET is a 64 bit type in 64 bit windows. > > Ouch. I've started

Autobuilds and testcurl.pl on Windows

2010-08-19 Thread Adam Light
g something it seems like this is a genuine bug in the script that should be fixed. Thanks Adam testcurl_windows_fix.patch Description: Binary data --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: Aborting from progress callback during connection doesn't work

2010-08-12 Thread Adam Light
On Tue, Aug 10, 2010 at 6:35 AM, Daniel Stenberg wrote: > On Mon, 9 Aug 2010, Adam Light wrote: > >> I assume this behavior is not intentional, and therefore a bug.  I'm not >> sure whether it's best fixed from singleipconnect() or Curl_connecthost(). > > I got

Autobuild ignored warnings link is dead

2010-08-12 Thread Adam Light
I noticed that on the Autobuilds information page (<http://curl.haxx.se/auto/howto.html>), the ignored warnings link towards the top of the page, which points to <http://cool.haxx.se/cvs.cgi/curl-www/auto/ignores?rev=HEAD&content-type=text/vnd.viewcvs-markup>

Aborting from progress callback during connection doesn't work

2010-08-09 Thread Adam Light
ether it's best fixed from singleipconnect() or Curl_connecthost(). Thanks Adam Light --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: Watcom makefiles - some more ...

2010-07-28 Thread Adam Kellas
On 7/28/2010 7:08 PM, Dan Fandrich wrote: alternately there just came another idea into mind: instead of using the \ as line continuation character (which is the prob with wmake) we could just do in Makefile.inc: CSOURCES = file1.c file2.c file3.c CSOURCES += file4.c file5.c file6.c I'm pretty

Re: VC9 libcurl compiler warnings (64 bit only)

2010-07-24 Thread Adam Light
On Sat, Jul 24, 2010 at 1:58 PM, Daniel Stenberg wrote: > On Fri, 23 Jul 2010, Adam Light wrote: >> connect.c(1084) : warning C4244: '=' : conversion from 'curl_socket_t' >> to 'long', possible loss of data >> This seems to be a problem

VC9 libcurl compiler warnings (64 bit only)

2010-07-23 Thread Adam Light
ion from '__int64' to 'long', possible loss of data These look like they are less of a problem since the conversion would only cause loss of data in cases where large amounts of data are being transferred. Thanks Adam --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: Problems with document root when retrieving files

2010-07-19 Thread Adam Kellas
On 7/19/2010 12:56 PM, Randy Zauhar wrote: Just to be concrete, my apache server is configured with document root /Library/WebServer/Documents/ArtemisDiscoveryWeb. If I use a browser, I can readily pull a file by simply entering the URL in the browser window: https://www.artemisdiscovery.com/foo.

Re: Using libcurl on Digi NET+OS

2010-07-17 Thread Adam Kellas
On 7/17/2010 5:50 PM, Matt Olcikas wrote: Hello, I want to write a program that sends XML files to an external web server using HTTP POST. The program will be run on an embedded device using Digi NET+OS. This OS does not have a built-in HTTP library, so I am thinking of using libcurl. AFAIK,

Re: 64-bit libcurl 7.20.1/7.21.0 hangs on AIX61in a calltocurl_multi_perform()

2010-07-07 Thread Adam Kellas
On 7/7/2010 5:01 PM, Alona Rossen wrote: Have you tried to eliminate --enable-debug from your configure settings? http://curl.haxx.se/mail/etiquette.html --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: h

Re: Couldn't Connect Error - Address already in use

2010-07-07 Thread Adam Kellas
On 7/7/2010 9:49 AM, Alfred Gebert wrote: At least this is a workaround. Perhaps I can modify my real codebase too. It's not a workaround, it's the way libcurl is intended to be used. Let's hope you can make the same change to your codebase. AK --

Re: Couldn't Connect Error - Address already in use

2010-07-07 Thread Adam Kellas
On 7/7/2010 6:21 AM, Alfred Gebert wrote: So in my opinion there is a limitation of libcurl running on Windows XP. This may be merely an artifact of the test case, and your conclusion about Windows XP seems correct, but I don't think you should need to create and destroy the handle each time

Re: OK, I need help

2010-07-01 Thread Adam Kellas
On 7/1/2010 2:26 AM, Donald Boissonneault wrote: #include "MakeFile.h" And please don't name a source file "MakeFile*" - you're just begging for confusion with actual Makefiles. AK --- List admin: http://cool.haxx.se/list/listi

Re: Problem run application from Local System Account - WindowsServer 2008

2010-06-16 Thread Adam Kellas
On 6/16/2010 6:55 AM, Hanan Brener wrote: Thanks for answer. We have get the last version curl-7.20.1 but encounter to compile in our Microsoft Visual C++ version 6.0 environment. We get error - curl-7.20.1\lib\setup.h(500) : fatal error C1189: #error : MSVC 6.0 requires 'February 2003 Plat

Re: can I limit the number of simultaneous transfers with the multi API?

2010-06-03 Thread Adam Kellas
On 6/3/2010 5:10 AM, Daniel Stenberg wrote: On Wed, 2 Jun 2010, Adam Kellas wrote: I check the multi handle to see if there's an "idle" easy handle. If so I use it, if not I create a new handle and add it to the stack. Thus, when doing 407 simultaneous transfers I may have 407

Re: can I limit the number of simultaneous transfers with the multi API?

2010-06-02 Thread Adam Kellas
On 6/2/2010 1:47 PM, Daniel Stenberg wrote: So how many easy handles do you add to the multi handle? Well, perhaps my whole design is wrong. What I do now involves no limits on the number of easy handles and no pre-allocation of handles as is done in the 10-at-a-time.c example. What I do is,

can I limit the number of simultaneous transfers with the multi API?

2010-06-02 Thread Adam Kellas
My application uses libcurl (7.20.1) to upload many files to a single dedicated server. The multi API is used for speed, and it works great. However, I've found that when the number of simultaneous transfers gets too large some data is lost at the server end (the test case that generates breaka