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

How to place parameter so that rails request can find it

I have the following piece of ruby code: authenticate_this(request.env["SOME_ID"]) What I want to know is how do I place this "SOME_ID" within the HTTP GET request. From what I understand, these rails request parameters are preset? If so what is…
ace
  • 189
  • 1
  • 1
  • 9
0
votes
2 answers

Unable to fetch and display JSON in Android

I am building a complex application however I am having an isolated problem. My Android application class UserPage.java should be able to fetch a String from a webpage and then pass that over to the layout and display it…
Dite Gashi
  • 128
  • 2
  • 13
0
votes
1 answer

Make REST call in JavaScript without using JSON?

(extremely ignorant question, I freely admit) I have a simple web page with a button and a label. When I click the button, I want to make a REST call to an entirely different domain (cross-domain, I know that much) and display the results (HTML) in…
0
votes
1 answer

Android get request returns incomplete data

As the title states, Im using httpget in android, and its working. However, it's returning incomplete data. the call is returning roughly 99kb of json data. However, My function is only producing 38kb and the json string is incomplete. I'm not…
Chris
  • 125
  • 1
  • 3
  • 12
0
votes
0 answers

android retrieving large string from HttpGet

I have an httpclient class i created. Within it i have a static method, "retrieveHttpGet(String url)", that returns a JSON object. I'm using my own web API as the endpoint to retrieve data. Everything works fine when i'm retrieving a few lines of…
David
  • 10,418
  • 17
  • 72
  • 122
0
votes
1 answer

Yummly API returns strange characters in JSON response (Android)

I access the Yummly database for recipes in my Android app using the html query: http://api.yummly.com/v1/api/recipes?_app_id=MY-APP-ID_app_key=MY-APP-KEY&q=KEYWORD Even though their documentation states that the GET requests are returned in the…
Szymon Przedwojski
  • 181
  • 2
  • 4
  • 12
0
votes
1 answer

HTTP-GET with Android

I'm trying to "open" a webpage with this code: public HttpResponse hitUrl(String url) { try { HttpClient httpclient = new DefaultHttpClient(); HttpResponse response = httpclient.execute(new HttpGet(url)); return…
pesc
  • 25
  • 1
  • 7
0
votes
1 answer

post or get for controller actions

I am working with asp.net mvc 4.0 and doing alot of client side development. I have a general question regarding using POST or GETS when interacting with the server for jquery calls. Is it more perform ant to use a GET and not a POST when lets say…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
3 answers

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 solve this? The Code: public class MainActivity…
0
votes
1 answer

Drupal 7 post data to external url

Can anyone offer some direction on how to achieve a programmatic POST request? I have developed a module which needs to send data to an external URL as part of it's functionality. To achieve that, I am using the following…
sisko
  • 9,604
  • 20
  • 67
  • 139
0
votes
1 answer

httpget call to foursquare loops indefinitely

I'm making use of Foursquare's API to list all the categories with the following code HttpGet httpGet = new HttpGet(FOURSQUARE_CAT); HttpClient client = new DefaultHttpClient(); HttpResponse response; StringBuilder…
acvon
  • 161
  • 3
  • 6
  • 21
0
votes
1 answer

Cannot pass a String parameter to HttpGet constructor, requires URI

I am working on an embedded platform where I don't have java.net package (and consequently java.net.URI). I try to create an HttpClient using Apache libraries, but when I create an HttpGet object and pass a String parameter like this String request…
Limbo Exile
  • 1,321
  • 2
  • 21
  • 41
0
votes
1 answer

How can I make HTTP Get request using HttpClient to look similar to a request from iPhone

The title is a bit confusing. In my Android app, I am making an HttpGet request using HttpClient object. I am not setting any headers so all default values. The request works fine and i get the response from the server. The problem is that when the…
binW
  • 13,220
  • 11
  • 56
  • 69
0
votes
0 answers

Does Web API require model POCOs in order to use Model Validation?

I have a ASP.NET WEB API application that is very "GET" intensive. Most of the methods accept variation of params where method signature varies For example [HttpGet] public async Task GetProducts(int year) { …
zam6ak
  • 7,229
  • 11
  • 46
  • 84
0
votes
1 answer

HTTP Request Android Dev

I'm trying to request for HTTP but it's dying on me on HttpResponse httpResponse = httpClient.execute(httpGet); Below is my code... public JSONObject getJSONFromUrl(String url) { // HTTP Request try { // defaultHttpClient …
Mike
  • 826
  • 11
  • 31
1 2 3
99
100