I can request to my API by this python code snippet (use requests python
):
session = requests.session()
r=session.post(url,data=post_data, auth=(username , passwd))
Server will use this session and redirect my request to another get request then return the json response successfully.
I want to implement this api request on Android using Volley library. I have figured all day, and there is no luck. I can request an GET api successfully, but POST.
I have tried all answer on this question on SO
It seem I cannot create a session for Volley can use it.
Does anyone have experience in using session/cookie for Volley library?