Linked Questions
81 questions linked to/from Sending POST data in Android
8 votes
1 answer
17k views
Android send a image and save url [duplicate]
Possible Duplicate: Send post data in android How to send a image via http post along with the form data i.e image name etc to a specified url .. which is the url of a aspx.
0 votes
2 answers
3k views
pass data using http post [duplicate]
i am making one application which should give response on the click of button like -- REQUEST HEADERS -- User-Agent: XYZ Host: root.url Content-Type: application/json; charset=utf-8 Content-Length: ...
0 votes
1 answer
804 views
How to I send POST parameters in this android studio code [duplicate]
I'm new to android and learning it now. I'm working on an application where I was able to get response form a get request successfully. Now I want to execute a POST request with a single parameter ...
0 votes
1 answer
573 views
Retrieving Retrofit Object in PHP [duplicate]
I was sending a String using GET in Retrofit and it worked well in my PHP server file. e.g. @GET("add.php") Call<Void> getData(@Query("value") String value); and this could be retrieved using ...
0 votes
3 answers
508 views
Is there a recommended way of doing post request in android? [duplicate]
Is there a recommended way of doing post request in android? because before I use HttpPost and HttpClient for executing post request but these classes are now deprecated in API level 22.
0 votes
0 answers
483 views
FCM notifications sending POST request in Android [duplicate]
I am trying to receive notifications from FCM automatically whenever data in the Firebase Database is changed. What I am hoping to do is to send a POST request to https://fcm.googleapis.com/fcm/send ...
1 vote
0 answers
141 views
Call POST method on a RESTful web service on Android [duplicate]
I am new to android development, already sought on the Internet several tutorials, but found no updated ( that does not contain methods or depreciated classes - sdk23 ) saying about how to send POST ...
0 votes
0 answers
145 views
Android: how to HTTP post this? [duplicate]
I am sorry, I am going mad, I have tried everything, but nothing seems to work. I need to do HTTP Post application/x-www-form-urlencoded of this: 'type' : 'Fb', 'data' : [ 'fbId' : '1234', ...
0 votes
2 answers
130 views
How do I send POST information from my android application to a PHP website [duplicate]
I've got a form built in my android layout, and have an activity that takes some text from that form and attaches it to a variable. I also have a PHP form that can handle a POST variable containing ...
0 votes
1 answer
88 views
How to send POST request from Android to PHP [duplicate]
I can't seem to find recent tutorials online because most of them (HttpClient for example) has been depreciated. What I want to happen here is for users to login using their ID number and password ...
0 votes
0 answers
71 views
How to send data to PHP server from android? [duplicate]
I have a registration form where user can fill their information then I want to store these values onto my PHP server. This is where I am storing data from user input... I have to send this data to my ...
278 votes
16 answers
498k views
How to add parameters to HttpURLConnection using POST using NameValuePair
I am trying to do POST with HttpURLConnection(I need to use it this way, can't use HttpPost) and I'd like to add parameters to that connection such as post.setEntity(new UrlEncodedFormEntity(nvp)); ...
139 votes
11 answers
163k views
Sending and Parsing JSON Objects in Android [closed]
I would like to send messages in the form of JSON objects to a server and parse the JSON response from the server. Example of JSON object { "post": { "username": "John Doe", "message": "...
134 votes
5 answers
160k views
Sending images using Http Post
I want to send an image from the android client to the Django server using Http Post. The image is chosen from the gallery. At present, I am using list value name Pairs to send the necessary data to ...
40 votes
5 answers
79k views
Cannot resolve symbol 'IOUtils'
I have used the following code to create a temporary file in my android app: public File streamToFile (InputStream in) throws IOException { File tempFile = File.createTempFile("sample", ".tmp"); ...