Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Difference Between POST vs. GET Request Methods

johncfl
Level 2
Level 2

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?

1 Accepted Solution
pabloc82923542
Correct answer by
Level 9
Level 9

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!

View solution in original post

3 Replies
pabloc82923542
Correct answer by
Level 9
Level 9

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!

View solution in original post

johncfl
Level 2
Level 2

Perfect. Thanks for the explanation.

shesingh
Employee
Employee

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.