function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
csteddy1csteddy1 

HTTP GET becomes POST

I have traced a callout from Salesforce in which a GET in Apex (and shown as such in DEBUG) is transformed into a POST.

This occurs if the setBody method has been called on the request object, even with a null argument.

 

 

 

 

 

 

 

sfdcfoxsfdcfox
I'd be willing to bet that's a bug. I guess the moral of the story is to not call setBody if you don't intend to POST.