简体   繁体   中英

retrofit illegal argument exception

Can anyone help me with this retrofit statement:

"/tables/PyylonRegistration?Login={login}&Password={password}"

I tried to post query from Android and it still throws illegal argument exception .

SOLVED In case anyone needs here is the way it worked:

@POST("/tables/PyylonRegistration?Login=login&Password=password") RegistrationResult register(@Header("authorization")String authorization, @Query("Login")String login, @Query("Password")String password);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM