+ Start a Discussion
XXXXXX 

Can I make a form method="post" action="someurl.com" call FROM a VF page?

The title says it all, really, but here's more detail:

 

Originally we wanted to make a webservice callout from our custom controller. That's working fine, but SF imposes an arbitrary 100KB limit on the size of any webservice request (or response). So I asked around and discovered that the webservice we need to access also supports HTTP POST requests.

 

So can I make a HTTP POST request from a VF page controller? If so, how?

 

TIA,

 

John

Best Answer chosen by Admin (Salesforce Developers) 
cvjcvj
Use the HttpRequest class to programmatically create HTTP requests like GET, POST, PUT, and DELETE.