Tagged Questions
0
votes
1answer
17 views
SSL issue with HttpGet probably because server is requesting client authentication
We are using following versions of diff libraries
Apache-HttpComponents-HttpCore = 4.1;
Apache-HttpComponents-HttpClient = 4.1.1;
JDK = 1.6_64;
and suddenly started ...
0
votes
0answers
22 views
HTTP Get failing for HTTPS with javax.net.ssl.SSLPeerUnverifiedException
I have been using this infrastructure from past couple of months and it was working fine. I used to hit Google with https and get the result. Suddenly, I started getting SSLPeerVerifiedException for ...
0
votes
1answer
22 views
URISyntaxException HttpGet
I want to do a request to an url which contains a parameter value that should not be encoded (because the page throws invalid query if I encode it) and has the character '%'. The browser allows it but ...
0
votes
0answers
19 views
Apache HttpClient trailing (double) slashes and REST service
Like mentioned before at Access URL with double slash with HttpClient the HttpClient class do not allow trailing double slashes, as they are considered the authority component.
This is of course b ...
0
votes
1answer
89 views
Apache HttpClient proxy issue
I am trying to do a GET some parameters to a server. I got this example from stackoverflow and I am facing a weird error. Can someone pls help me demystify the scenario ? Attached is the class file I ...
4
votes
2answers
96 views
How can I tell when HttpClient.execute() is finished fetching all content in a large request?
I'm working with this issue on Android but it's not an Android-specific problem.
Using org.apache.http.client.HttpClient, I can make a request to a URL of size 1kb and the entire response is ...
0
votes
2answers
100 views
Authentification with HttpClient and httpget in API level 4 in Android application
I want to make a request with an authentification on an android application with api level 4, HttpClient and httpGet.
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response;
...
0
votes
3answers
518 views
Android App stopped when try to fetch data from internet
I'm trying to fetch data from the internet by using HttpGet and HttpClient. However, when I run it in my emulator it immediately shutdown saying "Unfortunately, AppName has stopped". Any ideas how to ...
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. ...
0
votes
1answer
146 views
android httpClient and httpPost issue with specific website
I am attempting to help a student write an android app that will contact a specific webserver. From the looks of the website, you can issue a GET requestion with your web browser and you get back a ...
0
votes
0answers
108 views
HttpGet to get results generated by JavaScript?
I am requesting results from a page like this:
String getURL = "http://www.example.com/search.php?q="+query;
HttpClient client = new DefaultHttpClient();
HttpGet get = new HttpGet(getURL);
...
0
votes
2answers
1k views
Android - Runtime error while trying HttpGet on a URL in Android
I'm trying to collect some json data, put those in a string and show them in my app through a toast as for test. I'm pretty sure that the server allows me and responds to my request because previously ...
0
votes
1answer
200 views
How can I reach the JSONObject stored on Tomcat server via android? [duplicate]
Possible Duplicate:
Example of how to download JSON from server?
I've read quite a few tutorials but it's still not clear how it works. This is the server side code:
@GET
...
0
votes
2answers
381 views
Issue with Asynctask and HTTP connection
I have this really crazy problem which I cant seem to tackle. I tried many variations to my approach but it doesnt seem to work like I intended.
What I want is when the user clicks a button on my ...
2
votes
0answers
405 views
Android: How to download song through httpGet with parameters?
I am to download Song file through HttpGet from server to Android phone. I granted the following permissions in Manifest file.
<uses-permission android:name="android.permission.INTERNET"/>
...
2
votes
1answer
3k views
Getting URL after a redirect using HttpClient.Execute(HttpGet)
I have searched for a while and I am not finding a clear answer. I am trying to log into a webstie.
https://hrlink.healthnet.com/
This website redirects to a login page that is not consitent. I have ...
2
votes
1answer
1k views
“Illegal Characters” in URL for HttpGet in Android get double-encoded
I am trying to find a solution to this the whole evening now...
I write an app which requests data from a web server. The Server answers in JSON format.
Everything works well except when I enter a ...
0
votes
2answers
855 views
Reading HTML source from android app
I'm trying to get the HTML source in a string from a web site that the user enters, the code I have so far looks like this:
public String getURLContent(String url)
{
try
{
...
2
votes
1answer
751 views
Get suggested filename from org.apache.http.HttpResponse
In Android, you can download a file using the org.apache.http classes HttpClient, HttpGet and HttpResponse. How can I read the suggested filename from the HTTP request?
E.g. In PHP, you would do ...
0
votes
0answers
247 views
HttpClient is not showing all HTML Inputs on a web page
I am using a Http Get to request a website with a total of 7 Html Inputs on it.
However, when I get the page and output it, only 5 inputs appear (in either my console or outputted to a text file).
...
0
votes
2answers
194 views
Problems connecting with a PHP: withg java.lang.Exception: HTTP error: 401
I have this code, who should connect to a php remote file and should get a String representing a XML file. But something is wrong, it is giving me error 401.
The variable url is the direction of the ...
0
votes
1answer
1k views
How to asynchronous perform a httprequest and show the progress of downloading the response
I am trying to perform a http-get-request and show the download progress to the user. I am familiar with the concept of AsyncTask, I also know how to use URLConnection together with ...
0
votes
1answer
471 views
Fetch Twitter feed on Android - rate limit exceeded on device?
I'm trying to do a simple parse of a Twitter feed, I'm simply requesting the json feed of a user on twitter and parsing it into an object.
The problem is that this works perfect on the emulator but ...
0
votes
2answers
549 views
HttpGet - Enclosing parameters in quotation marks
I'm working on an Android app that connects to .NET webservices. I use the Apache HttpClient to connect using the HttpGet method. The method that makes the actual call has the following code:
public ...
3
votes
1answer
538 views
HttpClient will only execute once Android
My HttpClient, HttpPost, or HttpGet method is only working once. I can successfully log in an get html from the response the first time, but when I try and log in a second time, the html is blank and ...
0
votes
2answers
1k views
Destroying or Closing HttpClient Android
I have a problem that I think it may relate to the HttpClient. I am logging into a website and grabbing data from it using JSoup. Everything works fine. Here is my issue, when I want to log into a ...
0
votes
1answer
217 views
ClientWithResponseHandler example Gives an ERROR?
I've tried hard to solve this and I couldn't. I'm trying to use httpClient 4.1.2 from apache. As logic I started with the example, the problem is that I'm having some strange error that I don't ...
0
votes
2answers
262 views
HTTPClient - HTTP GETs broken with a # anchor in a redirect URL
This is a bit of a weird one. I'm using HTTPClient 4.1.2, and it seems that whenever it finds are URL with something like a '#' in it, it does a full get with the # in the URL.
For example, trying ...
3
votes
3answers
8k views
HttpClient execute keeps giving ConnectTimeoutException
I have this very big bug in my application that I really can't seem to solve. Whenever I make a rest call via the following code:
HttpGet request = new HttpGet(url + getParams());
HttpParams ...
-6
votes
1answer
747 views
In Java, what do HttpGet(url), HttpPost(url), etc. return? Also, what does httpClient.execute(httpget) return? [closed]
I am trying to understand some Java code but don't know what the following things return:
HttpGet(url)
HttpPut(url)
HttpPost(url)
HttpDelete(url)
and
httpClient.execute(httpget) where:
HttpGet ...