我的界面如下所示:如何發送X WWW的形式,進行了urlencoded採用了android註釋和resttemplate在POST請求的身體
@Rest(rootUrl = "https://myurl.com", converters = { GsonHttpMessageConverter.class })
public interface CommunicatonInterface
{
@Get("/tables/login")
public Login login(Param param);
public RestTemplate getRestTemplate();
}
的問題是什麼,我應該把作爲一個參數去獲得在體內簡單:
login=myName&password=myPassword&key=othereKey
沒有逃脫,括號或配額。
我試着通過一個字符串,我只是得到: "login=myName&password=myPassword&key=othereKey"
但它是錯誤的,因爲配額的跡象。