New to this api thing..
Need help trying to login to my Asp.net website. I have api running in /myapi/pricing
and it works great after i sign into site with browser and data does come up.
The site uses Asp.net Membership with a MySql database with user data.
My question is how do i send username and password to site so that i can call the api directly?
There are several things you need to consider including if you have your .NET application properly setup and if you are testing in localhost environment or on live. All that said, please refer to the following articles and documents that are covering the .NET setup and also the basic authorization process with Fiddler.
- Basic authorization with FE https://docs.telerik.com/fiddler-everywhere/knowledge-base/basic-authentication-with-fiddler-everywhere
- Basic authorizations with Fiddler (general info) https://stackoverflow.com/questions/12501701/use-fiddler-with-basic-authentication-to-access-restful-webapi
- Configure .NET apps https://docs.telerik.com/fiddler/configure-fiddler/tasks/ConfigureDotNETApp
- Membership provider + Fiddler - specifics https://stackoverflow.com/questions/11535075/asp-net-mvc-4-web-api-authentication-with-membership-provider