Questions tagged [http-get]

HTTP GET is a request method which should be used to retrieve data and should not change state of the server.

HTTP GET is a request method which should be used to retrieve data and should not change state of the server.

1622 questions
0
votes
1 answer

Display Ads using AsyncTask Android

Android 2.3.3 I am integrating an AD service into one of my client's application. Here is what I do in AsyncTask: Construct a query and use HTTP Get method to query the server with the desirable width and height along with other parameters. After…
Vamsi Challa
  • 11,038
  • 31
  • 99
  • 149
0
votes
4 answers

iOS HTTP request - getting the error response message

This is my bit of code doing a GET request to a REST api. Im not sure how to get back the message if I get an error: NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; NSURL *URL = [NSURL URLWithString:urlString]; [request…
Harry
  • 13,091
  • 29
  • 107
  • 167
0
votes
2 answers

HTTP GET not working in AngularJS?

Here is my controller, being served from localhost port 80: function ListCtrl($scope, $http) { $http.get('/api/moz').success(function (data) { $scope.moz = data; }); } And the output from curl: curl -i localhost/api/moz HTTP/1.0 302…
user2283066
  • 141
  • 1
  • 2
  • 6
0
votes
2 answers

window.open with French characters in the url

I use window.open to open a popup with French accented characters in the url. When a new popup opens, I see the French characters properly displayed in the url. ie. http://example.com/alt_title=Thierry%20Frémaux%3A%20Les%20confiden However, when the…
dwong
  • 103
  • 5
  • 14
0
votes
1 answer

httphostconnectexception connection refused

I know there are lots of questions about this matter but I just could not find an answer to this one in specific. I am trying to access HttpClient client = new DefaultHttpClient(); URI website = new…
Akash
  • 367
  • 9
  • 21
0
votes
1 answer

Extracting data from server takes too much time- android

I have a android application, where i extract data from the multiple urls and save then as arraylist of string. It works fine, but for fetching data from 13 urls, it takes close to 15-20 sec. Where as fetching the data from same set of urls take 3-4…
bharath
  • 953
  • 4
  • 17
  • 30
0
votes
1 answer

java: performing website search and getting the result

First of all I have to say, I do not want anybody to do my work for me. I want to make an java application that will search for data on a particular website. It will look like this: I will type a keyword into my jTextField and than i will press my…
user2179427
  • 331
  • 5
  • 16
0
votes
2 answers

Using $_GET with a submit button

I have a table with 3 columns like so in index.php: ID | StName | Inspect _________________________________ 1 Wisconsin INSPECT 2 Alabama INSPECT 3 Nebraska INSPECT The right most column is…
Isaac Perez
  • 570
  • 2
  • 15
  • 31
0
votes
1 answer

Illegal Argument Exception at query index 70

I am trying to update my database field with some value with respect to value send from edit text values ... My code is: Intent myintent = getIntent(); //mdate = intent.getStringExtra("mdate"); //Toast.makeText(getApplicationContext(),…
priya89
  • 77
  • 10
0
votes
0 answers

just getting a partial of result from server, httpGet, android,java

I am learning Android now and I am working on how to fire a request and receive a result from server. What I am doing is // Button Click Event btnLogin.setOnClickListener(new View.OnClickListener() { public void onClick(View…
tranvutuan
  • 6,089
  • 8
  • 47
  • 83
0
votes
1 answer

How to run HTTPPost call service?

I have RESTfull service (Let say, http://apc.tr.re.er:5050/testxyz/service/loaninfo/) and i need to run POST service. I am using following classes : HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost('above rest url');…
MKod
  • 803
  • 5
  • 20
  • 33
0
votes
0 answers

Django Unit Test: Exception on File Download

I'm using a Django Unit test to try and test a file download. It works as an API call, with a required token as a GET parameter, but nothing special. Code is: from django.test.client import Client c = Client() base_url =…
user1034697
0
votes
5 answers

Android I can't get xml from url

I'm trying to get an xml from a url, but I have a bug in HttpResponse. The URL is for example as follows: http://maps.googleapis.com/maps/api/directions/xml?origin=43.364876,-5.8654205&destination=43.545686,-5.664482&sensor=true And my code…
0
votes
2 answers

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; String responseString = null; try { …
floflo41
  • 75
  • 3
  • 13
0
votes
1 answer

URISyntaxException while trying to build an httpget link

I'm getting an URISyntaxException exception while trying to do the following. I have absolutely no idea whats causing the issue. it would be nice to get some help. The error is located in the last line EditText edUserName =…
Sven Niehus
  • 487
  • 5
  • 24