rather baffling finding: POST requests, made via the XMLHTTP object, send header and body data in separate tcp/ip packets [and therefore,] xmlhttp GET performs better when sending small amounts of data than an xmlhttp POST
rather baffling finding: POST requests, made via the XMLHTTP object, send header and body data in separate tcp/ip packets [and therefore,] xmlhttp GET performs better when sending small amounts of data than an xmlhttp POST
Simon, I read that Vitamin link too -- it referred to a Yahoo performance article which said the Yahoo Mail team found this, but there wasn't any further info.
I too feel it doesn't seem worth using just one verb unless there are very specific scenarios...
anup - 18th August 2009 16:27 - #
Sorry -- slight correction -- the Vitamin article didn't say where it got that from. I searched last week for this info and found it here:
http://developer.yahoo.com/performance/rules.html but it didn't really offer any details. The comment you found is probably what the above link refers to...
anup - 18th August 2009 16:39 - #
I was curious about this too, so I ran some of my own tests: http://josephscott.org/archives/2009/08/xmlhttpreq uest-xhr-uses-multiple-packets-for-http-post/
Firefox was the only browser I tested that didn't use 2 packets for XHR over HTTP POST.
Joseph Scott - 27th August 2009 17:03 - #
Hi Simon,
Another link to add is http://yuiblog.com/blog/2007/03/01/performance-res earch-part-3/#comment-59531
Fahed
Fahed - 31st August 2009 13:59 - #