Re: Implementing OAuth support into curl?

2012-12-21 Thread Yves Arrouye
I may not be able to send the patch until after New Year's. I did it at work, and my company has a policy that says it needs to be reviewed internally. Everybody's off right now, and me too soon. The patch is basically structured as follows: - oauth.[hc] defines a structure to hold the known OAut

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: Implementing OAuth support into curl?

2012-12-21 Thread Oscar Koeroo
On 21-12-12 19:32, Yves Arrouye wrote: > I have so far a full patch off HEAD for OAuth 2 which supports the > generation of a proper Authorization: header for OAuth 2 from a token. > Bearer (RFC 6750) and the HTTP MAC (draft-ietf-oauth-v2-http-mac-02) are > both supported. The patch has been tested

Re: Implementing OAuth support into curl?

2012-12-21 Thread Yves Arrouye
I have so far a full patch off HEAD for OAuth 2 which supports the generation of a proper Authorization: header for OAuth 2 from a token. Bearer (RFC 6750) and the HTTP MAC (draft-ietf-oauth-v2-http-mac-02) are both supported. The patch has been tested on OS X, Linux, Windows using nmake as well as

Re: Using libcurl to get local Network IP for ETH0 and ETH1

2012-12-21 Thread Yves Arrouye
> I'd say ioctl() and SIOCGIFADDR seem like a much easier way to get that information... Or check out getifaddrs(3). Attached are a couple files I've used in a home project that will get you in the right direction (look at get_if_info, you can also call get_first_if_up_with_mac_addr() to get the f

Re: curl-library Digest, Vol 88, Issue 39

2012-12-21 Thread Michael Wood
Hi Dave Your messages are hard to follow. Please turn off "digest" mode if you want to participate in discussions. If you must stick with digest mode, at least edit the subject to be something sensible instead of "curl-library Digest, Vol 88, Issue 39". Also, please do not "full quote". Especi

RE: curl-library Digest, Vol 88, Issue 39

2012-12-21 Thread Dave Galloway
-- Message: 1 Date: Thu, 20 Dec 2012 08:46:13 -0500 From: Dave Galloway To: "curl-library@cool.haxx.se" Subject: RE: curl-library Digest, Vol 88, Issue 38 Message-ID: Content-Type: text/plain; charset="us-ascii" Date:

Re: Using libcurl to get local Network IP for ETH0 and ETH1

2012-12-21 Thread Daniel Stenberg
On Thu, 20 Dec 2012, Bernard Evensrud wrote: Can libcurl from within a C application be used to get the network IP address for ETH0 and ETH1 on Linux, just like ifconfig eth0 | grep \"inet addr\" | awk -F: '{print $2}' | awk '{print$1}'? You can tell libcurl to use that address as a source add

RE: CURLE_COULDNT_RESOLVE_HOST using libcurl easy interface

2012-12-21 Thread Daniel Stenberg
On Wed, 19 Dec 2012, Dave Galloway wrote: At the getaddrinfo level in curl_addrinfo.c I am getting a -2 (NONAME) error which bubbles back up and eventually returns the CURLE_COULDNT_RESOLVE_HOST error. Right, so getaddrinfo() returns an error and libcurl can't continue. What else could libcu

Re: Reciving buffer size less than CURL_MAX_WRITE_SIZE

2012-12-21 Thread Daniel Stenberg
On Fri, 21 Dec 2012, ilavarasan M wrote: I'm using the latest version 7.28.1 to download the files. Im trying to download the file which is 60 GB in size using cURL (C++). I'm able to get around 17 GB of content and suddenly cURL come out with return code as success and the http response code

Re: Implementing OAuth support into curl?

2012-12-21 Thread Daniel Stenberg
On Fri, 21 Dec 2012, Waqar Humayun wrote: I was reviewing following thread in archives, but did not find any conclusion to it. What is the current status of OAuth native support in libcurl? http://curl.haxx.se/mail/lib-2010-05/0073.html I responded to a similar question a short while ago:

Re: transfer closed with bytes remaining to read Windows 7 issue

2012-12-21 Thread Daniel Stenberg
On Thu, 20 Dec 2012, Bill Hoffman wrote: Just to close the loop on this we found the problem. It is the eset nod32 antivirus software that is causing the problem. They are aware of the problem, and have a fix of sorts that involves removing some recent MS updates. Thanks for helping out.