Difference Between POST vs. GET Request Methods

Avatar

Avatar

johncfl

Avatar

johncfl

johncfl

20-06-2018

Hi,


I wasn't able to find an answer to this in the support documents. I started noticing some Adobe Analytics firing a GET request and some firing a POST request. What's the primary between the two?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

pabloc82923542

Avatar

pabloc82923542

pabloc82923542

20-06-2018

Here is a ref

http://www.anttikoski.fi/http-post-requests-not-visible-many-analytics-debuggers-including-omnibug-u...

AppMeasurement for JavaScript and Flash now send image requests using POST in some circumstances to avoid request truncation that occurs at 2000 bytes in some browsers. After this update, Internet Explorer 8+ will no longer truncate request data at 2000 bytes, reducing errors and data loss for some variables. For example, if the browser is Internet Explorer 9 and the image URL is 1900 bytes, then the request is sent using HTTP GET. If it is 2100 bytes, the request is sent using HTTP POST. Note that the Adobe Debugger does not inspect hits sent using HTTP POST. If the Adobe Debugger doesn’t show data in Internet Explorer, use a packet analyzer or the built-in network tools to examine the network traffic directly, or inspect the hit in a browser that does not truncate URLs, such as Chrome or Firefox. This functionality requires AppMeasurement for JavaScript 1.4.1+ and the visitor ID service 1.3.2+.

Source: https://marketing.adobe.com/resources/help/en_US/whatsnew/09182014.html

I also found nice blog post about this “issue” and how you can make a detour for this new setting: (But I would recommend to use the trick just for testing/debugging purposes)
http://www.searchdiscovery.com/blog/validating-adobe-analytics-http-posted-tags-pain-relief-formula/ I ain’t Justin, but I clap for you too Stewart, fantastic blog post about this issue!

Answers (2)

Answers (2)

Avatar

Avatar

shesingh

Employee

Avatar

shesingh

Employee

shesingh
Employee

15-10-2020

Hi,

 

The newest versions of app measurement code now can do post requests as well as normal get requests. It automatically sends image requests using HTTP POST if they are too long.
AppMeasurement doesn't have an option to manually force a POST call. It will, however, automatically generate a POST call if the request size is greater than 2047 bytes.

 

When a POST is done the debugger will not show the request, you have to take the post request information and run it through a url decoder like http://meyerweb.com/eric/tools/dencoder/ and then try to find 'pagename' to find the page name etc.

Avatar

Avatar

johncfl

Avatar

johncfl

johncfl

20-06-2018

Perfect. Thanks for the explanation.