"error": "unsupported_grant_type" is returned when sending post request with x-www-form-urlencoded

+1 vote
keywords.user_loads_a_Request("AdminLogin", CONFIG.getProperty("URI")+"api/login"); // Adminlogin file contains the request

keywords.user_posts_request("POST");

keywords.user_addsHeader("Content-Type", "x-www-form-urlencoded");  

keywords.user_addsHeader("charset", "utf-8");

keywords.user_loads_a_Request(URLEncoder.encode("grant_type=password&username=example%40live.com&password=Password2%40&isfflogin=false"),"UTF-8");
Dec 17, 2019 in Software Testing by anonymous
• 130 points
82 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Software Testing

0 votes
2 answers

What is Functional Testing in Software Testing?

Functional testing is software testing aimed to check ...READ MORE

answered Jan 6 in Software Testing by Robert
• 140 points
120 views
0 votes
1 answer

Is automation testing black-box testing or white-box testing?

You might have got confused because of ...READ MORE

answered Aug 7, 2019 in Software Testing by Archana
• 5,600 points
363 views
0 votes
0 answers

what is regression testing

Aug 27, 2019 in Software Testing by anonymous

closed Aug 27, 2019 by Kalgi 70 views
0 votes
1 answer

soapUI test with Jenkins

Hey Ashutosh, I myself don't have any ...READ MORE

answered Sep 16, 2019 in Software Testing by Abha
• 27,800 points
110 views
0 votes
1 answer

Android M - Sending request over WiFi (without connection) when Mobile data is ON (with connection)

Binding the network using ConnectivityManager.setProcessDefaultNetwork() will help ...READ MORE

answered Oct 11, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
599 views
+5 votes
0 answers
0 votes
1 answer

Power Query : http POST request with form data

Try using Uri.BuildQueryString and Json.Document. let ...READ MORE

answered Dec 12, 2018 in Power BI by Upasana
• 8,590 points
2,599 views
0 votes
4 answers