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
765
votes
9 answers

Are HTTPS headers encrypted?

When sending data over HTTPS, I know the content is encrypted, however I hear mixed answers about whether the headers are encrypted, or how much of the header is encrypted. How much of HTTPS headers are encrypted? Including GET/POST request URLs,…
Dan Herbert
  • 99,428
  • 48
  • 189
  • 219
585
votes
10 answers

Logout: GET or POST?

This question is not about when to use GET or POST in general; it is about which is the recommended one for handling logging out of a web application. I have found plenty of information on the differences between GET and POST in the general sense,…
Daniel Liuzzi
  • 16,807
  • 8
  • 52
  • 57
443
votes
7 answers

What is the difference between POST and GET?

I've only recently been getting involved with PHP/AJAX/jQuery and it seems to me that an important part of these technologies is that of POST and GET. First, what is the difference between POST and GET? Through experimenting, I know that GET appends…
Hristo
  • 45,559
  • 65
  • 163
  • 230
422
votes
17 answers

How to retrieve GET parameters from JavaScript

Consider: http://example.com/page.html?returnurl=%2Fadmin For js within page.html, how can it retrieve GET parameters? For the above simple example, func('returnurl') should be /admin. But it should also work for complex query strings...
compile-fan
  • 16,885
  • 22
  • 59
  • 73
338
votes
8 answers

How to send a GET request from PHP?

I'm planning to use PHP for a simple requirement. I need to download a XML content from a URL, for which I need to send HTTP GET request to that URL. How do I do it in PHP?
Veera
  • 32,532
  • 36
  • 98
  • 137
325
votes
8 answers

How to pass parameters in GET requests with jQuery

How should I be passing query string values in a jQuery Ajax request? I currently do them as follows but I'm sure there is a cleaner way that does not require me to encode manually. $.ajax({ url: "ajax.aspx?ajaxid=4&UserID=" + UserID +…
HeavenCore
  • 7,533
  • 6
  • 47
  • 62
319
votes
11 answers

Passing base64 encoded strings in URL

Is it safe to pass raw base64 encoded strings via GET parameters?
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
318
votes
7 answers

Correct way to pass multiple values for same parameter name in GET request

I'm looking into what is the correct way to pass multiple values for the same parameter name in a GET request. I've seen URLs like this: http://server/action?id=a&id=b And I've seen URLs like this: http://server/action?id=a,b My understanding is…
stripybadger
  • 4,539
  • 3
  • 19
  • 26
315
votes
8 answers

How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?

There is an online HTTP directory that I have access to. I have tried to download all sub-directories and files via wget. But, the problem is that when wget downloads sub-directories it downloads the index.html file which contains the list of files…
Omar
  • 6,681
  • 5
  • 21
  • 36
311
votes
29 answers

Is either GET or POST more secure than the other?

When comparing an HTTP GET to an HTTP POST, what are the differences from a security perspective? Is one of the choices inherently more secure than the other? If so, why? I realize that POST doesn't expose information on the URL, but is there any…
James McMahon
  • 48,506
  • 64
  • 207
  • 283
282
votes
15 answers

When should I use GET or POST method? What's the difference between them?

What's the difference when using GET or POST method? Which one is more secure? What are (dis)advantages of each of them? (similar question)
Adriana
  • 8,464
  • 13
  • 36
  • 37
278
votes
8 answers

Escaping ampersand in URL

I am trying to send a GET message that contains strings with ampersands and can't figure how to escape the ampersand in the URL. Example: http://www.example.com?candy_name=M&M result => candy_name = M I also…
tomermes
  • 22,950
  • 16
  • 43
  • 67
268
votes
6 answers

How to "perfectly" override a dict?

How can I make as "perfect" a subclass of dict as possible? The end goal is to have a simple dict in which the keys are lowercase. It would seem that there should be some tiny set of primitives I can override to make this work, but according to all…
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
255
votes
22 answers

How to build query string with Javascript

Just wondering if there is anything built-in to Javascript that can take a Form and return the query parameters, eg: "var1=value&var2=value2&arr[]=foo&arr[]=bar..." I've been wondering this for years.
John II
217
votes
7 answers

Do I need a content-type header for HTTP GET requests?

As far as I understood there are two places where to set the content type: The client sets a content type for the body he is sending to the server (e.g. for post) The server sets a content type for the response. Does this mean I don't have to or…
Martin Flucka
  • 3,125
  • 5
  • 28
  • 44
1
2 3
99 100