The php files on my server are password protect with htaccess. How can I make request to these files through my android app?
I couldnt find any relevant answers with google search.
The php files on my server are password protect with htaccess. How can I make request to these files through my android app?
I couldnt find any relevant answers with google search.
Assuming your PHP files are protected by
HTTP Basic Authentication
, you can request your php files using this special URL syntax:Here you can find your answer:
Basic HTTP Authentication on Android
Basically:
You can replace the last line with:
EDITED:
You can try someting like this:
So you can view your response, maybe the problem is parsing the JSON.