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
3022
votes
24 answers

HTTP GET with request body

I'm developing a new RESTful webservice for our application. When doing a GET on certain entities, clients can request the contents of the entity. If they want to add some parameters (for example sorting a list) they can add these parameters in the…
Evert
  • 93,428
  • 18
  • 118
  • 189
1055
votes
31 answers

HTTP GET request in JavaScript?

I need to do an HTTP GET request in JavaScript. What's the best way to do that? I need to do this in a Mac OS X dashcode widget.
mclaughj
  • 12,645
  • 4
  • 31
  • 37
631
votes
10 answers

OS X: equivalent of Linux's wget

How can I do an HTTP GET from a Un*x shell script on a stock OS X system? (installing third-party software is not an option, for this has to run on a lot of different systems which I don't have control on). For example if I start the Mercurial…
SyntaxT3rr0r
  • 27,745
  • 21
  • 87
  • 120
458
votes
4 answers

Are querystring parameters secure in HTTPS (HTTP + SSL)?

Do querystring parameters get encrypted in HTTPS when sent with a request?
Deep
  • 5,772
  • 2
  • 26
  • 36
407
votes
27 answers

When do you use POST and when do you use GET?

From what I can gather, there are three categories: Never use GET and use POST Never use POST and use GET It doesn't matter which one you use. Am I correct in assuming those three cases? If so, what are some examples from each case?
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
329
votes
10 answers

Why am I getting an OPTIONS request instead of a GET request?

it does an OPTIONS request to that URL, and then the…
Paul Tarjan
  • 48,968
  • 59
  • 172
  • 213
293
votes
14 answers

When submitting a GET form, the query string is removed from the action URL

Consider this form:
When submitting this GET form, the parameters a and b are disappearing. Is there a reason for that? Is there a…
None
211
votes
7 answers

Cache an HTTP 'Get' service response in AngularJS?

I want to be able to create a custom AngularJS service that makes an HTTP 'Get' request when its data object is empty and populates the data object on success. The next time a call is made to this service, I would like to bypass the overhead of…
Gavriguy
  • 3,068
  • 3
  • 19
  • 23
160
votes
6 answers

Is there a limit to the length of a GET request?

Is there a limit to the length of a GET request?
Javapolis
159
votes
8 answers

http HEAD vs GET performance

I am setting-up a REST web service that just need to answer YES or NO, as fast as possible. Designing a HEAD service seems the best way to do it but I would like to know if I will really gain some time versus doing a GET request. I suppose I gain…
Asterius
  • 2,180
  • 2
  • 19
  • 27
142
votes
11 answers

Is GET data also encrypted in HTTPS?

When you GET https://encrypted.google.com/search?q=%s Is the %s query encrypted? Or just the response? If it is not, why should Google serve its public content also with encryption?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
135
votes
6 answers

What 'sensitive information' could be disclosed when setting JsonRequestBehavior to AllowGet

I've been getting the same old error every time I test a new URL from my browser's address bar when I'm returning Json (using the built-in MVC JsonResult helper): This request has been blocked because sensitive information could be disclosed to…
A. Murray
  • 2,761
  • 5
  • 27
  • 40
122
votes
7 answers

How to add parameters to a HTTP GET request in Android?

I have a HTTP GET request that I am attempting to send. I tried adding the parameters to this request by first creating a BasicHttpParams object and adding the parameters to that object, then calling setParams( basicHttpParms ) on my HttpGet object.…
groomsy
  • 4,945
  • 6
  • 29
  • 33
117
votes
18 answers

How to correctly use axios params with arrays

How to add indexes to array in query string? I tried send data like this: axios.get('/myController/myAction', { params: { storeIds: [1,2,3] }) And I got this…
Zin Kun
  • 1,273
  • 2
  • 8
  • 6
99
votes
4 answers

Is it wrong to return 202 "Accepted" in response to HTTP GET?

I have a set of resources whose representations are lazily created. The computation to construct these representations can take anywhere from a few milliseconds to a few hours, depending on server load, the specific resource, and the phase of the…
user359996
  • 5,533
  • 4
  • 33
  • 24
1
2 3
99 100