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.

1503 questions
2438
votes
21 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
  • 75,014
  • 17
  • 95
  • 156
905
votes
29 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
  • 11,017
  • 4
  • 29
  • 37
550
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
  • 26,196
  • 20
  • 81
  • 119
390
votes
4 answers

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

Do querystring parameters get encrypted in HTTPS when sent with a request?
Deep
  • 4,936
  • 2
  • 23
  • 31
372
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
  • 107,741
  • 94
  • 299
  • 427
304
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
  • 44,540
  • 54
  • 163
  • 207
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
  • 17
  • 23
147
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
132
votes
10 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
  • 81,082
  • 147
  • 410
  • 611
119
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,877
  • 6
  • 26
  • 30
119
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,571
  • 5
  • 26
  • 40
92
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,307
  • 4
  • 29
  • 24
81
votes
2 answers

What is the difference between [AcceptVerbs(HttpVerbs.Post)] and [HttpPost]?

I can decorate an action either with the [AcceptVerbs(HttpVerbs.Post)]/[AcceptVerbs(HttpVerbs.Get)] [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(string title) { // Do Something... } or with the [HttpPost]/[HttpGet]…
Lorenzo
  • 28,103
  • 43
  • 117
  • 208
63
votes
6 answers

Writing image to local server

Update The accepted answer was good for last year but today I would use the package everyone else uses: https://github.com/mikeal/request Original I'm trying to grab google's logo and save it to my server with node.js. This is what I have right now…
Mark
  • 28,819
  • 33
  • 102
  • 136
61
votes
4 answers

Standardized way to serialize JSON to query string?

I'm trying to build a restful API and I'm struggling on how to serialize JSON data to a HTTP query string. There are a number of mandatory and optional arguments that need to be passed in the request, e.g (represented as a JSON object below): { …
Andreas
  • 1,061
  • 1
  • 9
  • 20
1
2 3
99 100