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
VladikVladik 

Get full contents of post request from apex

I have a problem with parsing post request to my apex page.

Application outside of salesforce access to visualforce page ( through the sites ) and transfer some data. I need to get all data.

This construction does not work:
String post_request = ApexPages.currentPage().getParameters().get('parameter');

Because saleforce expecting data:
'color=red&size=small&height=tall'

But real data is:
'qposkicimshfjslmcownk'

 

In other words - I need to get this string without salesforce parsing.

bob_buzzardbob_buzzard

Is there any reason why you would access the data this way rather than via controller properties or sobject fields?  According to the Salesforce docs when a postback occurs, the viewstate is decoded and used as the basis for updating records, so you may not be able to get at the parameters that you are looking for.

VladikVladik

It related with linkedin integration. First I transfer url to the linkedin service, then linkedin make access to the url which I specified and return some information via post request.