Answer the question
In order to leave comments, you need to log in
How to make a request for authorization token from android client to aspnet web api?
there is a back-end part on asp.net web api. Tokens are used for authorization. With Fiddler, if you make a request, everything works:
host:
localhost:XXXX/token
header :
User-Agent: Fiddler
content-type: application/x-www-form-urlencoded
request body:
username=nursultankdm&password=122793&grant_type=password
How to make such a request in android application so that you can get a token for work
Answer the question
In order to leave comments, you need to log in
Did you try to shove it into the request header with android?
User-Agent: Fiddler
content-type: application/x-www-form-urlencoded
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question