java - Cant access htaccess protected php script from android application -


i running webserver put .php file access mysql database. dont want .php file viewed public put .htaccess on containing folder.

now i want pass account name , password in url doesnt work.

httppost post = new httppost("http://accname:password@server.com/admin/myfile.php"); 

but when call url out of browser work. pretty lost - there doing wrong ?


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -