Spring RestTemplate HTTP Post with parameters cause 400 bad request error
问题 Possible duplicate Need help on RestTemplate Post Request with Body Parameters? and Spring RESTtemplate POST but these answers don't work for me I tried to get access token from Instagram API by Spring Android. The request from Instagram 's document like this: curl \-F 'client_id=CLIENT-ID' \ -F 'client_secret=CLIENT-SECRET' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=YOUR-REDIRECT-URI' \ -F 'code=CODE' \https://api.instagram.com/oauth/access_token Here is my request access token