Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/09/08 21:48
Read: times


 
#153095 - GET vs POST
Responding to: ???'s previous message
Craig Steiner said:
Both GET and POST can be used for submitting or retrieving data from the server.

Andy Neil said:
As I understand it, a GET Request never has a body; whereas a POST may have a body - which is why I said, "GET is for getting"


At the end of the day everything is for getting stuff from the server. Even if you send a message or an image to the server, the ultimate function of the transaction is to get stuff from the server--even if you only get an acknowledgment of receipt. The only question is how much data you send to the server to provoke that response.

GET and POST can be used pretty much interchangeably in most cases. Again, the exceptions are for sending rather large quantities of data where POST obviously can handle it due to the "body" submission. But you could easily send a huge amount of data (especially a large number of variables) even with GET where the only thing you get back from the server is "Yep, got it."

Craig Steiner said:
POST should be used if you need to submit large amounts of data

Andy Neil said:
Absolutely - that's why it has a Body!


Of course. But that doesn't mean that any generalization such as "GET" is for getting and "POST" is for submitting is a valid assessment. I could agree with "POST is for submitting large quantities of data" and leave it at that.

In theory you could do all transactions with the server using POST. Browsers don't do that, but they could. As could any custom client that was going to communicate with a web server. In fact it might be easier to just do everything with POST rather than writing one routine to submit GET requests and another to submit POSTs. Unless you don't need post at all in which case the process of a GET exchange is much simpler than a POST exchange.

Regards,
Craig Steiner


List of 60 messages in thread
TopicAuthorDate
Connecting ethernet kit to internet            01/01/70 00:00      
   Basics            01/01/70 00:00      
      making terminal as web server problem            01/01/70 00:00      
         Why can't you make every kit a website?            01/01/70 00:00      
   Online Reader ---plz help its urgent!!!!            01/01/70 00:00      
      Why not to use "urgent" in the topic.            01/01/70 00:00      
         Especially when there is no urgency!            01/01/70 00:00      
      Some more basics            01/01/70 00:00      
         how to access a embedded terminal via website?            01/01/70 00:00      
            Impossible to answer            01/01/70 00:00      
               I was just guessing            01/01/70 00:00      
                  He said...            01/01/70 00:00      
   Websites and HTTP            01/01/70 00:00      
      cost problem and web server            01/01/70 00:00      
         Slightly missing the point - Clients and Servers            01/01/70 00:00      
            Public & Private IP Addresses            01/01/70 00:00      
         Polling            01/01/70 00:00      
            Re:Polling            01/01/70 00:00      
               How to..            01/01/70 00:00      
                  Re: How to..            01/01/70 00:00      
                  A DS80C400 FAQ            01/01/70 00:00      
                     Client, not Server [edited]            01/01/70 00:00      
               Polling            01/01/70 00:00      
         A suggestion            01/01/70 00:00      
            So don't access them publically!            01/01/70 00:00      
            Security!            01/01/70 00:00      
   not able to get responce!!            01/01/70 00:00      
      Probably            01/01/70 00:00      
         link            01/01/70 00:00      
            Way beyond that?            01/01/70 00:00      
      Fiddler on the HTTP            01/01/70 00:00      
      Have you studied that Tutorial yet?            01/01/70 00:00      
      Diagnostics at the Server?            01/01/70 00:00      
   new problem??            01/01/70 00:00      
      Upload & Download            01/01/70 00:00      
         GET and POST            01/01/70 00:00      
            RE: GET and POST            01/01/70 00:00      
               GET vs POST            01/01/70 00:00      
                  Request-Response            01/01/70 00:00      
                     They could            01/01/70 00:00      
                        System            01/01/70 00:00      
                           I guess            01/01/70 00:00      
                              Server restrictions            01/01/70 00:00      
         Re: upload or download            01/01/70 00:00      
            Time to review the basics - again!            01/01/70 00:00      
               More detail            01/01/70 00:00      
            No can do            01/01/70 00:00      
               Illustration            01/01/70 00:00      
   what i was doing..            01/01/70 00:00      
      You're going in circles            01/01/70 00:00      
      IPv6            01/01/70 00:00      
         Not relevant            01/01/70 00:00      
      Urgent?            01/01/70 00:00      
         sorry for writing urgent!!            01/01/70 00:00      
            Real Time??            01/01/70 00:00      
               re:why real time?            01/01/70 00:00      
                  But does that really require real time?!            01/01/70 00:00      
            No            01/01/70 00:00      
   Internet is not real-time!            01/01/70 00:00      
      internet is no real            01/01/70 00:00      

Back to Subject List