Jquery :Just know more about the http before using ajax operation

Jquery :Just know more about the http before using any ajax operation

Spread the love

Safe and Idempotent Methods

users should be safe and should be aware of any action he takes which may have an unexpected significance to himself or others
i.e GET , HEAD only perform a get requesti.e retrieve

Idempotent Methods :

Clients will do n>0 requests i.e clients will make multiple requests while getting the same output
Clients can make that same call repeatedly while producing the same result.
Making multiple identical requests has the same effect as making a single request. Idempotent operations produce the same result on the server (no side effects), the response itself may not be the same (e.g. a resource’s state may change between requests).

eg. PUT and DELETE

But Delete returns 200(OK)
204(No Content)
4o4(Not Found)

once deleted and then again performing deletion will give 404 but the state on the server is the same.


It will get the output after reading the URL and now will be the same for the entire operation.
Conditional Get :-
or If-Range header field.


  • Annotation of existing resources;
    • Posting a message to a bulletin board, newsgroup, mailing list,
      or similar group of articles;
    • Providing a block of data, such as the result of submitting a
      form, to a data-handling process;
    • Extending a database through an append operation.

The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server.

If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new resource by the requesting user agent, the origin server can create the resource with that URI.

If a new resource is created, the origin server MUST inform the user agent via the 201 (Created) response.
If an existing resource is modified, either the 200 (OK) or 204 (No Content) response codes SHOULD be sent to indicate successful completion of the request.
If the resource could not be created or modified with the Request-URI, an appropriate error response SHOULD be given that reflects the nature of the problem.


putting a resource twice no effects by using PUT while POST is not idempotent

put works as specific while POST work as abstract

We can create or update a resource using PUT and then can make the same call, again, and again, the resource is still there with the same state as it did with the first call while PUT makes two identical post requests will most result in two resources containing the same information.

if we name URL objects we create explicitly, or let the server decide? If you name them then use PUT. If you let the server decide then use POST

Jquery, it’s time to master, but how much?


    1. Thank you so much for your valuable feedback..

  1. Amazing blog! Is your theme custom made or did you download it from somewhere?
    A design like yours with a few simple tweeks would really make my blog jump out.
    Please let me know where you got your design. Many

    1. Thank you! It comes prebuilt but you need to customize it, how you would like to display it out. Our team will be delighted if we can aid you.Thank you.

  2. Everything is very open with a really clear clarification of the
    challenges. It was definitely informative.
    Your website is very helpful. Many thanks for sharing!

  3. I think the admin of this website is genuinely working hard in favor
    of his web page, as here every material is quality based

  4. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet smart so I’m not 100% sure. Any recommendations or advice would be greatly appreciated.


    1. It’s off the topic, but still, if you want you can use any cms tool Sitefinity, word press , web builder, site core etc..i.e there are many out there…
      also, you need to know about SEO , HTML, CSS, and javascript . Once you are done. You are easy to go. Still, if you want we can make website for you. Thank you.

  5. Thanks designed for sharing such a pleasant opinion, piece of writing is nice,
    thats why i have read it entirely

    1. Thank you for your wonderful feedback

  6. It’s not my first time to pay a visit this website,
    i am browsing this web page dailly and take nice information from
    here all the time.

    1. Thank yoiu fro your valuable feedback

  7. Magnificent beat ! I wish to apprentice whilst you amend
    your web site, how could i subscribe for a blog site? The account helped me a applicable deal.
    I had been tiny bit familiar of this your broadcast offered shiny transparent idea

  8. My relatives always say that I am wasting my
    time here at web, except I know I am getting familiarity everyday by reading such good articles.

  9. Currently it appears like Drupal is the best blogging platform out there
    right now. (from what I’ve read) Is that what
    you are using on your blog?

  10. I really like what you guys are usually up too. This type of clever work and exposure!

    Keep up the awesome works guys I’ve included you guys to our blogroll.

  11. I enjoy what you guys tend to be up too. This sort of clever work and
    coverage! Keep up the excellent works guys I’ve included you guys to my own blogroll.

  12. When I originally left a comment I appear to have clicked on the
    -Notify me when new comments are added- checkbox and now whenever a
    comment is added I receive 4 emails with the exact same comment.
    Is there a way you are able to remove me from that service?
    Appreciate it!

    Also visit my website :: Daisy

Leave a Reply

Your email address will not be published. Required fields are marked *