Issue
When mobile is connecting to WIFI network application can easily communicate to server via api. Through wifi application can easily make get , put , post requests and getting desired result. When i changed my connection to mobile data , not able to make put , post request though get request worked fine. Thing is while connecting to mobile data , api hit cannot reach to server thats why i am not able to find if there is any server error. My current location is Lahore,Pakistan , i have checked it on different mobile network. What can be the reason of this ?
Solution
It was happening because of secure connection on mobile data , may b telecom carrier that i was using used some kind of firewall. Which didn't allow to make put request on insecure server. When i switched my server to https and made request then request successfully. So to make work you should have https server rather than http server.
Answered By - Hassan Munir
Answer Checked By - Katrina (JavaFixing Volunteer)