Tag : chash , By : Robert MacGregor
Date : March 29 2020, 07:55 AM
This might help you I have the following code: , Try the old fashioned way: string credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(un + ":" + pw));
client.Headers[HttpRequestHeader.Authorization] = "Basic " + credentials;
|
Date : March 29 2020, 07:55 AM
it should still fix some issue OK. It took some hacking but I finally figured out that while I was sending a basic auth from my ajax call, the web api layer was receiving a negotiate auth. So I went into IIS disabled all auth on the web service save for anonymous. And then voila.
|
Date : March 29 2020, 07:55 AM
wish helps you It seems the issue I was experiencing was due to the plugin / extension I was using with Mozilla Firefox, named RESTClient; which I was using to test my REST API. I switched to Google Chrome, and gave the POSTMAN plugin / extension a try, and my 30 character API Key and API Secret worked splendidly. With RESTClient, the requests didn't even try to execute. No responses, nothing.
|
Tag : wcf , By : Al Dimond
Date : March 29 2020, 07:55 AM
|
Tag : java , By : ChaseVoid
Date : March 29 2020, 07:55 AM
|