I'm trying to Post some data to a PHP script from my android application, all the examples I can find suggest using HTTPClient however the example code as shown below clearly doesn't work, am I missing something?
            Asked
            
        
        
            Active
            
        
            Viewed 97 times
        
    1 Answers
2
            
            
        Apache HTTP Client was deprecated in Android 5.1 and removed in Android 6.0
So as they say use HttpUrlConnection instead
You can also use a high level api like Volley or other networking http librairies
 
    
    
        belhassine
        
- 151
- 1
- 4
- 
                    Ok, but currently I have put the values into a keyValuePair list, how do i implement this with the httpUrlConnection? or should the values be stored a different way? – Jack Nov 07 '15 at 00:41
- 
                    This will be helpful : http://stackoverflow.com/questions/9767952/how-to-add-parameters-to-httpurlconnection-using-post – belhassine Nov 07 '15 at 06:48

 
    