ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is the Basic Difference Between Get and Post Method (OPP)?

user-image
تم إضافة السؤال من قبل Farhad Hossain , Assistant Programmer , Bangladesh Rural Electrification Board
تاريخ النشر: 2015/06/17
Jazeb Pervez Butt
من قبل Jazeb Pervez Butt , Senior Wordpress Developer and Team Leader , CODE WEB DESIGN & SEO

GET

  • GET requests can be cached
  • GET requests remain in the browser history
  • GET requests can be bookmarked
  • GET requests should never be used when dealing with sensitive data
  • GET requests have length restrictions
  • GET requests should be used only to retrieve data

 

POST

 

  • POST requests are never cached
  • POST requests do not remain in the browser history
  • POST requests cannot be bookmarked
  • POST requests have no restrictions on data length

Mohammad Ajo
من قبل Mohammad Ajo , Software Developer , EtQ Inc.

HTTP POST requests supply additional data from the client (browser) to the server in the message body. In contrast, GET requests include all required data in the URL. Forms in HTML can use either method by specifying method="POST"or method="GET" (default) in the <form> element. The method specified determines how form data is submitted to the server. When the method is GET, all form data is encoded into the URL, appended to the action URL as query string parameters. With the POST, form data appears within the message body of the HTTP request.

Ahmed Elfaki
من قبل Ahmed Elfaki , Senir Software Developer , National Health Insurance Fund

HTTP POST requests supply additional data from the client to the server in the message body. GET requests include all required data in the URL. POST , parameters remain in browser cash since they are part of the URL. restricted to ASCII chars. Easier to Hack. restricted length. visible in the URL.GET Parameters are not saved in browser cash.More difficult to hack.No restrictions 

yahia dekar
من قبل yahia dekar , it engineer , university of sidi bel abbes

get her a convinient a concept when us a parameterfrom formulaire

for opposite post he hidden a parameter

JNANESWAR VANGA
من قبل JNANESWAR VANGA , Graduate Intern , SAP

GET request are generally used to get some resources or data from the application server

POST method is used to send data to the application server

Pratheeksha Raju
من قبل Pratheeksha Raju , Faculty , Doon University

GET and POST  are both HTTP request methods to retrieve data from the server but the basic difference is that GET method exposes data in the url while  POST doesnot

Nivedita Ashish Rawat
من قبل Nivedita Ashish Rawat , Secretary To Director , AG international consulting rescheduling of loan

 Get - Requests data from a specified resource

It remains in browser history hence not safe

Post- Submits data to be processed to a specified resource

It is safe method

safia yasmeen
من قبل safia yasmeen , Lecturer , Alfaisal University

Over HTTP  the  request is sent through GET and POST are request methods in order to retrieve the data.

Mohamed Elgarhy
من قبل Mohamed Elgarhy , Senior/Lead Java Developer (Analyst) , vodafone egypt

Get is used to retrieve data and it is simple but have length restrictions and expose data in url so it cant be used as secure request.

 

Post can hide data from URL and can take multi forms.

Mohammad jamal
من قبل Mohammad jamal , Degital Marketing Director , Es

  The Post: - Keep confidential information (values of variables) so that encrypted show in the title of the page and also this does not mean that there is complete secrecy in the use of post so can also know the value of variables passed .. As for the Get: If you'll get used notes  that the value the variables in the browser address unsecured And also advantages of get it allows to send larger size Information

Ibraheem Alibraheem
من قبل Ibraheem Alibraheem , Senior Java Developer / Team Leader , Power One Software

These are http methods and aren't related to OOP

المزيد من الأسئلة المماثلة