"Companies Using curl .."

2021-03-02 Thread Gisle Vanem via curl-library
Something for: https://curl.se/docs/companies.html 'Ashampoo Technology GmbH Co. KG' is using libcurl via 'ash_libcurl.dll'. Ref: https://www.pconlife.com/viewfileinfo/ash-libcurl-dll/ Found out since I just installed Ashampoo Backup and was quite impressed with it. -- --gv

Re: Feature-Request: sendfile(2)

2021-02-25 Thread Gisle Vanem via curl-library
Emil Engler wrote: However implementing this syscall also raises some problems, including limited support. AFAIK only Linux and FreeBSD support this syscall (maybe even macOS as it inherited a lot from FreeBSD). FYI, Windows has a similar 'TransmitFile()' function:

Re: libcurl hang

2020-10-21 Thread Gisle Vanem via curl-library
MS wrote: 1) Using libcurl without a proxy, the verbose options shows "Trying ip address" and nothing else. If restricted to IPv4 it shows only one line. If IPv6 is permitted, I get a first response that network is not reachable and then a second response "Trying ..." which hangs. Some

Re: static libcurl with clang

2020-03-22 Thread Gisle Vanem via curl-library
Ray Satiro wrote: most of that but you may have to specify some on your own such as ws2_32. If the functions it can't find are CRT functions then that is an issue with your project and not libcurl. Maybe it's an idea to add something like: #if defined(_MSC_VER) && defined(CURL_STATICLIB) &&

Re: Missing bcrytp.dll when running Watcom compiled Libcurl program on XP.

2019-07-03 Thread Gisle Vanem via curl-library
Dan Gribble wrote: I have copied libcrypto-1_1.dll and libssl-1_1.dll (from openssl 1.1.1c) to my application directory in order to run the compiled application, but other than that I have not done anything else. You have to rebuild OpenSSL with a '_WIN32_WINNT' value suitable for Win-XP

Re: curl turns 21 years today

2019-03-20 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote: Today it is exactly 21 years since the first curl version was released!  https://daniel.haxx.se/blog/2019/03/20/happy-21st-curl/ BTW. Incidently, today is also 'Spring Equinox' which was also true in 1998:

Re: docs: curl-related videos

2019-01-31 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote: If you know of other video presentations that would be suitable to add to this page, please let us know. A more recent 2017 Gource Visualization of curl's evolution on GitHub: https://www.youtube.com/watch?v=JBcwjycnZE0 There are others too. Search for "gource

Re: Successfully build after 2 week struggle but...!

2019-01-25 Thread Gisle Vanem via curl-library
Himanshu Rastogi wrote: My configuration: *Included Library:* /libssl, libssh2, zlibwapi, libcrypo, nghttp2, Ws2_32, Wldap32, Normaliz, winmm./ /*CFLAGS : /*MT/ *Preprocessor macro: *CURL_STATICLIB *Compiler: VC15* *BUT!* After all these configuration it still show error messages like: *BUILD

[Win32] Fix for compiling with lwIP

2018-10-22 Thread Gisle Vanem via curl-library
I tried creating a Pull-Request on Github. But got a: Pull request creation failed. Validation failed: A pull request already exists for curl:lwip-patch. So here it is the old way: Compiling on Windows (`_WIN32`) with `USE_LWIPSOCK`, causes this error: curl_rtmp.c(223,3): error: use of

Re: Using A Different Socket For Requests

2018-08-22 Thread Gisle Vanem via curl-library
Isaiah Banks wrote: I'm sure this question has been asked before, but in doing some online research I have not found a good answer. What I'd like to do is create a custom socket for all curl requests to go through within a web application. I'm creating this socket within Python application

Re: Retrieve all addresses mapped to specific host, not just one IP

2018-08-14 Thread Gisle Vanem via curl-library
myLC--- wrote: Prioritization (which IPs libcurl should favor) might become an issue then. "should favour" how? Based on what; that IPv6 is better/speedier than IPv4, or some addresses based on Geo-location is best? libcurl knows zero about this. It would be cool if it did though. In fact

Re: Retrieve all addresses mapped to specific host, not just one IP

2018-08-13 Thread Gisle Vanem via curl-library
myLC---wrote: at the source. Unless I'm mistaken, you are using a renamed addrinfo struct on the inside. Could it lead to problems with multiple threads, if you simply passed a pointer to that (chain of) struct(s) via curl_easy_getinfo? It's copied to an internal structure inside

Re: Retrieve all addresses mapped to specific host, not just one IP

2018-08-11 Thread Gisle Vanem via curl-library
myLC---wrote: I would like to know how we can retrieve all the IP addresses which are mapped to a host. Assuming we have the URL https://example.buzz/bingo_results/ and assuming further that there are 5 addresses mapped to this hostname: 10.0.0.11, 10.0.0.12, 10.0.0.13,

Re: Windows users! Help us test upload performance tuning?

2018-08-09 Thread Gisle Vanem via curl-library
Jan Ehrhardt wrote: Wow dude! 2 times faster than FileZilla now. Time decreased from 33.153s to 6.4 sec (same random 10 MByte file). Versus approx. 5.3 sec for curl/FTP. Using SFTP? Yes: curl.exe -k -# --write-out "speed: %%{speed_upload} bytes/sec, total-time: %%{time_total}" ^

Re: Windows users! Help us test upload performance tuning?

2018-08-09 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote:  /* The upload buffer size, should not be smaller than CURL_MAX_WRITE_SIZE, as     it needs to hold a full buffer as could be sent in a write callback */ -#define UPLOAD_BUFSIZE CURL_MAX_WRITE_SIZE +#define UPLOAD_BUFSIZE (512*1024) Wow dude! 2 times faster than

Re: Windows users! Help us test upload performance tuning?

2018-08-09 Thread Gisle Vanem via curl-library
Jan Ehrhardt wrote: 33.153s vs 5.4s for a 10 MByte file. Did you time how long Filezilla takes for the same action? Filezilla squeezes quite a lot over sftp-connections... 11.4 sec!! From the "About" box: Version: 3.31.0 Build information: Compiled for:

Re: Windows users! Help us test upload performance tuning?

2018-08-08 Thread Gisle Vanem via curl-library
Jan Ehrhardt wrote: I ended up with a Windows port of lftp, launched from a bash script. Curl sftp did resume, but was terribly slow. I also just tested with 'curl sftp//:' with the latest libssh2 and the new 'SIO_IDEAL_SEND_BACKLOG_QUERY' option. 'sftp://' is still 6 times slower than ftp

Re: Windows users! Help us test upload performance tuning?

2018-08-04 Thread Gisle Vanem
Jan Ehrhardt wrote: Timed by ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/ Copyright(C) 2002, Jem Berkes I tried this tool too, as (inside a 'upload-speed.bat'): ptime.exe -- curl.exe -# --output - -w"speed:%%{speed_upload} bytes/sec\n" %URL% -T %TEST_FILE% But always got

Re: Windows users! Help us test upload performance tuning?

2018-08-04 Thread Gisle Vanem
Daniel Jeliński wrote: Besides the 'test' data-file gives the wrong picture under a VPN-connection. With PPTP/L2TP compression I believe VPN operates on a lower level than TCP, so send buffer usage will not be affected by VPN compression. But you could see speeds faster than what your ISP

Re: Windows users! Help us test upload performance tuning?

2018-08-02 Thread Gisle Vanem
Marcel Raad wrote: Microsoft Windows [Version 10.0.16299.547] generating test file... running vanilla... start:0,656000 total:4,844000 running patched... start:0,516000 total:1,797000 Very good improvement on http here: Microsoft Windows [Version 10.0.17134.191] generating test file...

Re: 7.61.0 winbuild problems

2018-07-24 Thread Gisle Vanem
Konstantin Vlasov wrote: I'm not yet sure how it happened that ERRORLEVEL was non-zero by the time gen_resp_file.bat was started. Even when it is 0 before I run nmake, it becomes 1 when the $(MODE) rule starts to execute. But even putting that question aside, this is not right to check an exit

Re: curl errors to symbol string functions? was Re: libcurl smtp error list?

2018-06-29 Thread Gisle Vanem
Richard Gray wrote: we can add the symbol   XYZ037 Frambastat could not be initialized, errno = 226 (EADDRINUSE) which is more meaningful, particularly given that the higher errno values are different on different platforms.  We could use strerror(), but it's messages are much longer and

Re: libcurl smtp error list?

2018-06-29 Thread Gisle Vanem
Daniel Stenberg wrote: I've cooked up this GNU-makefile that generates such a list:  https://gist.github.com/gvanem/4290a4c74ac75983928502303cb4c0c2 Cool. I didn't try it yet, but wanted to mention that an alternative to grepping the header file could be to extract the symbols from

Re: libcurl smtp error list?

2018-06-29 Thread Gisle Vanem
Deven wrote: This makes testing really difficult, unless you know the internals of libcurl. And if the return codes change across releases, then handling errors (to provide error feedback to the user) across different libcurl versions becomes impossible. I cannot help you with this problem.

Re: SMB: unable to upload file to a subfolder: remote file not found

2018-05-23 Thread Gisle Vanem
Ivan Pilipenko wrote: Also, it seems that SMB1 support is being phased out (disabled starting with win10 1709, apparently), so sadly, in its current state it means that we can not use curl for SMB support. True, but you could just reinstall SMBv1 by running:

Re: Periodic DNS issues

2018-03-13 Thread Gisle Vanem
Daniel Stenberg wrote: What _can_ make a difference in comparison to other tools you try with however, is the life-time of your application. A known problem without a satisfying solution to yet, is the "updated DNS server while running" problem, as documented in the TODO here:  

curl / libcurl CHM-file

2018-01-24 Thread Gisle Vanem via curl-library
I've created a GNU-makefile to generate a single Compressed HTML file (curl.chm) from all 'curl/docs/*.1' and 'curl/libcurl/*.3' files. It's here (curl-roffit-chm.make): https://gist.github.com/gvanem/a50fc9457593b571d5190bdbe30fe1a4 And it uses Daniel's 'roffit' Perl-script:

AF_UNIX comes to Windows

2018-01-17 Thread Gisle Vanem via curl-library
According to this blog, AF_UNIX comes to Windows 10: https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/ This feature has no connection to the "Windows Subsystem for Linux (WSL)". (WSL already has AF_UNIX support). I see the libcurl code has most of it's test

Re: AW: Problem/Crash with libCurl Daily Snapshot and Option CURLSHOPT_SHARE and Parameter CURL_LOCK_DATA_CONNECT

2017-11-29 Thread Gisle Vanem via curl-library
Patrick Dawson wrote: static void ShareLockFunc( CURL* pHandle, curl_lock_data Data, curl_lock_access Access, void* pUseptr ) { ... } static void ShareUnlockFunc( CURL* pHandle, curl_lock_data Data, void* pUseptr ) { ... } Vanem, Gisle wrote: What are these used for? In my understanding

Re: Problem/Crash with libCurl Daily Snapshot and Option CURLSHOPT_SHARE and Parameter CURL_LOCK_DATA_CONNECT

2017-11-28 Thread Gisle Vanem via curl-library
Dawson, Patrick wrote: static void ShareLockFunc( CURL* pHandle, curl_lock_data Data, curl_lock_access Access, void* pUseptr ) { ... } static void ShareUnlockFunc( CURL* pHandle, curl_lock_data Data, void* pUseptr ) { ... } What are these used for? I assume if you compile with MSVC, that

Re: Adding QUIC support to curl

2017-10-31 Thread Gisle Vanem via curl-library
Lucas Pardue wrote: Some nice discussion going on, just wanted to bump the visibility of the curl QUIC wiki page. Whoops, the page is located at https://github.com/curl/curl/wiki/QUIC. That lists: ngtcp2 (C-library) MozQuic (C++ library) quicly (C-library) LiteSpeed QUIC client

Re: Enabled multiple SSL backends

2017-08-30 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote: On Tue, 29 Aug 2017, Gisle Vanem via curl-library wrote: works perfectly. But with a "set CURL_SSL_BACKEND=cyassl" it does not:  curl: (35) SSL_connect failed with error -313: revcd alert fatal error I'm looking into it here. Okay. If you get stuck and

Re: Enabled multiple SSL backends

2017-08-29 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote: To build with multiple backends, just specify all you want on the configure line. Ie "--with-ssl --with-gnutls" builds with both OpenSSL *and* GnuTLS. Tell configure which backend to use by default when built to use several, with --with-default-ssl-backend. I tried

Comments in _netrc

2017-08-02 Thread Gisle Vanem via curl-library
For testing, I needed to comment out a line in my '%HOME/_netrc' file. Like: #machine tablet-pc login foo password bar1 machine tablet-pc login foo password bar2 I was surprised to see that curl/libcurl even with this edit, a command like 'curl ftp://tablet-pc ..' would send the

smb.c and remote-time

2017-07-04 Thread Gisle Vanem via curl-library
Regarding added SMB-test in https://github.com/curl/curl/pull/1630, it's nice to see SMB is getting some focus (although I'm not able to run these tests on my StrawberryPerl). 2 problems in smb.c AFAICS: 1) '_getpid()' is not a valid function in djgpp/MSDOS. Simple fix: --- a/smb.c 2017-07-04

Re: examples in ALL libcurl option man pages!

2017-05-31 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote: I'm sure there are mistakes too so keep on filing bugs when you find them! Great work. Some typos: CURLOPT_SSH_KEYDATA.3: statoc int keycb(CURL *easy, CURLOPT_SSH_KEYFUNCTION.3: statoc int keycb(CURL *easy, 's/statoc/static/g' -- --gv

Re: curl can not stop sending after it received FIN

2017-04-12 Thread Gisle Vanem via curl-library
Tanyaofeng wrote: 4.We found an issue: The file server was shut down during sending file data, the curl can’t stop sending data after it received FIN from Http Proxy Server until file data was sent finished. If this was a serious issue, it would have been fixed years ago. Use netstat (or

Re: curl/libcurl SNMP protocol support

2016-08-10 Thread Gisle Vanem via curl-library
Sergei Nikulov wrote: > curl will dump object pointed by url > snmp://example.com/common/1.3.6.1.2.1.1.3.0 > It's not just another protocol :) I once did something like this. But only for Windows-SNMP. Not very useful with libcurl either (mostly for the trace). But here it is:

Re: The "Great Firewall of China"

2016-06-18 Thread Gisle Vanem via curl-library
Dan Fandrich wrote: > I think it's ironic that not only does this protest requires loading arbitrary > Javascript from a third-party site, but it's served unencrypted and > unauthenticated and is therefore vulnerable to active manipulation by a > malicious party while in transit. Why is this so

The "Great Firewall of China"

2016-06-17 Thread Gisle Vanem via curl-library
Did you folks know that github.com is blocked by the "Great Firewall of China"? Check here: http://www.greatfirewallofchina.org/index.php?siteurl=github.com But www.haxx.se is not: http://www.greatfirewallofchina.org/index.php?siteurl=www.haxx.se So I'd urge you Daniel to consider protesting

[Patch] curl_multibyte.c

2016-05-20 Thread Gisle Vanem via curl-library
Since Github seems to have git problems at the moment, I create this issue here. While compiling lib/curl_multibyte.c with '-DUSE_WIN32_IDN' etc. I was getting: f:\mingw32\src\inet\curl\lib\memdebug.h(38): error C2054: expected '(' to follow 'CURL_EXTERN'

Re: CODE_STYLE

2016-03-14 Thread Gisle Vanem
Daniel Stenberg wrote: > Yes! I would agree that your latter version is easier on the eye and thus a > better way to express that code. > > Maybe expressed like this: > > "Please use space on both sides of operators in C expressions" Agreed. Speaking of "easier on the eye". Calling of

Re: CODE_STYLE

2016-03-14 Thread Gisle Vanem
Daniel Stenberg wrote: > It was about time that we expanded our documentation on what C code style we > use in this project so I've just created > 'docs/CODE_STYLE.md'. See > https://github.com/curl/curl/blob/master/docs/CODE_STYLE.md Regarding "No space before parentheses". That's okay. But

Re: Correct package in vtls/openssl.c

2016-03-08 Thread Gisle Vanem
Daniel Stenberg wrote: > This is simply because BoringSSL has no version number from what I understand! It does have a 'SSLeay()' prototype in include/openssl/crypto.h: /* SSLeay is a compatibility function that returns OPENSSL_VERSION_NUMBER from * base.h. */ OPENSSL_EXPORT unsigned

Correct package in vtls/openssl.c

2016-03-08 Thread Gisle Vanem
As mentioned previously, I've managed to build libcurl with BoringSSL okay (using MSVC-2015 + TDM-gcc). It seems the folks at Google has done a very good job with this OpenSSL fork. But I have some beefs with this combo. 'curl -V' says: curl 7.47.2-DEV (i386-pc-win32) libcurl/7.47.2-DEV

Re: BoringSSL crash on Win32

2016-03-07 Thread Gisle Vanem
Daniel Stenberg wrote: > On Fri, 4 Mar 2016, Gisle Vanem wrote: > >> I'm built libcurl using BoringSSL (MSVC-2015) but it crashes for a very good >> reason. Here is the call-stack (slightly >> edited): > > David Benjamin in the BoringSSL team produced a patc

BoringSSL crash on Win32

2016-03-04 Thread Gisle Vanem
I'm built libcurl using BoringSSL (MSVC-2015) but it crashes for a very good reason. Here is the call-stack (slightly edited): ucrtbase!_invoke_watson+0x12 ucrtbase!_invalid_parameter+0xab ucrtbase!_invalid_parameter_noinfo+0xb ucrtbase!_write+0xf1 bssl_crypto!fd_write(struct bio_st * b =

Re: Static Libcurl crashes on MSVC13

2016-02-26 Thread Gisle Vanem
Jules van der Toorn wrote: > Thanks for the quick answer! I don't think it's an error in my code, because > i literally copied the code from your site, > the imap-fetch code > (curl.haxx.se/libcurl/c/imap-fetch.html >

Re: curllib and SFTP

2016-02-24 Thread Gisle Vanem
Jeanne Vural wrote: > From the SQR Report I invoke > 'c:\windows\system32\cmd.exe cmd.exe /c cd /d c:\OpenSSL-Win64\bin ' to > run curl using their call system method. This doesn't seems correct. Try: c:\windows\system32\cmd.exe /c "cd /d c:\OpenSSL-Win64\bin && curl .. whatever" Or put

Re: libcurl for universal windows app

2016-02-24 Thread Gisle Vanem
Paul Joyce wrote: > Has anyone got libcurl compiling suitably for use by a Windows 10 Universal > Windows > Application (UWA)? The platform is also referred to as Universal Windows > Platform (UWP). > If you do a standard Windows build of libcurl, you will get link errors such > as >

mk-opt-list.mak

2016-02-07 Thread Gisle Vanem
I've been toying with the attached GNU-makefile which creates a program (curl_options). Running it simply prints all 'CURLOPT_x' values sorted on '_x'. Plus it print a simple decoding of it's value. Something like: Idx CURLOPT_x value: arg type raw value

Re: mk-opt-list.mak

2016-02-07 Thread Gisle Vanem
Patrick Monnerat wrote: > I tried it on Fedora 23 64-bit: it works providing you make/run it from a > direct > subdirectory of curl sources. I had to "buildconf" + "configure" to make it > run. I simply assumed that. Not sure what "buildconf" + "configure" would do. Here is another try with a

Re: [Patch] docs/examples/htmltitle.cpp

2016-02-06 Thread Gisle Vanem
Dan Fandrich wrote: >> So IMHO it's better to use _stricmp(): > > Is this symbol available in older versions of MSVC? At least as old as we > still > support? '_stricmp()' has been in all all VC-products since the 90-ies. From my attic, I even found it in a 16-bit Quick-C (cl v7) version

[Patch] docs/examples/asiohiper.cpp

2016-02-06 Thread Gisle Vanem
This example is not quite up-to-date with the latest Boost or C++ standard. With latest MSVC, I get these errors and 1 warning: asiohiper.cpp(365): error C2039: 'cout': is not a member of 'std' asiohiper.cpp(431): error C2664: 'CURLcode curl_easy_setopt(CURL *,CURLoption,...)': cannot

Re: Command line switch to force overwrite

2016-02-01 Thread Gisle Vanem
Andrew Williams wrote: > Running the script again though shows no overwrite. How do you conclude that? What do you mean by "show" and how long is it before you run the script again? I guess server-caching is creating troubles for you here. > I can't find a force overwrite switch. > > Current

Re: Infinite loop

2016-01-14 Thread Gisle Vanem
Jakub Zakrzewski: > (I'm just creating dumps using TaskManager) Have you tried Process Explorer? v16.1 was released 10 days ago: https://technet.microsoft.com/en-gb/sysinternals/processexplorer > Just look at the callstack: > > ntdll.dll!NtDeviceIoControlFile() Unknown >

Re: Patch for SMB Message Signing

2015-12-18 Thread Gisle Vanem
Joseph Tetzlaff-Deas: > diff --git a/lib/smb.c b/lib/smb.c > index 8e2c164..2ea80a8 100644 > --- a/lib/smb.c > +++ b/lib/smb.c > @@ -46,6 +46,8 @@ > #include "curl_ntlm_core.h" > #include "escape.h" > #include "curl_endian.h" > +#include "openssl/md4.h" > +#include "openssl/md5.h" OpenSSL is

[Patch] guard name

2015-12-07 Thread Gisle Vanem
The name of the header guard in LwIP's has changed from '__LWIP_OPT_H__' to 'LWIP_HDR_OPT_H' (bug #35874 in May 2015). Hence libcurl should adapt. Other things: *) In curl_setup.h, the problem with an old PSDK doesn't apply if lwIP is used. *) In memdebug.h, the 'socket' should be undefined

[Patch] USE_LWIPSOCK and MSVC

2015-12-07 Thread Gisle Vanem
The C-preprocessor in Visual-C (even in MSVC 2015) is pretty lame compared to Gnu-C. In select.c (around line 317 and 523): r = select((int)maxfd + 1, #ifndef USE_WINSOCK _read, _write, #else fds_read.fd_count ? _read : NULL,

Re: [Patch] guard name

2015-12-07 Thread Gisle Vanem
Ray Satiro wrote: > I did have a reject in socket.c with this second patch Which socket.c? I'm not sure what reject this is. On the same issue; more warnings crept up using GCC 5.1 (TDM-MinGW) while building with '-DUSE_LWIPSOCK': In file included from curl_config.h:6:0, from

Re: git repo now says 20,000 commits

2015-11-11 Thread Gisle Vanem
Daniel Stenberg wrote: Just wanted to highlight this occasion. https://github.com/bagder/curl Here is a Gource visualization of the commits: https://www.youtube.com/watch?v=Jq93Vzr-Q6U Gource (from http://gource.io/). Here is how I created a video of my local curl git-repo: git log

Re: [Patch] lib/Makefile.dj

2015-10-22 Thread Gisle Vanem
"Ray Satiro via curl-library" wrote: Thanks, landed in https://github.com/bagder/curl/commit/c238d4d In the future can you attach a patch? In Thunderbird the leading whitespace is stripped and I can't do a git apply without manually editing the patch or pass the

[Patch] lib/Makefile.dj

2015-10-21 Thread Gisle Vanem
I was forced to use my old Win-XP PC this week (my ordinary PC is on service). So that gave me a chance to build libcurl using MSDOS/djgpp (which seems the last good platform for DOS-development). The end result (i.e. curl) still works fine except for some details in the lib/Makefile.dj. A

Re: How to stream mpeg4 on an Axis Camera using the RTSP protocol?

2015-07-28 Thread Gisle Vanem
Frank Chang wrote: My manager and I have a question about how to use libcurl on an Axis camera with dual h264 and mpeg4 streaming hardware support to stream MPEG4 with the RTSP protocol. I read the following curl-library archived article from Jeremy 4 years ago and I was wondering if

Re: better handling of websocket protocol upgrades

2015-07-27 Thread Gisle Vanem
Frank Meier wrote: consider yet to check the correctness of the Sec-WebSocket-Accept header. But of course there will be a minimum of checks that have to be performed before libcurl switches to websocket-mode. Sorry I haven't followed this thread. So I don't know really what you're trying to

Re: Time spent in ares_init_options

2015-07-15 Thread Gisle Vanem
Paul Oliver wrote: I've written a libcurl application based on the hiperfifo example and have run into something I'm unsure about. I have a test that kicks off requests to around 9K distinct URLs concurrently. It seems that ~75% of time during this test is spent inside ares_init_options.

VS2013 Solution problems

2015-03-31 Thread Gisle Vanem
I need some help from an VisualStudio expert here. Steve? I've just installed the new, free Microsoft Visual Studio Community 2013 and tried it by loading 'projects\Windows\VC12\curl-all.sln' and 'projects\Windows\VC12\lib\libcurl.sln' in it. I.e. devenv libcurl.sln. VS 2013 is Version

WolfSSL version problems

2015-03-26 Thread Gisle Vanem
CyaSSL was renamed to WolfSSL some time ago. Libcurl and vtls/cyassl.c seems to suffer from this. I got the message: * CyaSSL 3.3.0 cannot be configured to use TLS 1.0-1.2, TLS 1.0 is used exclusively because of this: #if (LIBCYASSL_VERSION_HEX = 0x03003000) /* 3.3.0 */ My

Re: WolfSSL version problems

2015-03-26 Thread Gisle Vanem
Ray Satiro via curl-library wrote: There's supposed to be backwards compatibility with CyaSSL. Seems I had some problem with the generated 'cyassl/version.h'; it didn't include 'WolfSSL/version.h'. Maybe libcurl can test on 'USE_WOLFSSL' too in the event the cyassl/*.h include-path

Re: How to retrieve webpage from curl_easy_perform

2015-03-03 Thread Gisle Vanem
Josh Angstadt wrote: Hi, I tried to use the write options as well, but when I used those I got an error from the connection, speciifcally error code 23 23 == CURLE_WRITE_ERROR. Look at: https://raw.githubusercontent.com/bagder/curl/master/docs/examples/getinmemory.c for a bit

Re: cant resolve host on visual studio 2013

2015-03-03 Thread Gisle Vanem
Azat Manukyan wrote: in both cases I haven't configured libcurl to any resolver.I supposed that didn't need to configure any resolver.firewall is turned of on windows. DNS resolver is working on windows environment because i can ping to given host, and system log viewer does not give any

'session-ssl_version' now hidden

2015-02-04 Thread Gisle Vanem
The folks at OpenSSL have been very busy cleaning up it's API. So much that it broken vtls/openssl.c: vtls/openssl.c(1670) : error C2037: left of 'ssl_version' specifies undefined struct/union 'ssl_session_st' for the statement: switch(session-ssl_version) { 'struct ssl_session_st' is

ldap.c and BoringSSL

2015-01-28 Thread Gisle Vanem
The combination BoringSSL and '-DUSE_WIN32_LDAP' doesn't work since 'X509_NAME' etc. are defined in wincrypt.h as: #define X509_NAME (LPCSTR) 7 ... Which causes the compilation of x509.h (from urldata.h) to fail (cpp output): typedef struct X509_name_st { struct stack_st_X509_NAME_ENTRY

Re: ldap.c and BoringSSL

2015-01-28 Thread Gisle Vanem
Daniel Stenberg wrote: Interestingly, even OpenSSL has X509_NAME as a typedef, but I figure it is in a header not as commonly included so it hasn't hurt us in this case. OpenSSL's x509.h already has these undefs: #ifdef OPENSSL_SYS_WIN32 /* Under Win32 these are defined in wincrypt.h */

Re: Cross-compiling linux to windows and OpenSSL

2014-12-28 Thread Gisle Vanem
Félix Robles wrote: curl-tool_xattr.o ../lib/curl-strtoofft.o ../lib/curl-rawstr.o ../lib/curl-nonblock.o ../lib/curl-warnless.o -L/usr/local/ssl/lib ../lib/.libs/libcurl.a -lgdi32 -lssl -lcrypto -lws2_32 '-lgdi32' must come after the libs using it. So: -L/usr/local/ssl/lib

Re: List available curl options

2014-12-15 Thread Gisle Vanem
Jeroen Ooms wrote: #define MAKE_OPTION(a) {#a, CURLOPT_##a} typedef struct { char name[40]; int val; } keyval; keyval curl_options[] = { MAKE_OPTION(MUTE), MAKE_OPTION(ACCEPT_ENCODING), ... etc }; But currently this fails when calling MAKE_OPTION with an undefined symbol. Is

Re: SMB long local write

2014-12-08 Thread Gisle Vanem
Patrick Monnerat wrote: Downloading a SMB file larger than 16K (CURL_MAX_WRITE_SIZE) with a DEBUGBUILD curl gives: Warning: Data size exceeds single call write limit! and the corresponding data is lost. I noted this too, but curl -i smb://local-url removes this warning. I have no

Re: Build errors on Windows

2014-11-05 Thread Gisle Vanem
Jan Ehrhardt wrote Correction: The same happens with WITH_SSH2=static. I am building against LIBSSH2 1.4.3. Curl 7.38.0 builded fine. Any idea what I am missing? Nothing. I noted that too and commented on it here:

Re: SFTP problems

2014-10-22 Thread Gisle Vanem
Daniel Karunairatnam daniel.karunairat...@gmail.com wrote: okay, so i opened one of those. but the librarian node isn't there. Which configuration do i need to change it to to access the librarian node? The instructions in the link you posted before require some changes there. I have no idea.

Re: Ftp upload resume issuw with very big files.

2014-08-26 Thread Gisle Vanem
Daniel Stenberg dan...@haxx.se wrote: On Tue, 26 Aug 2014, dushyant kumar wrote: I am trying to upload a file in a server using libcurl. Program works fine for small files (upto 5-6 GB ), however for very big files (more than 10 GB), it continues uploading even after the upload is over

Re: [PATCH] Compile with latest nghttp2

2014-08-26 Thread Gisle Vanem
Tatsuhiro Tsujikawa tatsuhir...@gmail.com wrote: totally agree with you. Should I include this change to the patch? Some other trouble I'm fighting with. In include/nghttp2/nghttp2.h the comment says: * Callback functions for :type:`nghttp2_session`. The details of * this structure are

Re: [bagder/curl] f18737: sasl_sspi: Fixed SPN not being converted to wchar ...

2014-08-10 Thread Gisle Vanem
Steve Holme steve_ho...@hotmail.com wrote: Hehehe - Slight slip of the keyboard there but in some respects relevant ;-) However, I meant comments are welcome. I'm not sure, but maybe a simple: #undef _UNICODE #undef UNICODE at the top of ldap.c should work. Otherwise things like 'struct

Re: [bagder/curl] f18737: sasl_sspi: Fixed SPN not being converted to wchar ...

2014-08-09 Thread Gisle Vanem
Changed paths: M lib/curl_sasl_sspi.c Log Message: --- sasl_sspi: Fixed SPN not being converted to wchar under Unicode builds Now it seems only ldap.c is not UNICODE compatible. From MSVC compile of ldap.c with -D_UNICODE: ldap.c(219) : warning C4133: 'function' : incompatible

Re: Porting libcurl on embedded system with proprietary OS

2014-07-28 Thread Gisle Vanem
Jon Torrey ntox...@gmail.com wrote: Also - if anyone happens to have an INTEGRITY config file and could send me it as an example that would be greatly appreciated. You can probably get some ideas from the lwIP tcp/ip hacks built into libcurl. The lwIP + Windows combo actually works with some

Re: libcurl links to openssl libraries twice

2014-06-12 Thread Gisle Vanem
Alona Rossen aros...@opentext.com wrote: We use the following protocols: BASIC DIGEST GSS_Negotiate NTLM Digest_IE IFIS_Delegation Does any of these involve ldap ? No, but why is it a problem that OpenSSL libs are in the dependencies twice? I assume ldap.so need SSL for secure ldap. Same

Re: Static Library Compilation - Borland

2014-06-02 Thread Gisle Vanem
Jon Torrey ntox...@gmail.com wrote: I thought by default I didn't need to define SSL as libcurl by default will use Windows SSPI? No way! Anywho, I made the following change On line 56 of Makefile.b32 I have : DEFINES = -DNDEBUG -DWIN32 -DBUILDING_LIBCURL -DCURL_STATICLIB -USE_SSL

Re: Missing 'state.os_err'

2014-05-08 Thread Gisle Vanem
Daniel Stenberg dan...@haxx.se wrote: I would say that in all cases where we use errno in libcurl to check for success or failure, if we then fail we should store errno in data-state.os_errno. Does that sound reasonable? Yes, this OS-error (or errno) could be useful to the caller. That of

Re: curl crash in setsockopt callback

2014-04-12 Thread Gisle Vanem
Priyanka Shah priya...@insiemenetworks.com wrote: And this is the callback's implementation: int sockopt_callback(void *clientp, curl_socket_t curlfd, curlsocktype purpose) { if(clientp == NULL) { printf(error); return CURL_SOCKOPT_OK; }

Re: [bagder/curl] 78e384: build: Added Visual Studio 2008 (VC9) project file...

2014-04-09 Thread Gisle Vanem
Author: Steve Holme steve_ho...@hotmail.com Date: 2014-04-09 (Wed, 09 Apr 2014) Changed paths: M Makefile.am A projects/Windows/VC9/.gitignore A projects/Windows/VC9/curl.sln Shouldn't these be put in 'packages/Win32/VC9' instead? Or maybe 'packages/Win32/Visual-C/VC9'? The term

Re: [Bulk] RE: Visual Studio Project Files

2014-04-09 Thread Gisle Vanem
Steve Holme steve_ho...@hotmail.com wrote: really mind. I'd rather not move the directory into a Visual-C directory as a) That will require an update to all the files, both the ones I've commited as well as the ones I have pending, for the relative paths and b) Having Visual-C\VC6 includes the

Re: HTTP 2.0 and GFE/2.0

2014-03-31 Thread Gisle Vanem
Daniel Stenberg dan...@haxx.se wrote: I get a different server but I did this: ./src/curl -v --http2 https://www.google.com * Trying 173.194.32.20... * Connected to www.google.com (173.194.32.20) port 443 (#0) * NPN, negotiated HTTP2 * We have switched to HTTP2 * http2_send len=82 *

Re: HTTP 2.0 and GFE/2.0

2014-03-31 Thread Gisle Vanem
Daniel Stenberg dan...@haxx.se wrote: I don't even know if PolarSSL supports those TLS extensions. I don't think so. You using a recent nghttp2? (I'm at v0.3.1-182-g8ccb6e4 right now, the current git HEAD) I built with NgHttp2 from today. But AFAICS, google is doing it right. The UTF-8

Re: HTTP 2.0 and GFE/2.0

2014-03-31 Thread Gisle Vanem
Gisle Vanem gva...@yahoo.no wrote: 05C0: 3E 54 68 61 74 E2 80 99 73 20 61 6E 20 65 72 72 ThatOCOs an err 05D0: 6F 72 2E 3C 2F 69 6E 73 3E 0A 20 20 3C 70 3E 59 or./ins. pY 05E0: 6F 75 72 20 63 6C 69 65 6E 74 20 68 61 73 20 69 our client has i 05F0: 73 73 75 65 64 20 61 20 6D 61 6C

Missing 'state.os_err'

2014-03-27 Thread Gisle Vanem
I note that 'data-state.os_errno' is not set in many places. Only some places around send(), bind() etc. What if 'curl_easy_getinfo (..CURLINFO_OS_ERRNO..)' is called to retrieve the OS-error when thing fails? I do note the man-page says connect failure. But things can fail before a connect()

[Patch] vtls/polarssl.c

2014-03-22 Thread Gisle Vanem
The debug messages printed inside PolarSSL always seems to end with a newline. So 'infof()' should not add one. Besides the trace 'line' should be 'const'. Patch: --- Git-latest/lib/vtls/polarssl.c 2014-03-19 23:24:29 + +++ lib/vtlspolarssl.c 2014-03-22 16:09:41 + @@ -104,7 +104,7

Re: sftp upload - curl error 79 Error in the ssh layer

2014-03-20 Thread Gisle Vanem
Petr Ent petr@gmail.com wrote: I assumed that since command line curl accepted target path without the filename, library would behave the same. Clearly I was wrong :). Anyway, I think something like In upload mode, CURLOPT_URL must contain full path including filename would help a lot. A

Re: [bagder/curl] 420d9f: Rework Open Watcom make files to use standard Wmak...

2014-03-03 Thread Gisle Vanem
GitHub nore...@github.com wrote: Changed paths: M lib/Makefile.Watcom M src/Makefile.Watcom Log Message: --- Rework Open Watcom make files to use standard Wmake features Jiri, Daniel. Can one of you please change my email-address in those headers? To: gva...@yahoo.no. And

Re: [bagder/curl] 420d9f: Rework Open Watcom make files to use standard Wmak...

2014-03-03 Thread Gisle Vanem
Steve Holme steve_ho...@hotmail.com wrote: Would it better to change the header to our standard libcurl licence/disclaimer/header just like in makefile.vc6? I appreciate I may have just volunteered for the task if folk agree ;-) I have attached something like that. Just went through the

Re: [Bulk] Re: [Bulk] Re: Trying to cross compile libcurl with MinGW 32-bit from Ubuntu, for Win32 Executables

2014-02-18 Thread Gisle Vanem
libc...@double.net23.net wrote: LIBOBJS = LIBS = -lssl -lcrypto -lgdi32 -lssl -lcrypto -lwldap32 -lz -lws2_32 Why is '-lcrypto' given twice? That could be your problem. ../lib/curl-nonblock.o -L/path/to/mingw32/lib ../lib/.libs/libcurl.a -lgdi32 -lssl -lcrypto -lwldap32 -lz -lws2_32

Re: [Bulk] Re: Trying to cross compile libcurl with MinGW 32-bit from Ubuntu, for Win32 Executables

2014-02-17 Thread Gisle Vanem
libc...@double.net23.net wrote: ../lib/curl-strtoofft.o ../lib/curl-strdup.o ../lib/curl-rawstr.o ../lib/curl-nonblock.o -L/path/to/mingw32/lib ../lib/.libs/libcurl.a -lgdi32 -lssl -lcrypto -lwldap32 -lz -lws2_32 /path/to/mingw32/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0x1070): undefined

  1   2   3   >