[EMAIL PROTECTED] schrieb:
> In my limited beginner's understanding of REST interfaces and HTML,
> I'm told it is proper to *pull* data from server with HTML GETs
> and to *push* data to server with HTML POSTs....is that right?
> 
> If yes, then how come MochiKit's doXHR function defaults to *GET* mode
> since it
> *pushes* data to server?  Shouldn't doXHR default to POST to be prim
> and
> proper?  :)
> 
> Just wondering,

You fundamentally misunderstand the HTTP-protocol. The browser ALWAYS 
initiates the communication. It will always send and then retrieve.

The operations are above that. And can be roughly qualified like this:


  - GET if you query information, not changing it (server side!)

  - POST if you change server side information


And thus GET should be the default - or does each request of yours 
change your model?

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to