Tagged Questions
0
votes
1answer
45 views
How to send Arraylist of class in POST method of WCF webservice from android
I am a newbie and dont know much of android.
I need to send an arrayList of userdefined class to webservice using http post. I am able to send one instance using nameValuePairs . But dont know how to ...
0
votes
0answers
36 views
httpClient.execute(httpPost) fails with no exception thrown
Class code (important parts):
... definition
private DefaultHttpClient httpClient;
... init Client
HttpParams params = new BasicHttpParams();
...
0
votes
1answer
64 views
Android - How to fill data in an HTML form on an external website and hit the upload button?
I have an Android device. I want to fill a form in my app, with edittexts etc (one of these fields would take the path of an image on the SDCard). I want these form contents to be the data for an HTML ...
1
vote
0answers
74 views
Bad Request when sending json object with authentication on android
I am getting the error bad request when I try to send a json object with authentication. I had a look at How to send a JSON object over HttpClient Request with Android? but it does not solve my ...
0
votes
4answers
57 views
Posting using httppost not being received at server end
I am new to Android programming, but have decent knowledge of PHP.
I am trying to send data to my server via post request. I have the following code:
ArrayList<NameValuePair> nameValuePairs = ...
0
votes
2answers
70 views
Issue on POSTING data by using “NameValuePair”
I wrote in java method that responsable to send POST like ajax
public String getWebInfo() {
DefaultHttpClient httpclient = null;
String out = null;
try {
...
0
votes
0answers
33 views
How can I capture the bytes being streamed in httpClient via the HttpRequestInterceptor?
I am trying to intercept the byes that are being streamed to a servlet via httpClient. I need to do some other processing on the bytes and I would like to do it one time (when it is being streamed). ...
0
votes
1answer
70 views
HTTP Post to Php isn't working
The code isn't working. Please help. The item gets added to the database except for the quantity. It's always zero. Why is that?
String value;
@Override
public void onCreate(Bundle ...
0
votes
1answer
120 views
IOS HttpPost with parameters
I want to send http post with parameters and then retrieve cookies from response.
In android I use the following:
HttpPost request = new HttpPost("http://stackoverflow.com/");
...
0
votes
1answer
490 views
In Android SDK (using 4.2.2) HttpClient Basic preemptive-auth with HttpPost always returns 401
Webservice used is: https://domain.name.com/EWS/Exchange.asmx, works perfectly in soapUI. For AuthScope, also tried "new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT)" but no luck!!! frustration ...
0
votes
0answers
966 views
HTTP POST request with multipart/form-data in Java
I need some help to do a java program that post in a https site. I dont know how to put the
parameters because it a multpart form data contect type..
Please help!
when I do a post with firefox its ...
-1
votes
1answer
329 views
Java HttpClient cannot login to gmail, returning 200 instead of 302 [closed]
I'm following the code from
Android: How to login into webpage programmatically, using HttpsURLConnection
and trying to login to gmail using Java HttpClient. When I submit a post request with my ...
0
votes
4answers
145 views
HttpPost with parameters not working to ASP server
I need to create an HttpPost request with two parameters. I agree there are many examples, but I believe I've done my research but still I am not getting a response from the ASP server. I've tried ...
3
votes
1answer
354 views
Android - Remote Login successful but login state is not retained
I have an android app that retrieves data from a remote server, including authentication. Remote server is using Yii. Our iPhone version is using the remote web service and there's no issue at all. ...
7
votes
3answers
230 views
Web service SocketTimeOutException causes database inconsistency
I want to overcome the following scenario when calling a Rails Web service from Android device with the help of Apache HTTP Client library
Scenario :
Client (Android) : Initiates HTTP POST request ...