Search code examples
httppostgetwebserverdata-transfer

What is more compact, GET or POST?


Is POST more compact than GET, since GET requests have to be URL-encoded?


Solution

  • Just a quick note: According to Yahoo YUI team and YSlow, when using XMLHttpRequest objects (AJAX), POST almost always uses two packets, while GET will use one (content length permitting).

    This means that your AJAX requests are "more compact" if you use GET.

    Source:

    http://developer.yahoo.com/performance/rules.html#ajax_get