curl-library
Re: how curl get access_token in OAuth?
From: David Strauss <david_at_davidstrauss.net>
Date: Tue, 14 May 2013 11:21:22 -0700
Date: Tue, 14 May 2013 11:21:22 -0700
First, this [1] is the library I prefer for OAuth. You can either use
it directly (easier) or in conjunction with libcurl.
On Mon, May 13, 2013 at 5:10 PM, Feng Helong <fenghelongnjit_at_gmail.com> wrote:
> So my question is how can I use curl to get the access_token in the url of
> the new webpage.
I think you want something like curl_easy_getinfo() with
CURLINFO_EFFECTIVE_URL [2]
[1] http://liboauth.sourceforge.net/
[2] http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html
-- David Strauss | david_at_davidstrauss.net | +1 512 577 5827 [mobile] ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-05-14