i want to upload a file from my android phone to server URL. but the server required login first. how can i do this to upload the file to this server URL with also login URL.
for example:
uploading url:
http://api.someapi.net/v1/medium/14
parameters required: file and title
login url:
http://api.someapi.net/v1/user/login
parameters required: email and password
Check the login credentials by using the code below. If the response is OK send the file to the url using the same code below with different parameters. Else do whatever you want.
Hope it helps