Skip to main content
451 votes
7 answers
797k views

What is the difference between POST and GET? [duplicate]

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 ...
Hristo's user avatar
  • 46.7k
290 votes
15 answers
222k views

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's user avatar
  • 8,644
436 votes
17 answers
725k views

How to retrieve GET parameters from JavaScript [duplicate]

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 ...
compile-fan's user avatar
  • 17.7k
296 votes
8 answers
456k views

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 => ...
tomermes's user avatar
  • 23.4k
639 votes
19 answers
958k views

How to get GET request values in Django?

I am currently defining regular expressions in order to capture parameters in a URL, as described in the tutorial. How do I access parameters from the URL as part the HttpRequest object? My ...
sutee's user avatar
  • 12.8k
344 votes
13 answers
465k views

Passing base64 encoded strings in URL

Is it safe to pass raw base64 encoded strings via GET parameters?
Alix Axel's user avatar
  • 155k
315 votes
29 answers
189k views

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 ...
272 votes
6 answers
190k views

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 ...
Paul Biggar's user avatar
  • 28.9k
239 votes
7 answers
886k views

How to read GET URL parameter?

I'm trying to pass a URL as a URL parameter in PHP but when I try to get this parameter I get nothing I'm using the following URL form: http://localhost/dispatch.php?link=www.google.com
Feras Odeh's user avatar
  • 9,316
40 votes
7 answers
62k views

Servlet and path parameters like /xyz/{value}/test, how to map in web.xml?

Does servlet support urls as follows: /xyz/{value}/test where value could be replaced by text or number. How to map that in the web.xml?
BlackEagle's user avatar
144 votes
27 answers
451k views

How to get the Full file path from URI

I'd like to get the full file path, from a URI. The URI isn't a Image, but it's a music file, but if i do it like the MediaStore Solution, it won't work if the app user selects eg Astro as browser, ...
tim687's user avatar
  • 2,276
146 votes
6 answers
209k views

How are POST and GET variables handled in Python?

In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What's the equivalent in Python?
Ali's user avatar
  • 268k
793 votes
9 answers
348k views

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 ...
Dan Herbert's user avatar
28 votes
7 answers
151k views

Why is Tkinter Entry's get function returning nothing?

I'm trying to use an Entry field to get manual input, and then work with that data. All sources I've found claim I should use the get() function, but I haven't found a simple working mini example yet,...
CodingCat's user avatar
  • 5,421
612 votes
10 answers
171k views

Logging out: 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 ...
Daniel Liuzzi's user avatar

15 30 50 per page
1
2 3 4 5
89