Questions tagged [get]

GET is one of many request methods supported by the HTTP protocol. The GET request method is used when the client needs to get data from the server as part of the request-URI.

GET is one of many request methods supported by the HTTP protocol. The GET request method is used when the client needs to get data from the server as part of the request-URI.

See also: ,

17143 questions
53
votes
8 answers

How do you get/set media volume (not ringtone volume) in Android?

Is there a way to get/set media volume? I have tried the following: AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE); int currentVolume = audio.getStreamVolume(AudioManager.STREAM_RING); but it returns the ringtone…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
51
votes
8 answers

Why is the GET method faster than POST in HTTP?

I am new to web programming and just curious to know about the GET and POST methods of sending data from one page to another. It is said that the GET method is faster than POST but I don't know why. One reason I could find is that GET can take only…
Embedd_0913
  • 16,125
  • 37
  • 97
  • 135
50
votes
17 answers

GET parameters in the URL with CodeIgniter

I know that codeIgniter turns off GET parameters by default. But by having everything done in POST, don't you get annoyed by the re-send data requests if ever you press back after a form submission? It annoys me, but I'm not sure if I want to…
Jon Winstanley
  • 23,010
  • 22
  • 73
  • 116
50
votes
4 answers

Angularjs $http.get().then and binding to a list

I have a list that looks like this:
  • ruffen
    • 1,695
    • 2
    • 25
    • 51
    50
    votes
    2 answers

    Node JS: Automatic selection of `http.get` vs `https.get`

    I have a Node JS app that needs to download a file, given a URL at run-time. The URL may be either http:// or https://. How do I best cater for the different protocols? At the moment I have: var http = require('http'); var https =…
    Chris Nolet
    • 8,714
    • 7
    • 67
    • 92
    49
    votes
    4 answers

    How to send POST and GET request?

    I want to send my JSON to a URL (POST and GET). NSMutableDictionary *JSONDict = [[NSMutableDictionary alloc] init]; [JSONDict setValue:"myValue" forKey:"myKey"]; NSData *JSONData = [NSJSONSerialization dataWithJSONObject:self options:kNilOptions…
    Aleksander Azizi
    • 9,829
    • 9
    • 59
    • 87
    49
    votes
    2 answers

    File uploading using GET Method

    As we all know, file uploading is most often accomplished using POST method. So, why can't the GET method be used for file uploads instead? Is there a specific prohibition against HTTP GET uploads?
    Pradip Kharbuja
    • 3,442
    • 6
    • 29
    • 50
    48
    votes
    6 answers

    Make array of all GET-variables

    I'm trying to make an array from all the GET-variables passed to a PHP script. So far I haven't found any way to do this. Is this possible?
    Emil
    • 7,220
    • 17
    • 76
    • 135
    48
    votes
    2 answers

    HTTP keep-alive timeout

    Can I specify the HTTP timeout or does the server impose a value? For example, if I do: telnet my.server.net 80 Trying X.X.X.X... Connected to my.server.net. Escape character is '^]'. GET /homepage.html HTTP/1.0 Connection: keep-alive Host:…
    Ricky Robinson
    • 21,798
    • 42
    • 129
    • 185
    48
    votes
    12 answers

    get all the images from a folder in php

    I am using WordPress. I have an image folder like mytheme/images/myimages. I want to retrieve all the images name from the folder myimages Please advice me, how can I get images name.
    Sksudip
    • 569
    • 2
    • 6
    • 9
    47
    votes
    4 answers

    How to send parameters with jquery $.get()

    I'm trying to do a jquery GET and i want to send a parameter. here's my function: $(function() { var availableProductNames; $.get("manageproducts.do?option=1", function(data){ availableProductNames = data.split(",");; …
    Dan Dinu
    • 32,492
    • 24
    • 78
    • 114
    47
    votes
    7 answers

    Parametrized get request in Ruby?

    How do I make an HTTP GET request with parameters in Ruby? It's easy to do when you're POSTing: require 'net/http' require 'uri' HTTP.post_form URI.parse('http://www.example.com/search.cgi'), { "q" => "ruby", "max" => "50"…
    Tom Lehman
    • 85,973
    • 71
    • 200
    • 272
    46
    votes
    8 answers

    How can I get access to a Django Model field verbose name dynamically?

    I'd like to have access to one my model field verbose_name. I can get it by the field indice like this model._meta._fields()[2].verbose_name but I need to get it dynamically. Ideally it would be something like this…
    philgo20
    • 6,337
    • 6
    • 34
    • 43
    45
    votes
    2 answers

    How to return named tuples in C#?

    I have a property that returns two items of type DateTime. When returning these values I have to reference them as Item1 and Item2. How do I return with custom names e.g. filter?.DateRanges.From filter?.DateRanges.To   public Tuple
    Karim Ali
    • 463
    • 1
    • 4
    • 7
    45
    votes
    11 answers

    Getting connect ECONNREFUSED 127.0.0.1:80 when attempting HTTP request

    I am attempting to make a http request to news.google.com using the native node.js http module. I am getting the connect ECONNREFUSED 127.0.0.1:80 error when I tried the following var http = require('http'); var payload = JSON.stringify({ …
    ng-hacker-319
    • 609
    • 2
    • 6
    • 8