On 06/21/2010 09:42 PM, Grant wrote:
> Right now I am trying to get liboauth working with LinkedIn, but I
> can't even get a request token. I've read the LinkedIn documentation,
> and changed my code around quite a bit testing different methods.
>
> Here is my code:
> http://pastie.org/private/tiaog08s8o7521qoas2u5w
>
> I just converted one of the C examples to C++ and changed it around.
> I can't seem to figure out what the problem is, has anyone else used
> liboauth with LinkedIn?
> Maybe someone can notice something I'm not seeing...
>
You are missing the terminating "\r\n" for the HTTP header.
line 101 in your code should read:
header += ("oauth_version=\"" + params["oauth_version"] + "\"\r\n");
HTH,
robin
PS. is your date wrong? I only received this message now:
Received: by 3g2000vbg.googlegroups.com with HTTP; Mon, 28 Jun 2010
09:57:20 -0700 (PDT) but the message dates back a week. weird.
--
Robin Gareus mail: [email protected]
site: http://gareus.org/ chat: xmpp:[email protected]
blog: http://rg42.org/ lab : http://citu.fr/
Public Key at http://pgp.mit.edu/
Fingerprint : 7107 840B 4DC9 C948 076D 6359 7955 24F1 4F95 2B42
--
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/oauth?hl=en.