Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-3952

c# .NET 401 Unauthorized

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      This workds just fine:

      {{{
      curl -k --user myUsername:myPassword https://api.bitbucket.org/1.0/user/repositories/?format=xml\\
      }}}

      Same user/pass and uri from .NET fails:

      {{{
      WebRequest request = WebRequest.Create("https://api.bitbucket.org/1.0/user/repositories/?format=xml");
      request.Credentials = new NetworkCredential("myUsername", "myPassword");
      WebResponse response = request.GetResponse();
      }}}

      WebException: The remote server returned an error: (401) Unauthorized.

      Attachments

        Activity

          People

            Unassigned Unassigned
            3bccd8cacbac moander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: