HTTP GET or POST for my AJAX call

HTTP GET or POST for my AJAX call

hello,

Should I use an HTTP GET or POST for my AJAX calls?

View Answers

October 25, 2010 at 3:36 PM

Hii,

AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL. An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture.









Related Tutorials/Questions & Answers:
HTTP GET or POST for my AJAX call
HTTP GET or POST for my AJAX call  hello, Should I use an HTTP GET or POST for my AJAX calls?   Hii,ADS_TO_REPLACE_1 AJAX requests should use an HTTP GET request when retrieving data where the data will not change
post get
post get  what is ajax
Advertisements
https call in AJAX - Ajax
https call in AJAX  Hi, I am trying to call a https URL in my AJAX script which is in my JSP. But it is not getting the reponse from the url i..., Please visit the following links: http://www.roseindia.net/jsp/pop
post get
post get  what is post and get
Ajax post example
Ajax post example  Hi, I am looking for ajax post example. Thanks   Hi, You can use jQuery to jQuery Post Data. Thanks
get and post
get and post  what is php and get   PHP get and post method
GET and POST Method of HTTP
GET  and POST Method of HTTP       GET The Get is one the simplest Http method. Its main job... page, a sound file, a picture file (JPEG) etc. We can say that get method
POST or GET
POST or GET  hello, Which will execute faster on php POST or GET?   hii,ADS_TO_REPLACE_1 The POST metod is much more faster then GET... no information is given to ULR that's why POST is faster then GET method
what is an ajax call?
what is an ajax call?  can u please explain the correct usage of an ajax call in jsps and java script.   hi friend, Ajax is new technologies for the development of web application. Ajax is known as Asynchronous
HTTP Post PHP
HTTP Post PHP  HTTP post method example in PHP
HTTP_POST_VARS is deprecated
HTTP_POST_VARS is deprecated  HTTPPOSTVARS is deprecated. Which function to be used? Thanks   Hi, You should use: $id=$_GET["id"]; or $id=$_POST["id"]; thanks
what is an ajax call?
what is an ajax call?  can u please explain the correct usage of an ajax call in jsps and java script
Difference between GET and POST
Difference between GET and POST   Difference between GET and POST ?   The difference between a GET and a POST is the way data... this: http://www.roseindia.net/jsp?para1=paraValueADS_TO_REPLACE_1 With a POST
post ,get data in the database
post ,get data in the database  post ,get data in the database  Please visit the following links: PHP get post data PHP Tutorials
GET and POST methods
GET and POST methods   What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods
POST AND GET METHOD - JSP-Servlet
POST AND GET METHOD  I AM LITTLE BIT CONFUSED IN GET() AND POST...://www.roseindia.net/jsp/how-work-post.shtml http://www.roseindia.net/html/html-get..., Please visit the following links: http://www.roseindia.net/jsp
HTML form methods GET and POST
HTML form methods GET and POST  What is the difference between the HTML form methods GET and POST
Java Servlet : Difference between GET and POST
Java Servlet : Difference between GET and POST In this section, we  will differentiate the GET and POST method of servlet. GET - It is HTTP method, asks to get thing at the requested URL. POST - It is HTTP method, asks
database call from javaScript - Ajax
database call from javaScript  Dear All, In my project i have one... name. and i have to do this in javascript.How do i call database query ,if suppose i have selected two building from text area,i have to finish
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need..." "http://www.w3.org/TR/html4/loose.dtd"> <%@taglib uri="/struts-tags" prefix
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need..." "http://www.w3.org/TR/html4/loose.dtd"> <%@taglib uri="/struts-tags" prefix
getting null value in action from ajax call
getting null value in action from ajax call  Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need..." "http://www.w3.org/TR/html4/loose.dtd"> <%@taglib uri="/struts-tags" prefix
Addition to my previous post - Java Beginners
Addition to my previous post  Addition to my previous question about the address book program. I need to have separate classes: CmdLineAddressBook.java AddressBook.java Contact.java Address.java Name.java
how to display jsp page containing mysql query in particular division using ajax ?my code is below bt i cundt get it properly
ajax ?my code is below bt i cundt get it properly   index.html <...; <title></title> <meta http-equiv="Content-Type... request; // The variable that makes Ajax possible! try{ // Opera 8.0
differences between GET and POST methods in form submit
differences between GET and POST methods in form submit  What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods
What is the difference between GET and POST method?
What is the difference between GET and POST method?  In PHP, both GET and POST method serves the same feature to get the data in variable. Still... it in detail with the case where we can use GET and POST method in PHP.   
php $_GET and $_POST functions
php $_GET and $_POST functions:       PHP provides two special functions called $_GET & $_POST, this functions... and effective than $_ POST, $_GET has few limitations like it can send about 100 words
jQuery ajax get example
jQuery ajax get example  Hi, How I can use jQuery for get request? Give me code for jQuery ajax get request. Thanks
ajax example
program? Thanks   Hi, Get it at: Ajax Tutorials First Ajax...; Ajax post example Ajax post example  Hi, I am looking for ajax post example. Thanks   Hi, You can
post
post method in PHP  Write an example of the post method in PHP to send the data to another page or simply update the database.   in post values in the url will be hidden   in post   post
post
post  what is post   vxvxcvxcv   Please visit the following link: Post in PHP
get files list - Ajax
get files list  Please,friend how to get files list with directories from ftp server or local files on web browser. Thanks, Tin Linn Soe  ...) ------------------------------ Visit for more information. http
How to add google page in my webpage using jquery ajax.
How to add google page in my webpage using jquery ajax.  Hi, I... not open on my browser. how google page will load using ajax. thanks...; </head> <script type="text/javascript" src="http
how to call list objects as string into my sql query?
how to call list objects as string into my sql query?  how to call list data as string into my sql query so that i can retrieve all values from database? List has data retrieved from xml(using xmlSAXparser
how do i make a phone call from my app without quitting my application
how do i make a phone call from my app without quitting my application  hi, I am working on creating a call application, i am making a call from my... quits , i want my application to go to background and resume on call end ...please
Simple Ajax Example, Developing Simple Ajax application
to make Ajax call to a server-side script and then get the data from... the name user can press the "Say Hello" button. Then an Ajax call...Simple Ajax Example       Simple
Ajax
Ajax  Hi, What is Ajax? What is the use of Ajax? Thanks   Hi, Ajax is set of technologies used to develop dynamic web applications. In Ajax following technologies is used: a) JavaScript b) XML c) HTTP d) CSS Learn
Ajax with BIRT - Ajax
to call my BIRT report from my jsp on a button Click. I have tried some code. But I am... is my code.. JSP and Servlet using AJAX function getXMLObject... to var url = "http://localhost:8080/BIRT_Ajax/run?__report=test.rptdesign
ModuleNotFoundError: No module named 'get-my-pastebin'
ModuleNotFoundError: No module named 'get-my-pastebin'  Hi, My... named 'get-my-pastebin' How to remove the ModuleNotFoundError: No module named 'get-my-pastebin' error? Thanks   Hi, In your python
JSP Ajax Form
Ajax Form Example This example explains you how to develop a form that populates dynamically from the database though Ajax call. When user selects employee... in the box automatically. Read more at http://www.roseindia.net/software
how to get popup fro servelt to jsp by using ajax........
how to get popup fro servelt to jsp by using ajax........  how to get popup fro servelt to jsp by using ajax........ I went popup in jsp page when my form submit successfully.....through servlet can any buddy give r explian how
ajax - Ajax
("Your browser does not support Ajax HTTP"); return; } var s...ajax  Hi all, I want ajax validation in struts1.0 , I tried from many days but, i cound't find solution.. I am attaching my code here. struts
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to get popup fro servelt to jsp by using ajax........
how to get popup fro servelt to jsp by using ajax........  how to get popup fro servelt to jsp by using ajax. I went popup in jsp page when my...; this my java script and ajax file same..:saluValidate.js function validateSalu(butt
Retrieve HTTP Request Headers using JSP
the request headers.ADS_TO_REPLACE_1 When a HTTP client sends a request, it is required to supply GET or POST. It can send a number of headers. Here are some headers... Retrieve HTTP Request Headers using JSP   
ajax - Ajax
ajax  Dear Roseindia, I want small application using ajax validation in struts1 login. I tried from many days but, i coudn't get solution..Do... Friend, Please visit the following links: http://www.roseindia.net
Ajax Learner - Ajax
Ajax Learner  Hi, This is Ziaul,I am working as Java/j2ee Developer from last one year. i have to use Ajax for my current project.pls guide me how... on Ajax visit to : http://www.roseindia.net/ajax/ http://www.roseindia.net
Ajax Learner - Ajax
from last one year. i have to use Ajax for my current project.pls guide me how... information,Tutorials and Examples on Ajax visit to : http://www.roseindia.net/ajax/ http://www.roseindia.net/jsp/comboSelect.shtml Thanks

Ads