CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2014
    Posts
    2

    Question about oAuth 1.0

    I build a restful Json webservice with a simple authentication request, using oAuth 1.0
    It works fine but after several requests the server returns "The remote server returned an error: (401) Unauthorized."

    I can't find out what is going wrong.

    Does someone has a clue?

  2. #2
    Join Date
    May 2014
    Posts
    2

    Re: Question about oAuth 1.0

    Extra information:
    When it goes wrong, the following line of code
    WebResponse webrespon = (WebResponse)WebRequest.Create(string.Format("{0}?{1}&oauth_signature={2}", url, param, signature)).GetResponse();

    returns this error:
    A first chance exception of type 'System.Net.WebException' occurred in System.dll

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured